linux安装luarocks命令

1.先下载luarocks-2.4.1.tar.gz源码包,将其上传到/usr/local/文件夹下

2.解压缩
tar -xzvf luarocks-2.4.1.tar.gz
3.
cd luarocks-2.4.1/
4…/configure --prefix=/usr/local/openresty/luajit \ 安装到此目录下
–with-lua=/usr/local/openresty/luajit/
–lua-suffix=jit
–with-lua-include=/usr/local/openresty/luajit/include/luajit-2.1
5. make build
6. sudo make install
7. vi ~/.bash_profile
8. export PATH=$PATH:/usr/local/openresty/luajit/bin 将此项添加进去
9. source /etc/profile
10. reboot
11.luarocks查看是否安装成功

你可能感兴趣的:(linux)