Home

Awesome

asdf-luaJIT Build

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.

Dependencies

  1. You will need a compiler.
  1. On Ubuntu, you will need libreadline
  2. sudo apt-get install libreadline-dev

Install

asdf plugin-add luajit https://github.com/smashedtoatoms/asdf-luaJIT.git

ASDF options

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:

How to use (easier version)

Install

  1. Create your .tool-versions file in the project that needs luaJIT and add luaJIT 2.0.5 or whatever version that you want.
  2. Add a LUAJIT_EXTRA_CONFIGURE_OPTIONS and/or LUAROCKS_EXTRA_CONFIGURE_OPTIONS environment variables with config options if you want. You probably don't want/need to do this.
  3. run asdf install (if on mac, you now need to set MACOSX_DEPLOYMENT_TARGET, so it will look like MACOSX_DEPLOYMENT_TARGET=15.0 asdf install for Sequoia for example)

Run

  1. Once it is done, run luajit. If it says something about having no version set, make sure you set luaJIT luaJITVersion in your ~/.tool-versions file.