Build Lua and LuaRocks in a self-contained directory on Linux.
localua.sh is a Bash script to download and install a self-contained Lua and
LuaRocks on Linux, macOS and MSYS2.
It supports Lua 5.1 to 5.4. It does not officially support other operating
systems or environments, and it does not support LuaJIT.
Run the script without arguments to see how to use it.
lua
and luarocks
!Say you store your local Lua environment in .lua
in your project, just add.lua/bin
at the beginning of your $PATH
. This will only work from the root
directory of the project though… but you can also add ../.lua/bin
etc if
you want!
Before running the script, install base-devel
, gcc
and unzip
.
If this does not fit your needs, check out:
Similar tools for other languages: