Lua: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
Line 71: Line 71:
|-
|-
| valign="top" |
| valign="top" |
luarocks install moonrocks --local
luarocks install srlua    --local


| valign="top" |
| valign="top" colspan="2" |
 
luarocks install moonrocks --local --check-lua-versions
| valign="top" |
luarocks install srlua    --local --check-lua-versions


|}
|}

Revision as of 15:10, 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

export LUA_PATH=/usr/bin/lua5.4
export LUA_INTERPRETER=/usr/bin/lua5.4

Playground

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

luarocks install moonrocks --local
luarocks install srlua     --local
luarocks install moonrocks --local --check-lua-versions
luarocks install srlua     --local --check-lua-versions

References