Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Pycurl on CentOS?

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. :|

like image 658
RadiantHex Avatar asked Nov 24 '25 14:11

RadiantHex


2 Answers

I know this is an old question, but I was just having this issue 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 appears to be that pycurl is looking for the libcurl so in a different location than where it gets installed on CentOS.

This works when installing pycurl manually, such as when are using a python version other than 2.4, which is probably most of today's installs. I assume the pycurl centos rpm handles that, but that works for 2.4 only.

like image 101
n_are_q Avatar answered Nov 26 '25 03:11

n_are_q


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

like image 20
Bryce Avatar answered Nov 26 '25 04:11

Bryce



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!