Lua plugin for asdf version manager based off of scripts in my dotfiles repository.
- ANSI C compiler (like gcc).
- OSX
xcode-select --install. Then install the "Command Line Tools" component from the dialog that appears.
- Debian
sudo apt-get install linux-headers-$(uname -r) build-essential
- RedHat
sudo yum install devtoolset-2
- OSX
asdf plugin add lua https://github.com/Stratus3D/asdf-lua.git
Check the asdf readme for instructions on how to install & manage versions of Lua.
You can also read my Lua Version Management with asdf-lua article which has complete instructions on installation and usage.
Readline support varies by Lua version:
- 5.1 - 5.3: Readline is required (build fails without libreadline-dev installed)
- 5.4: Readline is optional and disabled by default. Enable by setting
ASDF_LUA_LINUX_READLINE=1before runningasdf install. See http://lua-users.org/lists/lua-l/2020-07/msg00363.html for details. - 5.5+: Readline is loaded dynamically at runtime if available
To modify this plugin into your asdf installation and see changes live, just create a symlink:
ln -s . ~/.asdf/plugins/lua
Feel free to create an issue or pull request if you find a bug.
- Lua versions 4.0 and earlier do not install
- No way to specify specify custom configuration options
MIT License