luarocks
- luarocks官网下载包 curl -fSL https://luarocks.github.io/luarocks/releases/luarocks-3.3.1.tar.gz -o luarocks-3.3.1.tar.gz
- ./config需要配置
./configure \
--prefix=/usr/local/openresty/luajit \
--with-lua=/usr/local/openresty/luajit \
--lua-suffix=jit-2.1.0-beta3 \
--with-lua-include=/usr/local/openresty/luajit/include/luajit-2.1
- make
- make install
- ln -s /usr/local/openresty/luajit/bin/luarocks /usr/bin/luarocks
lyaml
# 安装libyaml
git clone https://github.com/yaml/libyaml.git
./bootstrap
./configure
make
make install
# 安装lyaml
luarocks --server=http://rocks.moonscript.org install lyaml