LuaJIT

LuaJIT是Lua的JIT编译版本,较为著名的扩展包有SciLua,与Julia性能接近;OpenResty可以显著改善服务器的并发性能。在linux环境下,下载LuaJIT-2.0.5.tar.gz,输入以下命令安装,

tar -zxvf LuaJIT-2.0.5.tar.gz
cd LuaJIT-2.0.5
make -j 16
make install PREFIX=/backup/home/misaraty/soft/luajit

接着,在.bashrc中添加环境变量,

#luajit
export PATH=$PATH:/backup/home/misaraty/soft/luajit/bin
export LUAJIT_LIB=/backup/home/misaraty/soft/luajit/lib
export LUAJIT_INC=/backup/home/misaraty/soft/luajit/include/luajit-2.0

Lua的使用可以参考Lua教程-菜鸟教程Lua教程-极客学院等。