Skip to content

Installation Troubleshooting

bdarnell edited this page Sep 30, 2010 · 1 revision

MacPorts Conflicts

$ sudo easy_install pycurl
...
Using curl-config (libcurl 7.21.1)
In file included from /opt/local/include/curl/curl.h:35,
                 from src/pycurl.c:50:
/opt/local/include/curl/curlrules.h:143: error: size of array ‘__curl_rule_01__’ is negative
/opt/local/include/curl/curlrules.h:153: error: size of array ‘__curl_rule_02__’ is negative
In file included from /opt/local/include/curl/curl.h:35,
                 from src/pycurl.c:50:
/opt/local/include/curl/curlrules.h:143: error: size of array ‘__curl_rule_01__’ is negative
/opt/local/include/curl/curlrules.h:153: error: size of array ‘__curl_rule_02__’ is negative
lipo: can't open input file: /var/tmp//ccv51A3x.out (No such file or directory)
error: Setup script exited with error: command 'gcc-4.2' failed with exit status 1

This error indicates a conflict between the system version of libcurl (7.19.7 on OS X 10.6) and a more recent version installed by MacPorts. To work around the problem, force the use of the system version of libcurl with PATH=/usr/bin:$PATH sudo easy_install pycurl. Alternately, you can install python and pycurl via MacPorts (sudo port install python26 py26-curl) and use those instead of the system versions.