views:

215

answers:

2

Hi folks,

I'm finding it to install pycurl on CentOS 5 quite the mission impossible.

This is the error I'm getting:

>>> import pycurl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: libcurl.so.4: cannot open shared object file: No such file or directory

Some help would be beyond amazing. :|

A: 

Looks like you are missing the libcurl libraries, which you can install like this:

sudo yum install libcurl

After that, it may be a good idea to refresh your pycurl install, by doing the following:

sudo easy_install pycurl

If that gives you the error "command not found" (I don't know if CentOS'es built-in version of Python includes SetupTools a/k/a/ easy_install), then you need the SetupTools first and then run the easy_install command above:

sudo yum install python-setuptools

Hope that helps!

ewall
A: 

In Fedora 13 python-pycurl would be the package you were looking for. Try that.

Bryce