Reputation: 103
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.
Upvotes: 4
Views: 3198
Reputation: 71
Need to use some lua package manager to install luasocket.
the easiest way in MAC OS for my point, will be - luarocks
brew install luarocks
and then:
luarocks install luasocket
In my case after it, I can debug lua code by using luasocket connecting (in IntelliJ Idea in my case)
Upvotes: 0
Reputation: 7020
If you want the most up-to-date version of LuaSocket:
git clone -b unstable git://github.com/diegonehab/luasocket.git
cd luasocket
make macosx
sudo make install
Upvotes: 3