Download official Lua releases from Lua.org.
first make sure you have the following tools installed
- gcc
- ar
- ld
if you are on macOS just install the by running following command in your shell xcode-select --install
clone the repo and navigate into it
git clone https://github.com/AkameTheCoder/lua.git
cd lua
now we can compile lua using the shell script in the directory
chmod +x compile.sh
./compile.sh
done! now you can use lua by typing in lua
in a terminal