How do you install LuaSocket on Mac OS X

How do you install luasocket on the Mac OS X correctly? I have lua 5.1.4 installed as a binary in the /usr/bin on my Mac. I am needing guidance to configure and install luasocket. Please let me know if additional information is needed.


  • If you want the most up-to-date version of LuaSocket:

    git clone -b unstable git://
    cd luasocket
    make macosx
    sudo make install