Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Exception: `curl-config' not found -- please install the libcurl development files
(env)~/env pip install pycurl
Downloading/unpacking pycurl
Downloading pycurl-7.19.0.tar.gz (71Kb): 71Kb downloaded
Running setup.py egg_info for package pycurl
sh: curl-config: not found
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/eric/env/build/pycurl/setup.py", line 90, in <module>
raise Exception, ("`%s' not found -- please install the libcurl development files" % CURL_CONFIG)
Exception: `curl-config' not found -- please install the libcurl development files
Complete output from command python setup.py egg_info:
sh: curl-config: not found
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/eric/env/build/pycurl/setup.py", line 90, in <module>
raise Exception, ("`%s' not found -- please install the libcurl development files" % CURL_CONFIG)
Exception: `curl-config' not found -- please install the libcurl development files
----------------------------------------
Command python setup.py egg_info failed with error code 1
Storing complete log in /home/eric/.pip/pip.log
(env)~/env apt-cache depends python-pycurl
python-pycurl
Depends: libc6
Depends: libcurl3-gnutls
Depends: libgcrypt11
Depends: libgnutls26
Depends: libgssapi-krb5-2
Depends: libidn11
Depends: libldap-2.4-2
Depends: zlib1g
Depends: python
Depends: python
Depends: python-support
Suggests: libcurl4-gnutls-dev
Suggests: python-pycurl-dbg
Conflicts: <python2.3-pycurl>
Conflicts: <python2.4-pycurl>
Replaces: <python2.3-pycurl>
Replaces: <python2.4-pycurl>
(env)~/env
(env)~/env sudo apt-get install libcurl4-gnutls-dev
then ``pip install pycurl``
@b1

This comment has been minimized.

Copy link

@b1 b1 commented Mar 1, 2012

Thanks for this gist!!!11

If somebody have additional problems with install with this error

gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.7/src/pycurl.o -L/usr/lib/x86_64-linux-gnu -lcurl -lidn -lgcrypt -llber -lldap -lrt -lgssapi_krb5 -lz -lgnutls -lgcrypt -lrtmp -lz -lgnutls -o build/lib.linux-x86_64-2.7/pycurl.so -Wl,-Bsymbolic-functions /usr/lib/x86_64-linux-gnu/libcurl.a -Wl,-Bsymbolic-functions

/usr/bin/ld: cannot find -lrtmp

Just install
sudo apt-get install libcurl4-gnutls-dev librtmp-dev
Why package needed? I don't know -_- but it works

@oddtazz

This comment has been minimized.

Copy link

@oddtazz oddtazz commented Oct 14, 2012

@b1 's trick works.

I still had to " apt-get install python2.7-dev " too.

@micfan

This comment has been minimized.

Copy link

@micfan micfan commented May 15, 2013

that's nice

@nathanhere

This comment has been minimized.

Copy link

@nathanhere nathanhere commented Jun 15, 2013

Just what the doctor ordered.

@anywhim

This comment has been minimized.

Copy link

@anywhim anywhim commented Jan 9, 2014

+1. Thanks!

@lafolle

This comment has been minimized.

Copy link

@lafolle lafolle commented Jan 23, 2014

+1

@ravindrajain

This comment has been minimized.

Copy link

@ravindrajain ravindrajain commented Apr 16, 2014

Thanks a lot @b1. Your solution just worked.

@johndeng

This comment has been minimized.

Copy link

@johndeng johndeng commented May 16, 2014

Thanks!

@andreluisdias

This comment has been minimized.

Copy link

@andreluisdias andreluisdias commented May 31, 2014

You could run: sudo apt-get install libcurl4-openssl-dev

It worked in my workspace/Ubuntu distro:
Description: Ubuntu 13.10
Release: 13.10
Codename: saucy

Regards,

@rosgzc

This comment has been minimized.

Copy link

@rosgzc rosgzc commented Aug 28, 2014

Life saver! Thank you @b1! :)

@mastersoftwaresolutions

This comment has been minimized.

Copy link

@mastersoftwaresolutions mastersoftwaresolutions commented Oct 14, 2014

Awesome, It worked, thank you so much :)

@prospchr

This comment has been minimized.

Copy link

@prospchr prospchr commented Nov 25, 2014

On CentOS, you have to run: yum install libcurl-devel

@adefelicibus

This comment has been minimized.

Copy link

@adefelicibus adefelicibus commented Jul 3, 2015

Awesome! Thank's a lot!

@larssondaniel

This comment has been minimized.

Copy link

@larssondaniel larssondaniel commented Aug 11, 2015

@AudreyBramy

This comment has been minimized.

Copy link

@AudreyBramy AudreyBramy commented Dec 18, 2015

Hi !

I'm working on ubuntu 14.04 with python 3.4 and I didn't succeed to install pycurl !

This file doesn't exist
Could not run curl-config: [Errno 2] No such file or directory: '/usr/local/bin/curl-config'

Thanks !

@stphivos

This comment has been minimized.

Copy link

@stphivos stphivos commented Mar 1, 2016

Had to do first: sudo apt-get update
Then @b1's suggestion: sudo apt-get install libcurl4-gnutls-dev librtmp-dev
And pip install pycurl worked. Thanks!

@B0Ja

This comment has been minimized.

Copy link

@B0Ja B0Ja commented Mar 30, 2016

@b1's sudo apt-get install libcurl4-gnutls-dev librtmp-dev worked well for me.

Thanks!

@dnaranjo89

This comment has been minimized.

Copy link

@dnaranjo89 dnaranjo89 commented Apr 25, 2016

In my case apt-get install libcurl4-gnutls-dev was enough, no need to install librtmp-dev

@nvuyyuru

This comment has been minimized.

Copy link

@nvuyyuru nvuyyuru commented Aug 30, 2016

In file included from src/docstrings.c:4:0:

src/pycurl.h:4:20: fatal error: Python.h: No such file or directory

#include <Python.h>

                ^

compilation terminated.

error: command 'i686-linux-gnu-gcc' failed with exit status 1


Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip-build-5JPPwR/pycurl/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-9So7hM-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-5JPPwR/pycurl
Storing debug log for failure in /home/xyz/.pip/pip.log

This error was observed while installing pycurl using "pip install pycurl".....can any suggest me with apt answer.

@dcodecasa

This comment has been minimized.

Copy link

@dcodecasa dcodecasa commented Sep 16, 2016

Try with
apt-get install libcurl4-gnutls-dev python-dev

You may also need to install libmysqlclient-dev

@PhamNhai

This comment has been minimized.

Copy link

@PhamNhai PhamNhai commented Jun 30, 2017

thanks!

@Sergey19940808

This comment has been minimized.

Copy link

@Sergey19940808 Sergey19940808 commented Sep 1, 2017

+1

@ruzfi72

This comment has been minimized.

Copy link

@ruzfi72 ruzfi72 commented Feb 24, 2018

thanks! @b1

@nwalsh1995

This comment has been minimized.

Copy link

@nwalsh1995 nwalsh1995 commented Aug 2, 2018

sudo apt-get install libpython3.6-dev worked for me

@crifan

This comment has been minimized.

Copy link

@crifan crifan commented May 9, 2019

for my CentOS 7, work for me using:

yum -y install python36-devel

@xiaoshi100086

This comment has been minimized.

Copy link

@xiaoshi100086 xiaoshi100086 commented Sep 10, 2019

+1. Thanks!

@nkggautam

This comment has been minimized.

Copy link

@nkggautam nkggautam commented Oct 1, 2020

how to install the libcurl4-gnutls-dev using pip3, as alpine is being used in the dockerfile

@masterofyourmind

This comment has been minimized.

Copy link

@masterofyourmind masterofyourmind commented Oct 21, 2020

How can I download "sudo apt-get install libmysqlclient-dev libcurl4-gnutls-dev" in python 3+ on windows ???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment