
按照官网教程,执行以下命令
curl -R -O http://www.lua.org/ftp/lua-5.3.3.tar.gz
tar zxf lua-5.3.3.tar.gz
cd lua-5.3.3
make linux test
但其实lua并未安装,许多博文都是建立软链接,但其实makefile
文件中已经写好了,只需install就可以了
make linux install
升级lua版本之后,会导致luarock
无法使用,需要重新编译安装。
wget http://luarocks.org/releases/luarocks-2.4.1.tar.gz
tar zxpf luarocks-2.4.1.tar.gz
cd luarocks-2.4.1
./configure; sudo make bootstrap