• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux Compiling Debian Squeeze 6 -> configure: error: "Lua header not found."

kito2

www.masteria.net
Joined
Mar 9, 2009
Messages
3,764
Solutions
1
Reaction score
227
Location
Chile, Santiago
Hey dude, as topic name says I have the following error:

Code:
configure: error: "Lua header not found."

I have search a lot of on google and forums, but there are no solutions for this problem, any one have an idea?
 
Worked great on Ubuntu last time I used it, Don't know if it will work on Debian though :o

Code:
to get rid of this error, do this:
wget [url]http://www.lua.org/ftp/lua-5.1.4.tar.gz[/url]
tar -xzvf lua*
cd lua*
make linux && make install
then do ./configure again
 
Not working:

97-mtibia:~# wget http://www.lua.org/ftp/lua-5.1.4.tar.gz
--2011-09-05 17:37:19-- http://www.lua.org/ftp/lua-5.1.4.tar.gz
Resolviendo The Programming Language Lua... 89.238.129.35, 2a02:40:41::5
Connecting to www.lua.org|89.238.129.35|:80... conectado.
Petición HTTP enviada, esperando respuesta... 200 OK
Longitud: 216679 (212K) [application/octet-stream]
Saving to: `lua-5.1.4.tar.gz.2'

100%[======================================>] 216.679 175K/s in 1,2s

2011-09-05 17:37:23 (175 KB/s) - `lua-5.1.4.tar.gz.2' saved [216679/216679]

97-mtibia:~#
97-mtibia:~# tar -xzvf lua*
tar (child): lua-5.1.4: No se puede read: Es un directorio
tar (child): Al principio de la cinta, se terminará ahora
tar (child): Error is not recoverable: exiting now

gzip: stdin: unexpected end of file
tar: Child returned status 2
tar: Error is not recoverable: exiting now
97-mtibia:~# cd lua*
97-mtibia:~/lua-5.1.4# make linux && make install
cd src && make linux
make[1]: se ingresa al directorio `/root/lua-5.1.4/src'
make all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses"
make[2]: se ingresa al directorio `/root/lua-5.1.4/src'
gcc -O2 -Wall -DLUA_USE_LINUX -c -o lua.o lua.c
In file included from lua.h:16:0,
from lua.c:15:
luaconf.h:275:31: fatal error: readline/readline.h: No existe el fichero o el directorio
compilation terminated.
make[2]: *** [lua.o] Error 1
make[2]: se sale del directorio `/root/lua-5.1.4/src'
make[1]: *** [linux] Error 2
make[1]: se sale del directorio `/root/lua-5.1.4/src'
make: *** [linux] Error 2
97-mtibia:~/lua-5.1.4#
 
Back
Top