嘗試在我的系統(MAC OS X)中安裝pycurl時,出現以下錯誤。不知道如何解決它。請幫忙 !!!PyCurl安裝不成功
nsh$ sudo easy_install pycurl
Searching for pycurl
Reading http://pypi.python.org/simple/pycurl/
Reading 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$
我做了cd/usr/bin然後$ ls -l | grep gcc lrwxr-xr-x 1根輪7 2011年1月5日cc - > gcc-4.0 lrwxr-xr-x 1根輪7 2011年1月5日gcc - > gcc-4.0 -rwxr-xr-x 1個根輪93072 Sep 23 2007 gcc-4.0 -rwxr-xr-x 1 root wheel 369408 Sep 23 2007 i686-apple-darwin9-gcc-4.0.1 -rwxr-xr-x 1 root wheel 369408 Sep 23 2007 powerpc-apple- darwin9-gcc-4.0.1 $ 這意味着我已經有符號鏈接,但不是gcc-4.2 – nsh
謝謝!我會安裝gcc-4.2並且會回來! – nsh