1. so I have an "older" mac with v10.4.11 and the interpreter under tools won't work it says I need the new fancy version of the OS is it possible to get a version that works for all OS versions?

    Try downloading the file from here:


    See if it works correctly for you. Once you've installed the package, you can open Terminal.app and type 'lua'. If that doesn't work, you can try running /usr/local/bin/lua all from the commandline.

    Let me know if that doesn't work.

    Couldn't open "Lua-5.1.4-WoW.pkg". This package type requires Mac OS X 10.5.

    downloaded it tried to run it that was the results I got =o( /sad panda and stuff.

    P.S I really appreciate your efforts of helping people and maintaining this website ty for a great book =D

    Hrm, I may need to adjust the package because it should work for your version.

    I'm just as confused. If it turns into a big project don't worry about it. I'll just run Boot camp or something.

    Try using this version here: http://luabinaries.luaforge.net/download.html

    So this turned into a new experience for me. I'm guessing I have to compile it my self? And for that I need a c++ IDE? or =S

    No, there is no compiling. Just download the binaries from that webpage and run them.

    Not sure I am doing it right. Put the files in the /usr/bin folder and when I try to run them I get a bus error I'll keep trying. Since this isn't my primary work station I'm not as experienced with mac osx =o/

    I'd suggest (then) using one of the other methods, such as the web based Lua interpreter available on this site. I'll try to get the new package working on older macs, but its really really difficult for me to test without an older machine.

    lua gets installed in /usr/local/bin/lua , this is not in the standard macosx path, which is "/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin "

    This is rectified easiest for me by making a quick soft link like this:

    "sudo ln -s /usr/local/bin/lua /opt/local/bin/lua"

    This places a pointer named lua in your path which points to the installation location of lua.

    lua now works.


    I'm sorry, but /usr/local/bin is in the path of every OS X machine that I've ever used so I've never heard of anything like this. It's also the correct path for something like this, as opposed to /opt/local which is used by MacPorts (and thus will and can conflict). I suppose I can try to add some script that 'fixes' it, but this is the first I've heard of any issues.

    Also if you are going to do that you should also link luac, but this isn't a good solution. The easiest thing to do is add /usr/local/bin to your path (although I am baffled why it's not there already).