从官方下载最新luajit
http://luajit.org/download.html
cd到luajit目录
执行 sudo
make
make install
就可可以了
如果提示-bash: make: command not found
那么可能是没有安装命令行工具
进入xcode->preferences->Downloads->Components->
安装Command Line Tools完成即可
进下面的网址下载command Line Tools
https://developer.apple.com/downloads/index.action?name=for%20Xcode%20-#