Lua: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 20: Line 20:
| valign="top" |
| valign="top" |
  sudo update-alternatives --config lua-interpreter
  sudo update-alternatives --config lua-interpreter
sudo update-alternatives --config lua-compiler


| valign="top" |
| valign="top" |
sudo mkdir -p /usr/local/lib/luarocks/rocks-5.1
ls -lah      /usr/local/lib/luarocks/


| valign="top" |
| valign="top" |
ls -lah ~/.luarocks/
luarocks list


|}
|}

Revision as of 14:55, 3 February 2024

sudo apt install lua5.4
sudo apt install luarocks
lua --help
luarocks --help
lua -v
luarocks --version

sudo update-alternatives --config lua-interpreter
sudo update-alternatives --config lua-compiler
sudo mkdir -p /usr/local/lib/luarocks/rocks-5.1
ls -lah       /usr/local/lib/luarocks/
ls -lah ~/.luarocks/
luarocks list

Playground

mkdir -p ~/Documents/lua-playground
cd       ~/Documents/lua-playground
luarocks install moonrocks
luarocks install srlua
luarocks install lua-json
luarocks install luaunit

References