Install Curb / taf2-curb on Snow Leopard

If any of you use pauldix-feedzirra, you need to get curb installed (or taf2-curb). The problem is that gem dependency does not install cleanly on 10.6 Snow Leopard:

gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -DRUBY_EXTCONF_H=\”curb_config.h\”  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -arch i386 -arch x86_64 -g -Os -pipe -fno-common -DENABLE_DTRACE  -fno-common  -pipe -fno-common  -I/opt/local/include -Wall  -c curb.c
In file included from /opt/local/include/curl/curl.h:36,
from curb.h:12,
from curb.c:8:
/opt/local/include/curl/curlrules.h:144: error: size of array ‘__curl_rule_01__’ is negative
/opt/local/include/curl/curlrules.h:154: error: size of array ‘__curl_rule_02__’ is negative
lipo: can’t open input file: /var/tmp//ccFdFUpg.out (No such file or directory)
make: *** [curb.o] Error 1
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -DRUBY_EXTCONF_H=\"curb_config.h\"  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   
-fno-common -arch i386 -arch x86_64 -g -Os -pipe -fno-common -DENABLE_DTRACE  -fno-common  -pipe -fno-common  -I/opt/local/include -Wall  -c curb.c
In file included from /opt/local/include/curl/curl.h:36,
from curb.h:12,
from curb.c:8:
/opt/local/include/curl/curlrules.h:144: error: size of array ‘__curl_rule_01__’ is negative
/opt/local/include/curl/curlrules.h:154: error: size of array ‘__curl_rule_02__’ is negative
lipo: can't open input file: /var/tmp//ccFdFUpg.out (No such file or directory)
make: *** [curb.o] Error 1

The fix?

sudo port install curl
sudo env ARCHFLAGS="-arch x86_64" gem install taf2-curb

To install the ‘curb’ gem from rubyforge, it is the same command just with curb instead of taf2-curb. Pretty straight forward.



3 Responses to “Install Curb / taf2-curb on Snow Leopard”

  1. rabble Says:

    What do you mean ‘port install curb’ in my macports there is no curb port. Even assuming it’s curl, still doesn’t fix the problem. :(

  2. Justin Smestad Says:

    Updated. It should be `sudo port install curl` which should install: http://trac.macports.org/browser/trunk/dports/net/curl/Portfile

  3. Peter Cooper Says:

    Worked great – thanks!

Leave a Reply