Scrapy: Fails to install on Fedora 24 server

Created on 27 Aug 2016  路  3Comments  路  Source: scrapy/scrapy

Installation fails with the following error:

gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-NYwARV/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-f00YyN-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-NYwARV/cryptography/
install

Most helpful comment

I resolved this by installing redhat-rpm-config

All 3 comments

Hi @Shakyamuni177te ,
so cryptography fails to install.
please check python cryptography installation page:

For Fedora and RHEL-derivatives, the following command will ensure that the required dependencies are installed:
$ sudo yum install gcc libffi-devel python-devel openssl-devel

Hhhhhhmmmm, that doesn't work, but it looks like it's an issue with the cryptography dependency as pip install cryptography fails too even after loading in the pre-reqs manually as you suggest. The cryptography installation page doesn't list Fedora as a test platform so this is probably something I'm likely to have to get my hands dirty tracing myself if I want to get it fixed. Thanks for the help anyway! :)

I resolved this by installing redhat-rpm-config

Was this page helpful?
0 / 5 - 0 ratings