Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
LuaJIT and luarocks on Mac OS X El Capitan
# This is to install both on OS X if you don't want to use homebrew
# xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcode-select --install
curl -O http://luajit.org/download/LuaJIT-2.0.4.zip
unzip LuaJIT-2.0.4.zip
cd LuaJIT-2.0.4
make && make install
curl -O http://keplerproject.github.io/luarocks/releases/luarocks-2.3.0.tar.gz
tar -zxvf luarocks-2.3.0.tar.gz
cd luarocks-2.3.0
mkdir -p /usr/local/include/lua/5.1
ln -s /usr/local/include/luajit-2.0/* /usr/local/include/lua/5.1/
./configure --lua-suffix=jit
make build && make install
@azat-co

This comment has been minimized.

Copy link

@azat-co azat-co commented May 13, 2016

😸

@HeinrichHartmann

This comment has been minimized.

Copy link

@HeinrichHartmann HeinrichHartmann commented Jan 11, 2017

nice. Thx!

@iansowinski

This comment has been minimized.

Copy link

@iansowinski iansowinski commented Mar 23, 2017

Great script, thank you for this! In my case curl -O http://keplerproject.github.io/luarocks/releases/luarocks-2.3.0.tar.gz hasn't worked, I had to download file manually.

@sanjayrsrivatsan

This comment has been minimized.

Copy link

@sanjayrsrivatsan sanjayrsrivatsan commented Dec 3, 2017

Thank you!

@luc-tielen

This comment has been minimized.

Copy link

@luc-tielen luc-tielen commented Mar 20, 2019

Curl command now also needs -L to follow redirects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment