Page 1 of 1

Lua on Mac

Posted: Sun Dec 27, 2009 3:38 pm
by Garotas*Gostosas
hey guys
reading Roberto Ierusalimschy ' s "Programming in Lua" I would like to execute the command line examples he gives in this book. I already downloaded lua from the webs, but I just don't know how to install it on my mac. can you guys help me?

Re: Lua on Mac

Posted: Sun Dec 27, 2009 11:05 pm
by bmelts
Sure! The Lua binaries need to be placed somewhere in your PATH, so that the command line can find them. You can see your path by typing "ECHO $PATH" in Terminal - it's a list of folders, separated by colons, which show where Terminal will look for an executable when you type a command.

The easiest way, then, is to move the Lua binaries to one of those folders - the traditional choice is /usr/local/bin. You can open the folder in Finder by using the "Go To Folder..." option in the Go menu, and once opened, just drop the binaries in there. Or if you know your way around the command line already, you can use that instead.

Re: Lua on Mac

Posted: Thu Dec 31, 2009 11:58 am
by Garotas*Gostosas
Tank You! :)