CentOS 安装Lua 5.3

Wednesday, Oct 12, 2016 | 1 minute read | Updated at Wednesday, Oct 12, 2016

@
CentOS 安装Lua 5.3

按照官网教程,执行以下命令

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

© 2016 - 2025 Caisong's Blog

🌱 Powered by Hugo with theme Dream.

About Me

大龄程序员,喜欢折腾各种环境部署、软件应用。

博客记录日常。