Lua vfox plugin. Use the vfox to manage multiple lua versions on Linux, macOS, and Windows.
- macOS / Linux
- GNU Make
- ANSI C compiler (gcc or clang)
- readline development library (
libreadline-devon Debian/Ubuntu,readlinevia Homebrew on macOS)
- Windows (install via MSYS2)
- GCC compiler
- Make
# install plugin
vfox add --source https://github.com/yeshan333/vfox-lua/archive/refs/heads/main.zip lua
# search available versions
vfox search lua
# install a specific version
vfox install lua@5.4.7
# activate
vfox use -g lua@5.4.7The vfox-lua plugin can also be used through mise, which supports vfox plugins as a backend.
# install and activate
mise use -g vfox:yeshan333/lua@5.4.7
# run lua
mise exec -- lua -vLuaRocks can be automatically installed alongside Lua by setting the VFOX_LUA_LUAROCKS environment variable. This is supported on Linux and macOS only.
# vfox
VFOX_LUA_LUAROCKS=1 vfox install lua@5.4.7
# mise
VFOX_LUA_LUAROCKS=1 mise use -g vfox:yeshan333/lua@5.4.7When enabled, the plugin will:
- Fetch the latest LuaRocks release from GitHub (fallback: 3.11.1)
- Build and bootstrap LuaRocks into
<install-dir>/luarocks/ - Add
luarockstoPATHand configureLUA_INITso that installed rocks are immediately available
# verify
luarocks --version
# install a rock
luarocks install luacheck-
Make sure build tools (gcc/clang, make) are in your system
$PATH. -
Lua 5.4+ on Linux/macOS is compiled with readline by default. Install the readline development library before building:
- Debian/Ubuntu:
sudo apt-get install libreadline-dev - macOS:
brew install readline
- Debian/Ubuntu:
-
On Windows, use
PowerShellto install Lua.
- Lua versions 5.0 and earlier cannot be installed on Linux.
- LuaRocks integration is not available on Windows.
