Lua on Mac

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Garotas*Gostosas
Prole
Posts: 41
Joined: Fri Apr 03, 2009 12:15 am

Lua on Mac

Post by Garotas*Gostosas » Sun Dec 27, 2009 3:38 pm

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?
I LOVE GAME, YEAH!

User avatar
bmelts
Party member
Posts: 380
Joined: Fri Jan 30, 2009 3:16 am
Location: Wiscönsin
Contact:

Re: Lua on Mac

Post by bmelts » Sun Dec 27, 2009 11:05 pm

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.

User avatar
Garotas*Gostosas
Prole
Posts: 41
Joined: Fri Apr 03, 2009 12:15 am

Re: Lua on Mac

Post by Garotas*Gostosas » Thu Dec 31, 2009 11:58 am

Tank You! :)
I LOVE GAME, YEAH!

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 4 guests