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?
Lua on Mac
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- Garotas*Gostosas
- Prole
- Posts: 41
- Joined: Fri Apr 03, 2009 12:15 am
Lua on Mac
I LOVE GAME, YEAH!
Re: Lua on Mac
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.
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.
- Garotas*Gostosas
- Prole
- Posts: 41
- Joined: Fri Apr 03, 2009 12:15 am
Who is online
Users browsing this forum: Bing [Bot], GoldenTCat and 4 guests