Make Linux
CD src && make Linux
MAKE[1]: Entering directory '/ROOT/LUA/LUA-5.3.2/SRC '
Make all syscflags= "-dlua_use_linux" syslibs= "-wl,-e-ldl-lreadline"
MAKE[2]: Entering directory '/ROOT/LUA/LUA-5.3.2/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 '/ROOT/LUA/LUA-5.3.2/SRC '
MAKE[1]: * * [Linux] Error 2
MAKE[1]: Leaving directory '/ROOT/LUA/LUA-5.3.2/SRC '
Make: * * * [Linux] Error 2
Workaround:
Missing Libreadline-dev Dependency Package
Centos:yum Install Readline-devel
Debian:apt-get install Libreadline-dev.
http://www.vcerror.com/?p=1786
# Make Linux
CD src && make Linux
MAKE[1]: Entering directory '/HOME/LUA/LUA-5.3.2/SRC '
Make all syscflags= "-dlua_use_linux" syslibs= "-wl,-e-ldl-lreadline"
MAKE[2]: Entering directory '/HOME/LUA/LUA-5.3.2/SRC '
GCC-STD=GNU99-O2-WALL-WEXTRA-DLUA_COMPAT_5_2-DLUA_USE_LINUX-C-O lua.o lua.c
Gcc-std=gnu99-o Lua LUA.O Liblua.a-lm-wl,-e-ldl-lreadline
GCC-STD=GNU99-O2-WALL-WEXTRA-DLUA_COMPAT_5_2-DLUA_USE_LINUX-C-O luac.o luac.c
Gcc-std=gnu99-o Luac LUAC.O Liblua.a-lm-wl,-e-ldl-lreadline
MAKE[2]: Leaving directory '/HOME/LUA/LUA-5.3.2/SRC '
MAKE[1]: Leaving directory '/HOME/LUA/LUA-5.3.2/SRC '
Source: http://www.cnblogs.com/softidea/archive/2016/03/02/5236498.html