4 Installation Troubleshooting
maxpolk edited this page 2014-12-26 10:27:11 -08:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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.

Windows Conflicts

If you want to build the 'tornado.speedups' extension, you will need a Visual Studio compiler. The latest Visual Studio 2013 Community can be used.

To install with pip and Python 2 using Visual Studio 2013, trick into thinking Visual C++ 9:

SET VS90COMNTOOLS=%VS120COMNTOOLS%

For pip and Python 3 and Visual Studio 2013, trick into thinking Visual C++ 10:

SET VS100COMNTOOLS=%VS120COMNTOOLS%

Then proceed with the pip install tornado. You might needs quotes if there are spaces in the path.