Failed to restore pycurl using OpenSSL
I am trying to rebuild pycurl with OpenSSL due to this error . I am using this example :
- sudo apt-get install build-essential fakeroot dpkg-dev
- mkdir ~ / python-pycurl-openssl
- cd ~ / python-pycurl-openssl
- sudo apt-get source python-pycurl
- sudo apt-get build-dep python-pycurl
- sudo apt-get install libcurl4-openssl-dev
- sudo dpkg-source -x pycurl_7.19.3-0ubuntu3.dsc
- cd pycurl-7.19.3
- edit debian / control file and replace all instances of "libcurl4-gnutls-dev" with "libcurl4-openssl-dev" (7 changes)
- sudo PYCURL_SSL_LIBRARY = openssl dpkg-buildpackage -rfakeroot -b
- sudo dpkg -i ../ python-pycurl_7.19.3-0ubuntu3_amd64.deb
But I'm still sticking with the GnuTLS pycurl build.
>>> pycurl.version
'PycURL/7.19.5.1 libcurl/7.35.0 GnuTLS/2.12.23 zlib/1.2.8 libidn/1.28 librtmp/2.3'
Operations log (there are some error traces): http://pastebin.com/6hUEUGar
I use:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.2 LTS
Release: 14.04
Codename: trusty
What am I doing wrong?
I could solve the problem using pip:
sudo pip uninstall pycurl
export PYCURL_SSL_LIBRARY=openssl
sudo pip install pycurl --upgrade
Now:
>>> pycurl.version
'PycURL/7.19.5.1 libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3'
But I'm not sure. Right. Why are there two packages in the system? Or is this ok and python is just linked to one of them?
+3
source to share
No one has answered this question yet
Check out similar questions: