Installing Pycurl on CentOS?
I find it is quite possible to install pycurl on CentOS 5 .
This is the error I am 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 incredible .: |
a source to share
I know this is an old question, but I had this problem and the solution was to add the following soft link:
ln -s /usr/local/lib/libcurl.so.4.1.0 /usr/lib/libcurl.so.4
This is for libcurl 7.19.
The problem is that pycurl is looking for libcurl, so in a different location than where it is installed on CentOS.
This works when installing pycurl manually, for example when using a version of python other than 2.4, which is probably the most installed today. I suppose pycurl centos rpm handles this, but this only works for 2.4.
a source to share
It looks like you are missing the libcurl libraries, which you can install like this:
sudo yum install libcurl
After that, it might be a good idea to update your pycurl installation by doing the following:
sudo easy_install pycurl
If this gives you a command not found error (I don't know if the built-in version of Python is enabled on CentOS, including SetupTools a / k / a / easy_install), then you need to have SetupTools first and then run the easy_install command above:
sudo yum install python-setuptools
Hope it helps!
a source to share