Find the answer to your Linux question:
Results 1 to 4 of 4
I have a fairly minimall install of Debian on an other computer, and I have downloaded Lua 5.1 and I am trying to install it. Are anybody able to see ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! NoteMe's Avatar
    Join Date
    Nov 2007
    Posts
    4

    Errors while using "make"/"make install"


    I have a fairly minimall install of Debian on an other computer, and I have downloaded Lua 5.1 and I am trying to install it. Are anybody able to see what I am doing wrong from the error messages I am getting? Missing libraries??

    make version: GNU Make 3.81
    gcc version: gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

    $make linux
    cd src && make linux
    make[1]: Entering directory `/home/noteme/lua/lua-5.1/src'
    make all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses"
    make[2]: Entering directory `/home/noteme/lua/lua-5.1/src'
    gcc -O2 -Wall -DLUA_USE_LINUX -c -o lapi.o lapi.c
    lapi.c:8:20: error: assert.h: No such file or directory
    lapi.c:9:18: error: math.h: No such file or directory
    lapi.c:11:20: error: string.h: No such file or directory
    In file included from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/syslimits.h:7,
    from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:11,
    from luaconf.h:11,
    from lua.h:16,
    from lapi.c:16:
    /usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:122:61: error: limits.h: No such file or directory
    lapi.c: In function ‘lua_pushstring’:
    lapi.c:451: warning: implicit declaration of function ‘strlen’
    lapi.c:451: warning: incompatible implicit declaration of built-in function ‘strlen’
    lapi.c: In function ‘lua_getfield’:
    lapi.c:543: warning: incompatible implicit declaration of built-in function ‘strlen’
    lapi.c: In function ‘lua_setfield’:
    lapi.c:657: warning: incompatible implicit declaration of built-in function ‘strlen’
    make[2]: *** [lapi.o] Error 1
    make[2]: Leaving directory `/home/noteme/lua/lua-5.1/src'
    make[1]: *** [linux] Error 2
    make[1]: Leaving directory `/home/noteme/lua/lua-5.1/src'
    make: *** [linux] Error 2

    It seems it is pretty standard C libraries it can't find, but not sure why or in what package they should be in. FYI I have libc6 installed.

    Thanks in advance,
    - ØØ -

  2. #2
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    I don't have a huge amount of experience with Debian, but is there some sort of build-essential or libc-devel package? Basically, it's possible that you have libc, which allows you to run binary applications, but not the header files which are required for actual compilation.

  3. #3
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    The package that provides those libraries is glibc-devel which is known as libc6-dev on Debian based distros.

  4. #4
    Just Joined! NoteMe's Avatar
    Join Date
    Nov 2007
    Posts
    4
    libc6-dev was what was missing. Cheers.

    My goal was to compile ION3, and after the "-dev" hint you gave me I was able to find out what other -dev packages I needed [well more or less, I installed them all in the end with xorg-dev] and now ION3 is up and running. Now over to find out what packages I don't need anymore Kids like me these days are too spoiled with apt


    Thanks again,
    - ии -

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •