Installing LUA on Centos Linux

Before you try to install LUA on Centos Linux, make sure you have already installed the following development packages:

ncurses-devel
readline-devel

or you may experience the following errors while running “make linux

/usr/bin/ld: cannot find -lncurses

gcc -O2 -Wall -DLUA_USE_LINUX -c -o lua.o lua.c
In file included from lua.h:16,
from lua.c:15:
luaconf.h:275:31: error: readline/readline.h: No such file or directory
luaconf.h:276:30: error: readline/history.h: No such file or directory
lua.c: In function ā€˜pushlineā€™:
lua.c:182: warning: implicit declaration of function ā€˜readlineā€™
lua.c:182: warning: assignment makes pointer from integer without a cast
lua.c: In function ā€˜loadlineā€™:
lua.c:210: warning: implicit declaration of function ā€˜add_historyā€™
make[1]: *** [lua.o] Error 1
make[1]: Leaving directory `/root/src/lua-5.1.4/src’
make: *** [linux] Error 2


Leave a Reply