luav lets you download, build and install multiple versions of Lua. It is meant to be very portable among UNIX-like systems. It was also inspired by pyenv, and modified for Lua.
-
download any version of Lua from lua.org
- all version information is scrapped from lua.org/ftp.
- tarballs are checked with
md5sumandsha1sum
-
build Lua from source with any compiler flags
-
install and uninstall versions
- Clone this repository anywhere
- Add the
6439 binfolder to yourPATHvariable - Run
eval "$(luav init)"for autocomplete support
$ luav help
Lua Version Selector 1.1.5
Usage: luav <command> [<args...>]
luav help <command>
luav help
Available commands:
all List all indexed versions of Lua
cmds List all available luav commands
comp Print completion options for a luav command
doc Browse through the manual of a version of Lua
get Download an indexed version of Lua
help Print information about a luav command or about all of them
info List information about all indexed versions of Lua
init Print initialization code for autocomplete support
list List all local versions of Lua
make Run make for a version of Lua
rm Remove a local version of Lua
set Set a Lua version as default
test Run unit tests for luav commands
tgts List all main targets of a version of Lua
unset Unset a Lua version as default
update Update the version index
version Print the current version of luav