nsh
nsh

Reputation: 1529

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/
   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$ 

Upvotes: 2

Views: 1584

Answers (3)

Artem Abramyan
Artem Abramyan

Reputation: 61

Try to use:

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

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

Upvotes: 6

John Lyon
John Lyon

Reputation: 11440

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.

Upvotes: 0

Robus
Robus

Reputation: 8269

Perhaps you should try installing gcc-4.2?

Upvotes: 1

Related Questions