Skip navigation.

Tales of Extraordinary Interest

Powerful Magic.

Posts tagged with "sockets"

Decent Makefile for luasocket 2.0.1 on FreeBSD

, , ,

The luasocket in /usr/ports/net/luasocket is 2.0, but it has a requirement of compat-5.1 which makes it require lua50!

So, the best bet is to download luasocket from the luasocket page, and then compile and install it yourself. However, its makefile and config file are kind of cracked out. It also assumes you use Lua 5.0 and need compat-5.1r5 which it comes with, but doesn't seem to want to compile into an object file even after editing the makefile.

I hacked on them a bit, and these should work for anyone who installed /usr/ports/lang/lua (5.1), and doesn't want to deal with the compat-5.1 crap.

config
makefile

Hope this can help someone else out until the port gets updated.

December 2009
S M T W T F S
November 2009January 2010
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31