下载LuaJit源码并编译成32位和64位
下载地址:http://luajit.org/download.html
进入LuaJIT-2.1.0-beta3 执行如下指令:
make
sudo make install
sudo ln -sf luajit-2.1.0-beta3 /usr/local/bin/luajit
katichar@192 LuaJIT-2.1.0-beta3 % sudo make install
Password:
==== Installing LuaJIT 2.1.0-beta3 to /usr/local ====
mkdir -p /usr/local/bin /usr/local/lib /usr/local/include/luajit-2.1 /usr/local/share/man/man1 /usr/local/lib/pkgconfig /usr/local/share/luajit-2.1.0-beta3/jit /usr/local/share/lua/5.1 /usr/local/lib/lua/5.1
cd src && install -m 0755 luajit /usr/local/bin/luajit-2.1.0-beta3
cd src && test -f libluajit.a && install -m 0644 libluajit.a /usr/local/lib/libluajit-5.1.a || :
rm -f /usr/local/lib/libluajit-5.1.2.1.0.dylib /usr/local/lib/libluajit-5.1.dylib /usr/local/lib/libluajit-5.1.2.dylib
cd src && test