Open1
luarocksインストール
luarocksインストール
まずLua5.3をインストールする
sudo apt install build-essential libreadline-dev unzip
curl -R -O http://www.lua.org/ftp/lua-5.3.5.tar.gz
tar -zxf lua-5.3.5.tar.gz
cd lua-5.3.5
make linux test
sudo make install
次にluarocksをインストールする
cd /tmp
wget http://luarocks.github.io/luarocks/releases/luarocks-3.9.2.tar.gz
untar luarocks-3.9.2.tar.gz
cd luarocks-3.9.2
./configure --with-lua-include=/usr/local/include
make
sudo make install
PATHは自動では通らないので自分で通す。
luarocks path
で色々出てくるので参考にする。
次に色々入れる
luarocks install luacheck --local
luarocks install lanes --local