Jump to content

pyCurl installation Failed: arm-linux-gnueabihf-gcc


Recommended Posts

Hi all,

 

I´m trying to install pyCurl with command as root

pip install pycurl

after 10 seconds, console show me this error:

(venv)root@cubox-i:~/pyCA# pip install pycurl
Collecting pycurl
  Using cached pycurl-7.19.5.1.tar.gz
Installing collected packages: pycurl
  Running setup.py install for pycurl
    Complete output from command /root/pyCA/venv/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-yYNrnD/pycurl/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-3uzAV0-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/pyCA/venv/include/site/python2.7/pycurl:
    Using curl-config (libcurl 7.38.0)
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-armv7l-2.7
    creating build/lib.linux-armv7l-2.7/curl
    copying python/curl/__init__.py -> build/lib.linux-armv7l-2.7/curl
    running build_ext
    building 'pycurl' extension
    creating build/temp.linux-armv7l-2.7
    creating build/temp.linux-armv7l-2.7/src
    arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DPYCURL_VERSION="7.19.5.1" -DHAVE_CURL_GNUTLS=1 -DHAVE_CURL_SSL=1 -I/usr/include/python2.7 -c src/docstrings.c -o build/temp.linux-armv7l-2.7/src/docstrings.o
    In file included from src/docstrings.c:4:0:
    src/pycurl.h:148:30: fatal error: gnutls/gnutls.h: No such file or directory
     #   include <gnutls/gnutls.h>
                                  ^
    compilation terminated.
    error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
    
    ----------------------------------------
Command "/root/pyCA/venv/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-yYNrnD/pycurl/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-3uzAV0-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/pyCA/venv/include/site/python2.7/pycurl" failed with error code 1 in /tmp/pip-build-yYNrnD/pycurl

When Im trying to install arm-linux-gnueabihf-gcc, with apt-get install ..... this package will not be founded. 

 

Hope for help.

Link to comment
Share on other sites

src/pycurl.h:148:30: fatal error: gnutls/gnutls.h: No such file or directory

 

So it seems, GNUTLS development stuff is missing. Did you try to install libcurl4-gnutls-dev already? Or try 

apt-cache search gnutls | grep dev

and install the packages listed one by one.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines