LuaJIT plugin for asdf version manager
This plugin also installs luarocks along with luaJIT. It is not currently an optional install. If you need it to be, please let me know.
- You will need a compiler.
- Mac
gcc
- Hit the ok button and it will install. If it already has it, then you are good.
- Ubuntu
sudo apt-get install linux-headers-$(uname -r) build-essential
- On Ubuntu, you will need libreadline
sudo apt-get install libreadline-dev
asdf plugin-add luajit https://github.com/smashedtoatoms/asdf-luaJIT.git
Check asdf readme for instructions on how to install & manage versions of LuaJIT.
When installing LuaJIT using asdf install
, you can pass custom configure options with the following env vars:
LUAJIT_CONFIGURE_OPTIONS
- use only your configure optionsLUAJIT_EXTRA_CONFIGURE_OPTIONS
- append these configure options along with ones that this plugin already usesLUAROCKS_CONFIGURE_OPTIONS
- use only your configure optionsLUAROCKS_EXTRA_CONFIGURE_OPTIONS
- append these configure options along with ones that this plugin already uses
- Create your .tool-versions file in the project that needs luaJIT and add
luaJIT 2.0.5
or whatever version that you want. - Add a
LUAJIT_EXTRA_CONFIGURE_OPTIONS
and/orLUAROCKS_EXTRA_CONFIGURE_OPTIONS
environment variables with config options if you want. You probably don't want/need to do this. - run
asdf install
(if on mac, you now need to set MACOSX_DEPLOYMENT_TARGET, so it will look likeMACOSX_DEPLOYMENT_TARGET=15.0 asdf install
for Sequoia for example)
- Once it is done, run
luajit
. If it says something about having no version set, make sure you setluaJIT luaJITVersion
in your ~/.tool-versions file.