开发者

PyCurl Install not successful

While trying to install pycurl in my system (MAC OS X), I am getting the following error. No idea how to solve it. Please help !!!

   nsh$ sudo easy_install pycurl
   Searching for pycurl
   Reading http://pypi.python.org/simple/pycurl/
   Read开发者_开发知识库ing http://pycurl.sourceforge.net/
   Reading http://pycurl.sourceforge.net/download/
   Best match: pycurl 7.19.0
   Downloading http://pycurl.sourceforge.net/download/pycurl-7.19.0.tar.gz
   Processing pycurl-7.19.0.tar.gz
   Running pycurl-7.19.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-tU3r7x/pycurl-7.19.0 /egg-dist-tmp-XBXPV8
   Using curl-config (libcurl 7.19.7)
   unable to execute gcc-4.2: No such file or directory
   error: Setup script exited with error: command 'gcc-4.2' failed with exit status 1
    nsh$ 


Try to use:

# sudo env ARCHFLAGS="-arch i386 -arch x86_64" pip install pycurl

But before that, install Xcode. Now it's free.


Perhaps you should try installing gcc-4.2?


This might work, depending on whether or not you actually have gcc-4.2 installed.

cd /usr/bin
ln -s gcc gcc-4.2

If that doesn't do the trick (you don't have a valid version of gcc), you will need to install gcc-4.2 which comes with the Apple developer tools

You can also type gcc at the command line to see which versions you have installed.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜