Skip to content
luaJIT installer for the asdf package manager
Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
.travis.yml
LICENSE
README.md

README.md

asdf-luaJIT

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 specify both versions in the asdf version. For example, if you want luaJIT 2.0.5 with luarocks 2.4.4, your asdf version will be specified as 2.0.5--2.4.4.

Dependencies

  1. You will need a compiler.
  • Mac
    1. gcc
    2. Hit the ok button and it will install. If it already has it, then you are good.
  • Ubuntu
    1. sudo apt-get install linux-headers-$(uname -r) build-essential
  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:

  • LUAJIT_CONFIGURE_OPTIONS - use only your configure options
  • LUAJIT_EXTRA_CONFIGURE_OPTIONS - append these configure options along with ones that this plugin already uses
  • LUAROCKS_CONFIGURE_OPTIONS - use only your configure options
  • LUAROCKS_EXTRA_CONFIGURE_OPTIONS - append these configure options along with ones that this plugin already uses

How to use (easier version)

Install

  1. Create your .tool-versions file in the project that needs luaJIT and add luaJIT 2.0.5--2.4.4 or whatever version that you want. Note: the version is luaJITVersion--luarocksVersion
  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

Run

  1. Once it is done, run luajit. If it says something about having no version set, make sure you set luaJIT luaJITVersion--luarocksVersion in your ~/.tool-versions file.
You can’t perform that action at this time.