• 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 Error - Lua header not found.

Extrodus

|| Blazera.net ||
Premium User
Joined
Dec 22, 2008
Messages
2,737
Solutions
7
Reaction score
541
Location
Canada
As the title reads I am getting an lua header error when compiling on Ubuntu with 3884 for 8.6. Weird thing is I compiled Printers 0.3.6 sources last night only having to change a few things in the sources.

Threads that I have tried for help:
http://otland.net/f16/configure-error-lua-header-not-found-116586/#post1151691

Used this command and it didnt work properly:
Code:
wget http://www.lua.org/ftp/lua-5.1.4.tar.gz
tar -xzvf lua*
cd lua*
make linux && make install
then do ./configure again

After using that this is the log of errors:
Code:
extrodus@extrodus-VirtualBox:~$ wget http://www.lua.org/ftp/lua-5.1.4.tar.gz
--2013-09-01 05:12:27--  http://www.lua.org/ftp/lua-5.1.4.tar.gz
Resolving www.lua.org (www.lua.org)... 89.238.129.35, 2a02:40:41::5
Connecting to www.lua.org (www.lua.org)|89.238.129.35|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 216679 (212K) [application/octet-stream]
Saving to: `lua-5.1.4.tar.gz.1'

100%[======================================>] 216,679  78.4K/s  in 2.7s 

2013-09-01 05:12:30 (78.4 KB/s) - `lua-5.1.4.tar.gz.1' saved [216679/216679]

extrodus@extrodus-VirtualBox:~$ tar -xzvf lua*
tar (child): lua-5.1.4: Cannot read: Is a directory
tar (child): At beginning of tape, quitting now
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
extrodus@extrodus-VirtualBox:~$ cd lua*
extrodus@extrodus-VirtualBox:~/lua-5.1.4$ make linux && make install
cd src && make linux
make[1]: Entering directory `/home/extrodus/lua-5.1.4/src'
make all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses"
make[2]: Entering directory `/home/extrodus/lua-5.1.4/src'
gcc -o lua  lua.o liblua.a -lm -Wl,-E -ldl -lreadline -lhistory -lncurses
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make[2]: *** [code=lua] Error 1
make[2]: Leaving directory `/home/extrodus/lua-5.1.4/src'
make[1]: *** [linux] Error 2
make[1]: Leaving directory `/home/extrodus/lua-5.1.4/src'
make: *** [linux] Error 2

I still tried compiling after again only to get the same results.

Compiling Error/Log:
Code:
extrodus@extrodus-VirtualBox:~/Desktop/trunk3884$ sh autogen.shautoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
autoreconf: Leaving directory `.'
extrodus@extrodus-VirtualBox:~/Desktop/trunk3884$ ./configure --enable-mysql
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for ptrdiff_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for ceil... yes
checking for floor... yes
checking for ftime... yes
checking for gethostbyname... yes
checking for gethostname... yes
checking for memset... yes
checking for pow... yes
checking for sqrt... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strstr... yes
checking for strtol... yes
checking for xml2-config... /usr/bin/xml2-config
checking for libxml - version >= 2.6.5... yes (version 2.7.8)
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for main in -lz... yes
checking for main in -lboost_thread-gcc-mt... no
checking for main in -lboost_thread-mt... yes
checking for main in -lboost_regex-gcc-mt... no
checking for main in -lboost_regex-mt... yes
checking for main in -lboost_system-gcc-mt... no
checking for main in -lboost_system-mt... yes
checking for main in -lboost_date_time-gcc-mt... no
checking for main in -lboost_date_time-mt... yes
checking for main in -lboost_filesystem-gcc-mt... no
checking for main in -lboost_filesystem-mt... yes
checking boost/tr1/unordered_set.hpp usability... yes
checking boost/tr1/unordered_set.hpp presence... yes
checking for boost/tr1/unordered_set.hpp... yes
checking cryptopp/sha.h usability... yes
checking cryptopp/sha.h presence... yes
checking for cryptopp/sha.h... yes
checking cryptopp/md5.h usability... yes
checking cryptopp/md5.h presence... yes
checking for cryptopp/md5.h... yes
checking cryptopp/adler32.h usability... yes
checking cryptopp/adler32.h presence... yes
checking for cryptopp/adler32.h... yes
checking cryptopp/hex.h usability... yes
checking cryptopp/hex.h presence... yes
checking for cryptopp/hex.h... yes
checking cryptopp/base64.h usability... yes
checking cryptopp/base64.h presence... yes
checking for cryptopp/base64.h... yes
checking cryptopp/hmac.h usability... yes
checking cryptopp/hmac.h presence... yes
checking for cryptopp/hmac.h... yes
checking cryptopp/cryptlib.h usability... yes
checking cryptopp/cryptlib.h presence... yes
checking for cryptopp/cryptlib.h... yes
checking for main in -lcryptopp... yes
checking openssl/rsa.h usability... yes
checking openssl/rsa.h presence... yes
checking for openssl/rsa.h... yes
checking openssl/bn.h usability... yes
checking openssl/bn.h presence... yes
checking for openssl/bn.h... yes
checking openssl/err.h usability... yes
checking openssl/err.h presence... yes
checking for openssl/err.h... yes
checking for main in -lcrypto... yes
checking for LUA... no
checking lua.hpp usability... no
checking lua.hpp presence... no
checking for lua.hpp... no
configure: error: "Lua header not found."
extrodus@extrodus-VirtualBox:~/Desktop/trunk3884$
 
Code:
apt-get install libncurses5-dev
And later, try this one:
Code:
wget http://www.lua.org/ftp/lua-5.1.4.tar.gz
tar -xzvf lua*
cd lua*
make linux && make install
then do ./configure again


_
Regards,
sn3ejk
 
root@h214:~/lua-5.1.4# make linux && make install
cd src && make linux
make[1]: Entering directory `/root/lua-5.1.4/src'
make all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses"
make[2]: Entering directory `/root/lua-5.1.4/src'
gcc -O2 -Wall -DLUA_USE_LINUX -c -o lapi.o lapi.c
make[2]: gcc: Command not found
make[2]: *** [lapi.o] Error 127
make[2]: Leaving directory `/root/lua-5.1.4/src'
make[1]: *** [linux] Error 2
make[1]: Leaving directory `/root/lua-5.1.4/src'
make: *** [linux] Error 2
 

Similar threads

Back
Top