把lua-5.3.4.tar.gz放到家目錄,並解壓縮
$ cd lua-5.3.4
這裡我不知在做啥,測試?
$ make macosx test
這才是安裝,沒打sudo他會有/usr/local/man/man1: Permission denied的訊息,所以要加 sudo
$ sudo make macosx install
測試是否安裝成功
$ lua
Lua 5.3.4 Copyright (C) 1994-2017 Lua.org, PUC-Rio
>