Pycurl is not compiled against Openssl.

Hey !
I know it is already asked but that one not worked for me .

help me to fix this

Thanks :slight_smile:

Already solved at

I got this error


┌─[root@parrot]─[~]
└──╼ #pip install wfuzz
Requirement already satisfied: wfuzz in /usr/local/lib/python2.7/dist-packages/wfuzz-2.3.3-py2.7.egg (2.3.3)
Requirement already satisfied: chardet in /usr/local/lib/python2.7/dist-packages/chardet-3.0.4-py2.7.egg (from wfuzz) (3.0.4)
Requirement already satisfied: configparser in /usr/lib/python2.7/dist-packages (from wfuzz) (3.5.0b2)
Requirement already satisfied: future in /usr/local/lib/python2.7/dist-packages/future-0.17.1-py2.7.egg (from wfuzz) (0.17.1)
Collecting pycurl (from wfuzz)
Using cached https://files.pythonhosted.org/packages/e8/e4/0dbb8735407189f00b33d84122b9be52c790c7c3b25286826f4e1bdb7bde/pycurl-7.43.0.2.tar.gz
Requirement already satisfied: pyparsing in /usr/local/lib/python2.7/dist-packages/pyparsing-2.3.0-py2.7.egg (from wfuzz) (2.3.0)
Requirement already satisfied: six in /usr/lib/python2.7/dist-packages (from wfuzz) (1.11.0)
Building wheels for collected packages: pycurl
Running setup.py bdist_wheel for pycurl … error
Complete output from command /usr/bin/python -u -c “import setuptools, tokenize;file=’/tmp/pip-install-R8leCQ/pycurl/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” bdist_wheel -d /tmp/pip-wheel-tdDv96 --python-tag cp27:
Using curl-config (libcurl 7.62.0)
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/curl
copying python/curl/init.py -> build/lib.linux-x86_64-2.7/curl
running build_ext
building ‘pycurl’ extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-AjKZhf/python2.7-2.7.15=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DPYCURL_VERSION=“7.43.0.2” -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/usr/include/python2.7 -c src/docstrings.c -o build/temp.linux-x86_64-2.7/src/docstrings.o
In file included from src/docstrings.c:4:
src/pycurl.h:164:13: fatal error: openssl/ssl.h: No such file or directory

include <openssl/ssl.h>

           ^~~~~~~~~~~~~~~

compilation terminated.
error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1


Failed building wheel for pycurl
Running setup.py clean for pycurl
Failed to build pycurl
Installing collected packages: pycurl
Running setup.py install for pycurl … error
Complete output from command /usr/bin/python -u -c “import setuptools, tokenize;file=’/tmp/pip-install-R8leCQ/pycurl/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-record-lDV4px/install-record.txt --single-version-externally-managed --compile:
Using curl-config (libcurl 7.62.0)
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/curl
copying python/curl/init.py -> build/lib.linux-x86_64-2.7/curl
running build_ext
building ‘pycurl’ extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-AjKZhf/python2.7-2.7.15=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DPYCURL_VERSION=“7.43.0.2” -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/usr/include/python2.7 -c src/docstrings.c -o build/temp.linux-x86_64-2.7/src/docstrings.o
In file included from src/docstrings.c:4:
src/pycurl.h:164:13: fatal error: openssl/ssl.h: No such file or directory
# include <openssl/ssl.h>
^~~~~~~~~~~~~~~
compilation terminated.
error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1

----------------------------------------

Command “/usr/bin/python -u -c “import setuptools, tokenize;file=’/tmp/pip-install-R8leCQ/pycurl/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-record-lDV4px/install-record.txt --single-version-externally-managed --compile” failed with error code 1 in /tmp/pip-install-R8leCQ/pycurl/

Now what should i do ?

Can you plz upload images of error
This type written is very hard to understand

Update : installed successfully But how can i link pycurl against openssl as shown here

mIne was showing this

Don’t do this
Direct run now
theharvestor

It just importtation
In anyscript now you able to add it
#!python
Import OS
import blessing
import terminalTables
import pycur
Etc

it is still there Bro

can you tell me which version of pycurl you are using ?

I not required this for using
theharvestor ; haevestor working perfectly without it
You should update yoyr system

can you give me the screenshot of following commands:
python3
import pycurl
pycurl.version