一、下载lua最新版,并解压

二、进入文件夹,打开终端


输入:make macosx
三、输入:make test
四、输入:sudo make install
并输入密码进行安装

五、输入:lua -v,可查看到版本号,完成安装
