首先安装环境所需依赖:
yum install libtermcap-devel ncurses-devel libevent-devel readline-devel
lua安装步骤:
curl -R -O http://www.lua.org/ftp/lua-5.3.0.tar.gz tar zxf lua-5.3.0.tar.gz cd lua-5.3.0 make linux test make install
验证:
输入lua出现对应的编码控制台即安装成功;
编写第一个lua程序:
print ("hello Word!")