Creating and Installing Lua 5.2.0 on Mac os x Lion

I read instructions on many sites on how to create / install Lua 5.2.0 on mac os x Leopard, not on Lion.

So my question is: "How do I get from installing and / or creating Lua on my mac to program code on my computer?"

+3
source share
2 answers

Adapted from the Lua FAQ :

curl -R -O http://www.lua.org/ftp/lua-5.2.0.tar.gz
tar zxf lua-5.2.0.tar.gz
cd lua-5.2.0
make macosx test install

You need a C compiler. Get Xcode if you haven't already.

This works on both Leopard and Lion (and other versions of Mac OS X).

+5
source

I believe that before that, you should go to the terminal and type chmod a + x. Then it should allow the file to run without this chmod error.

0
source

All Articles