Lua: Difference between revisions
Jump to navigation
Jump to search
Line 121: | Line 121: | ||
| valign="top" | | | valign="top" | | ||
* [https://opensource.com/article/19/11/getting-started-luarocks Lua » Make development easy with Luarocks] | |||
* [https://medium.com/@Games24x7Tech/running-atomicity-consistency-use-case-at-scale-using-lua-scripts-in-redis-372ebc23b58e Lua » Running Atomicity Consistency] | * [https://medium.com/@Games24x7Tech/running-atomicity-consistency-use-case-at-scale-using-lua-scripts-in-redis-372ebc23b58e Lua » Running Atomicity Consistency] | ||
* [https://www.linkedin.com/advice/1/what-pros-cons-using-c-vs-lua-game-scripting-skills-game-design Lua » Pros and Cons » C# vs. Lua] | * [https://www.linkedin.com/advice/1/what-pros-cons-using-c-vs-lua-game-scripting-skills-game-design Lua » Pros and Cons » C# vs. Lua] |
Revision as of 21:01, 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
|
LuaRocks
wget -cq https://luarocks.org/releases/luarocks-3.9.2.tar.gz -P ${HOME}/Downloads
tar -xzf ${HOME}/Downloads/luarocks-3.9.2.tar.gz -C ${HOME}/Downloads
rm -rf ${HOME}/Downloads/luarocks-3.9.2.tar.gz
cd ${HOME}/Downloads/luarocks-3.9.2
sudo update-alternatives --config lua-interpreter
./configure && make && sudo make install
sudo luarocks install luasocket
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 | |
| ||
sudo luarocks install luasocket luarocks install luasec --local |
luarocks --tree=./local install cmark luarocks show luasec |
References
| ||