Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation failed #7

Closed
DigApis-Michael opened this issue Dec 14, 2017 · 7 comments
Closed

installation failed #7

DigApis-Michael opened this issue Dec 14, 2017 · 7 comments
Labels

Comments

@DigApis-Michael
Copy link

No description provided.

@DigApis-Michael
Copy link
Author

DigApis-Michael commented Dec 14, 2017

The Error is:

copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl
    running egg_info
    writing src/cryptography.egg-info/PKG-INFO
    writing dependency_links to src/cryptography.egg-info/dependency_links.txt
    writing entry points to src/cryptography.egg-info/entry_points.txt
    writing requirements to src/cryptography.egg-info/requires.txt
    writing top-level names to src/cryptography.egg-info/top_level.txt
    reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    no previously-included directories found matching 'docs/_build'
    warning: no previously-included files matching '*' found under directory 'vectors'
    writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
    running build_ext
    generating cffi module 'build/temp.linux-x86_64-3.6/_padding.c'
    creating build/temp.linux-x86_64-3.6
    generating cffi module 'build/temp.linux-x86_64-3.6/_constant_time.c'
    generating cffi module 'build/temp.linux-x86_64-3.6/_openssl.c'
    building '_openssl' extension
    creating build/temp.linux-x86_64-3.6/build
    creating build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-L5pQY2/python3.6-3.6.4~rc1=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -c build/temp.linux-x86_64-3.6/_openssl.c -o build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6/_openssl.o
    build/temp.linux-x86_64-3.6/_openssl.c:483:10: fatal error: openssl/opensslv.h: No such file or directory
     #include <openssl/opensslv.h>
              ^~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    
    ----------------------------------------
  Can't rollback cryptography, nothing uninstalled.
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-2zftfcbg/cryptography/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-_gadlt48-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-2zftfcbg/cryptography/

ENV: Kali VM 64 bit + apt-get install python3-pip

@jonluca
Copy link
Owner

jonluca commented Dec 14, 2017

Hmmm looks like you'll also need openssl and various dependencies. Try:

sudo apt-get install python3-pip python-dev libssl-dev

Then try installing it.

@DigApis-Michael
Copy link
Author

@jonluca Hi Jonluca, thank you for such a quick response. Yep, I've insalled the devs, and it's installed successfully. Great tool, recommended by a friend.

@jonluca
Copy link
Owner

jonluca commented Dec 14, 2017

Thanks!

I just tested it on my Kali box and I'm getting the same results. I'll work on this.

Thanks!

@jonluca jonluca added the bug label Dec 14, 2017
@DigApis-Michael
Copy link
Author

@jonluca the exact command for Kali is:

apt-get install build-essential libssl-dev libffi-dev python3-dev

Just for your reference, if needed. :-)

@jonluca
Copy link
Owner

jonluca commented Dec 14, 2017

How odd. I ran sudo apt-get install build-essential libssl-dev libffi-dev python3-dev from here and it resolved my issue.

Make sure you do pip3 install ., as well.

Ah great to hear it worked for you!

@jonluca jonluca closed this as completed Dec 14, 2017
@DigApis-Michael
Copy link
Author

@jonluca Hah, I just want to make sure the dev is also for python3 (I got a feeling from you readme that I'd better use all python3 for this, so....).

I also found a solution asking to install python-dev, without 3. But anyway, that's ok for this tool. Feeling safe. 😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants