Lua, readline.h: No such file or directory
Lua, readline.h: No such file or directory
[root@server.zh lua-5.3.0]# make linux test cd src && make linux make[1]: Entering directory `/opt/storage/back/lua-5.3.0/src' make all SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline" make[2]: Entering directory `/opt/storage/back/lua-5.3.0/src' gcc -std=gnu99 -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -c -o lua.o lua.c lua.c:80:31: fatal error: readline/readline.h: No such file or directory #include <readline/readline.h> ^ compilation terminated. make[2]: *** [lua.o] Error 1 make[2]: Leaving directory `/opt/storage/back/lua-5.3.0/src' make[1]: *** [linux] Error 2 make[1]: Leaving directory `/opt/storage/back/lua-5.3.0/src' make: *** [linux] Error 2
Lua安装编译报错
sol:
centos: yum install readline-devel
Lua.h文件找不到
缺少相关的编译库
sol:
yum search lua-dev
yum install lua-dev***