Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programming in Lua on OS X?

Tags:

macos

lua

What can I use to program Lua script on Mac OS X? I'm looking for something that I can use to compile/interpret Lua script on OS X.

like image 993
RCIX Avatar asked Aug 06 '09 03:08

RCIX


People also ask

Does Lua work on Mac?

If you use Linux or Mac OS X, Lua is either already installed on your system or there is a Lua package for it. Make sure you get the latest release of Lua (currently 5.4. 4). Lua is also quite easy to build from source, as explained below.

Can Notepad ++ run Lua?

lua file and automatically runs it on Notepad++ startup. You can easily edit this file via Plugins > LuaScript > Edit Startup Script . You can include any commands you want to immediately execute on program startup, as well as register any additional shortcuts or callbacks.

Is Lua easier than Python?

Lua is easier than the Python language but Python is popular and demanding language than the Lua language for beginners. Python is a scripting language but it is heavy and slower than the Lua language but Lua is a light-weight, portable, and rapid execution language.


2 Answers

My preferred way:

brew install lua

Thanks, Max!

And if you need to know how to install Homebrew, see Link and:

/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
like image 52
Paul Lynch Avatar answered Oct 03 '22 11:10

Paul Lynch


The Lua source easily compiles with no changes on the mac. It will build lua (the interpreter which can act on a source script, a pre-compiled script or interactively) and luac which can be used to pre-compile source scripts.

From the lua.org website: http://luabinaries.luaforge.net/download.html. The ones you want are the darwin binaries (they say Mac OS X in the description).

like image 22
Jason Coco Avatar answered Oct 03 '22 09:10

Jason Coco