: http://www.lua.org/download.html
Installation method:
Execute the following command in turn:
Curl-r-O Http://www.lua.org/ftp/lua-5.3.1.tar. gz tar zxf lua-5.3.1.tar. GZ CD lua-5.3.1 make linux test
Problems that may occur:
GCC-STD=GNU99-O2-WALL-WEXTRA-DLUA_COMPAT_5_2-DLUA_USE_LINUX-C-o lua.o lua.c lua.c: the: to: Fatal error: readline/readline.h: There is no file or directory #include<readline/readline.h> ^compile interrupts. Make[2]: * * * [LUA.O] Error1 Make[2]: Leave directory "/home/jason/tools/lua-5.3.1/src " Make[1]: * * * [Linux] Error2 Make[1]: Leave directory "/home/jason/tools/lua-5.3.1/src " Make: * * * [Linux] Error2
Workaround:
Installation: Libtermcap-devel ncurses-devel libevent-devel Readline-devel
Execute the following command:
Yum Install libtermcap-devel ncurses-devel libevent-devel readline-devel
Execute LUA to see if the installation was successful:
[Email protected] lua-5.3. 1 ]# Lua 5.1. 4 1994- lua.org, puc-Rio
Ext: 46634847
CentOS7 Installing the LUA environment (I'm in MySQL for read and write separation)