How to install Lua 5 in Mac OS X Leopard

Open up terminal. Copy the link of the latest Lua version and download it:

cd /tmp
wget http://www.lua.org/ftp/lua-5.1.4.tar.gz

Extract and compile:

tar -xzvf lua-5.1.4.tar.gz
cd lua-5.1.4
make macosx

Test and install (if test goes through)

make test
sudo make install

And you’re done!

  1. Thanks for this! To the point. Works perfectly

  2. Worked wonderfully. Thank you!

  3. Thanks very much .it works well ,
    the problem is that textmate doesn’t hava a lua highlight support built-in ,
    anyhow I’ll fix it

  4. Thank you very much! It worked great!

  5. Thank you worked perfectly! (I had wget already from darwinports)

  6. wget isn’t installed on leopard by default.

    Found this little tidbit:

    echo ‘alias wget=”curl -O”‘ >> ~/.bash_profile

    Worked for me

  7. shit ain’t workin’