出现错误:
lua.c:82:31: 错误:readline/readline.h:没有那个文件或目录
lua.c:83:30: 错误:readline/history.h:没有那个文件或目录
lua.c: 在函数‘pushline’中:
lua.c:312: 警告:隐式声明函数‘readline’
lua.c:312: 警告:赋值时将整数赋给指针,未作类型转换
lua.c: 在函数‘addreturn’中:
lua.c:339: 警告:隐式声明函数‘add_history’
make[2]: *** [lua.o] 错误 1
make[2]: Leaving directory `/usr/local/src/lua-5.3.4/src'
make[1]: *** [linux] 错误 2
make[1]: Leaving directory `/usr/local/src/lua-5.3.4/src'
make: *** [linux] 错误 2
解决办法:
yum install -y libtermcap-devel ncurses-devel libevent-devel readline-devel