• 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!

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

Dubler

PHP, LUA, C++
Joined
Aug 3, 2009
Messages
268
Reaction score
11
Location
Poland
plz help me!
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."
 
THX! it's work!
but now i've got an error in ./build.sh
mv -f .deps/itemattributes.Tpo .deps/itemattributes.Po
g++ -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -O2 -fomit-frame-pointer -D_ _USE_MYSQL__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -Wno-unused-parameter -pipe -MT movement.o -MD -MP -MF .deps/movement.Tpo -c -o movement.o movement.cpp
game.cpp: In member function 'bool Game::playerSay(uint32_t, uint16_t, SpeakClas ses, const std::string&, const std::string&)':
game.cpp:3769: error: duplicate case value
game.cpp:3768: error: previously used here
game.cpp:3773: error: duplicate case value
game.cpp:3772: error: previously used here
game.cpp:3774: error: duplicate case value
game.cpp:3772: error: previously used here
game.cpp:3775: error: duplicate case value
game.cpp:3772: error: previously used here
game.cpp: In member function 'bool Game::playerTalkToChannel(Player*, SpeakClass es, const std::string&, uint16_t)':
game.cpp:3898: error: duplicate case value
game.cpp:3891: error: previously used here
game.cpp:3905: error: duplicate case value
game.cpp:3891: error: previously used here
game.cpp:3912: error: duplicate case value
game.cpp:3891: error: previously used here
make[1]: *** [game.o] Błąd 1
make[1]: *** Oczekiwanie na niezakończone zadania....
mv -f .deps/mailbox.Tpo .deps/mailbox.Po
mv -f .deps/items.Tpo .deps/items.Po
mv -f .deps/map.Tpo .deps/map.Po
luascript.cpp: In static member function 'static void LuaInterface::pushThing(lu a_State*, Thing*, uint32_t, Recursive_t)':
luascript.cpp:1034: error: invalid conversion from 'const Container*' to 'Contai ner*'
luascript.cpp:1045: error: 'env' was not declared in this scope
make[1]: *** [luascript.o] Błąd 1
mv -f .deps/manager.Tpo .deps/manager.Po
mv -f .deps/monster.Tpo .deps/monster.Po
mv -f .deps/monsters.Tpo .deps/monsters.Po
mv -f .deps/movement.Tpo .deps/movement.Po
make[1]: Opuszczenie katalogu `/home/dubler/trunk.r3900'
make: *** [all] Błąd 2
i used 2 different distrib and effect is same
 
Last edited:
configure: error: "Lua header not found."

plz help me!
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."

ubuntu 11.04 version: trunk .r3884
 
Look it be My Actualy Console:

Code:
In file included from /usr/include/boost/filesystem/v3/config.hpp:29:0,
                 from /usr/include/boost/filesystem.hpp:34,
                 from luascript.cpp:21:
/usr/include/boost/system/api_config.hpp:28:5: error: #error user defined BOOST_POSIX_API or BOOST_WINDOWS_API not supported
make[1]: *** [luascript.o] Error 1
make[1]: *** Waiting for unfinished jobs....
mv -f .deps/monster.Tpo .deps/monster.Po
mv -f .deps/monsters.Tpo .deps/monsters.Po
make[1]: Leaving directory `/home/administrator/OTS/trunk.r3884'
make: *** [all] Error 2
root@GAMER:/home/administrator/OTS/trunk.r3884#

Could someone Help me?
 
Last edited:
I need help... how i can fix this? :(

gcc -O2 -Wall -DLUA_USE_LINUX -c -o loadlib.o loadlib.c
gcc -O2 -Wall -DLUA_USE_LINUX -c -o linit.o linit.c
ar rcu liblua.a lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem. o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm .o lzio.o lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o l strlib.o loadlib.o linit.o
ranlib liblua.a
gcc -O2 -Wall -DLUA_USE_LINUX -c -o lua.o lua.c
gcc -o lua lua.o liblua.a -lm -Wl,-E -ldl -lreadline -lhistory -lncurses
/usr/bin/ld: cannot find -lncurses
collect2: error: ld returned 1 exit status
make[2]: ***
Lua:
 Error 1
make[2]: Leaving directory `/lua-5.1.4/src'
make[1]: *** [linux] Error 2
make[1]: Leaving directory `/lua-5.1.4/src'
make: *** [linux] Error 2
 
I need help... how i can fix this? :(

gcc -O2 -Wall -DLUA_USE_LINUX -c -o loadlib.o loadlib.c
gcc -O2 -Wall -DLUA_USE_LINUX -c -o linit.o linit.c
ar rcu liblua.a lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem. o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm .o lzio.o lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o l strlib.o loadlib.o linit.o
ranlib liblua.a
gcc -O2 -Wall -DLUA_USE_LINUX -c -o lua.o lua.c
gcc -o lua lua.o liblua.a -lm -Wl,-E -ldl -lreadline -lhistory -lncurses
/usr/bin/ld: cannot find -lncurses
collect2: error: ld returned 1 exit status
make[2]: ***
Lua:
 Error 1
make[2]: Leaving directory `/lua-5.1.4/src'
make[1]: *** [linux] Error 2
make[1]: Leaving directory `/lua-5.1.4/src'
make: *** [linux] Error 2

sudo apt-get install libtool

Try it Bro :)
 
Makefile:55: recipe for target 'lua' failed
make[2]: *** [lua] Error 1
make[2]: Leaving directory '/home/dcp/b/lua-5.1.4/src'
Makefile:99: recipe for target 'linux' failed
make[1]: *** [linux] Error 2
make[1]: Leaving directory '/home/dcp/b/lua-5.1.4/src'
Makefile:56: recipe for target 'linux' failed
make: *** [linux] Error 2


wget http://www.lua.org/ftp/lua-5.1.4.tar.gz
tar -xzvf lua*
cd lua*
make linux && make install
 

Similar threads

Back
Top