CentOS7安装lua5.1,安装luarocks以及安装模块

安装 lua5.1

wget http://www.lua.org/ftp/lua-5.1.5.tar.gz
tar -zxvf lua-5.1.5.tar.gz
cd lua-5.1.5/
make linux test
make install

安装luarocks

wget https://luarocks.github.io/luarocks/releases/luarocks-3.0.4.tar.gz
tar -zxvf luarocks-3.0.4.tar.gz
cd luarocks-3.0.4/
./configure --with-lua=/usr/local --with-lua-include=/usr/local/include
make
make install
make bootstrap

安装cjson

luarocks install lua-cjson

安装lfs

luarocks install luafilesystem

安装md5

luarocks install md5
Logo

更多推荐