Fedora 25 installation failure
See original GitHub issueI’m trying to get this installed on Fedora 25 with pip but I get an error gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
, further information can be found below.
OS Details
$ lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: Fedora
Description: Fedora release 25 (Twenty Five)
Release: 25
Codename: TwentyFive
Python Information
$ python --version # Python 2.7.13
$ pip --version # pip 9.0.1 from /usr/lib/python2.7/site-packages (python 2.7)
Command
$ sudo pip install magic-wormhole
Collecting magic-wormhole
Downloading magic_wormhole-0.10.2-py2.py3-none-any.whl (156kB)
100% |=====================================> | 163kB 2.4MB/s
Collecting pynacl (from magic-wormhole)
Downloading PyNaCl-1.1.2-cp27-cp27mu-manylinux1_x86_64.whl (539kB)
100% |=====================================> | 542kB 1.6MB/s
Collecting tqdm>=4.13.0 (from magic-wormhole)
Downloading tqdm-4.14.0-py2.py3-none-any.whl (46kB)
100% |=====================================> | 51kB 5.4MB/s
Collecting autobahn[twisted]>=0.14.1 (from magic-wormhole)
Downloading autobahn-17.6.2-py2.py3-none-any.whl (271kB)
100% |=====================================> | 276kB 2.5MB/s
Collecting automat (from magic-wormhole)
Downloading Automat-0.6.0-py2.py3-none-any.whl
Requirement already satisfied: six in /usr/lib/python2.7/site-packages (from magic-wormhole)
Collecting spake2==0.7 (from magic-wormhole)
Downloading spake2-0.7-py2.py3-none-any.whl
Collecting twisted[tls]>=17.5.0 (from magic-wormhole)
Downloading Twisted-17.5.0.tar.bz2 (3.0MB)
100% |=====================================> | 3.0MB 378kB/s
Collecting hkdf (from magic-wormhole)
Downloading hkdf-0.0.3.tar.gz
Collecting txtorcon>=0.19.3 (from magic-wormhole)
Downloading txtorcon-0.19.3-py2.py3-none-any.whl (301kB)
100% |=====================================> | 307kB 2.3MB/s
Collecting humanize (from magic-wormhole)
Downloading humanize-0.5.1.tar.gz
Collecting click (from magic-wormhole)
Downloading click-6.7-py2.py3-none-any.whl (71kB)
100% |=====================================> | 71kB 4.6MB/s
Requirement already satisfied: ipaddress in /usr/lib/python2.7/site-packages (from magic-wormhole)
Collecting cffi>=1.4.1 (from pynacl->magic-wormhole)
Downloading cffi-1.10.0-cp27-cp27mu-manylinux1_x86_64.whl (392kB)
100% |=====================================> | 399kB 2.0MB/s
Collecting txaio>=2.7.0 (from autobahn[twisted]>=0.14.1->magic-wormhole)
Downloading txaio-2.8.0-py2.py3-none-any.whl
Collecting zope.interface>=3.6.0; extra == "twisted" (from autobahn[twisted]>=0.14.1->magic-wormhole)
Downloading zope.interface-4.4.2-cp27-cp27mu-manylinux1_x86_64.whl (170kB)
100% |=====================================> | 174kB 3.1MB/s
Collecting attrs (from automat->magic-wormhole)
Downloading attrs-17.2.0-py2.py3-none-any.whl
Collecting constantly>=15.1 (from twisted[tls]>=17.5.0->magic-wormhole)
Downloading constantly-15.1.0-py2.py3-none-any.whl
Collecting incremental>=16.10.1 (from twisted[tls]>=17.5.0->magic-wormhole)
Downloading incremental-17.5.0-py2.py3-none-any.whl
Collecting hyperlink>=17.1.1 (from twisted[tls]>=17.5.0->magic-wormhole)
Downloading hyperlink-17.2.1-py2.py3-none-any.whl
Collecting pyopenssl>=16.0.0 (from twisted[tls]>=17.5.0->magic-wormhole)
Downloading pyOpenSSL-17.0.0-py2.py3-none-any.whl (51kB)
100% |=====================================> | 61kB 5.4MB/s
Collecting service_identity (from twisted[tls]>=17.5.0->magic-wormhole)
Downloading service_identity-17.0.0-py2.py3-none-any.whl
Collecting idna!=2.3,>=0.6 (from twisted[tls]>=17.5.0->magic-wormhole)
Downloading idna-2.5-py2.py3-none-any.whl (55kB)
100% |=====================================> | 61kB 4.1MB/s
Collecting pycparser (from cffi>=1.4.1->pynacl->magic-wormhole)
Downloading pycparser-2.17.tar.gz (231kB)
100% |=====================================> | 235kB 2.7MB/s
Requirement already satisfied: setuptools in /usr/lib/python2.7/site-packages (from zope.interface>=3.6.0; extra == "twisted"->autobahn[twisted]>=0.14.1->magic-wormhole)
Collecting cryptography>=1.7 (from pyopenssl>=16.0.0->twisted[tls]>=17.5.0->magic-wormhole)
Downloading cryptography-1.9.tar.gz (409kB)
100% |=====================================> | 419kB 2.0MB/s
Collecting pyasn1 (from service_identity->twisted[tls]>=17.5.0->magic-wormhole)
Downloading pyasn1-0.2.3-py2.py3-none-any.whl (53kB)
100% |=====================================> | 61kB 4.8MB/s
Collecting pyasn1-modules (from service_identity->twisted[tls]>=17.5.0->magic-wormhole)
Downloading pyasn1_modules-0.0.9-py2.py3-none-any.whl (60kB)
100% |=====================================> | 61kB 2.9MB/s
Collecting asn1crypto>=0.21.0 (from cryptography>=1.7->pyopenssl>=16.0.0->twisted[tls]>=17.5.0->magic-wormhole)
Downloading asn1crypto-0.22.0-py2.py3-none-any.whl (97kB)
100% |=====================================> | 102kB 2.6MB/s
Requirement already satisfied: enum34 in /usr/lib/python2.7/site-packages (from cryptography>=1.7->pyopenssl>=16.0.0->twisted[tls]>=17.5.0->magic-wormhole)
Installing collected packages: pycparser, cffi, pynacl, tqdm, txaio, zope.interface, constantly, incremental, attrs, automat, hyperlink, idna, asn1crypto, cryptography, pyopenssl, pyasn1, pyasn1-modules, service-identity, twisted, autobahn, hkdf, spake2, txtorcon, humanize, click, magic-wormhole
Running setup.py install for pycparser ... done
Running setup.py install for cryptography ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-dQq4E1/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-5nOTHt-record/install-record.txt --single-version-externally-managed --compile:
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/cryptography
copying src/cryptography/utils.py -> build/lib.linux-x86_64-2.7/cryptography
copying src/cryptography/fernet.py -> build/lib.linux-x86_64-2.7/cryptography
copying src/cryptography/exceptions.py -> build/lib.linux-x86_64-2.7/cryptography
copying src/cryptography/__init__.py -> build/lib.linux-x86_64-2.7/cryptography
copying src/cryptography/__about__.py -> build/lib.linux-x86_64-2.7/cryptography
creating build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/oid.py -> build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/name.py -> build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/general_name.py -> build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/extensions.py -> build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/base.py -> build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/x509
creating build/lib.linux-x86_64-2.7/cryptography/hazmat
copying src/cryptography/hazmat/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/serialization.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/mac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/interfaces.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings
copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
running egg_info
writing requirements to src/cryptography.egg-info/requires.txt
writing src/cryptography.egg-info/PKG-INFO
writing top-level names to src/cryptography.egg-info/top_level.txt
writing dependency_links to src/cryptography.egg-info/dependency_links.txt
writing entry points to src/cryptography.egg-info/entry_points.txt
warning: manifest_maker: standard file '-c' not found
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-2.7/_padding.c'
creating build/temp.linux-x86_64-2.7
generating cffi module 'build/temp.linux-x86_64-2.7/_constant_time.c'
generating cffi module 'build/temp.linux-x86_64-2.7/_openssl.c'
building '_openssl' extension
creating build/temp.linux-x86_64-2.7/build
creating build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/_openssl.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o
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-dQq4E1/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-5nOTHt-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-dQq4E1/cryptography/
Any ideas?
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Updating from fedora 25 to any fedora fails
I cant upgrade from fedora 25 to any fedora. I tried DNF method, from fedora 25 to fedora 27,31,32… But after rebooting, it...
Read more >[SOLVED] Fedora 25 Server Install issue
I'm trying to install the Fedora 25 Server on an old HP PC I'm booting from an USB-Stick and get to the Fedora...
Read more >fedora 25 install instructions currently lead to fail #1430 - GitHub
The problem is that this will currently update the kernel to 4.13 resulting in the same fail as in #1429. $ sudo /usr/share/bcc/tools/offcputime ......
Read more >[Help] Everytime I tried to install Fedora, always gets this error ...
[Help] Everytime I tried to install Fedora, always gets this error only after every second reset I manage to boot.
Read more >Error during installation on Fedora 25 - Avogadro Discussion
Error during installation on Fedora 25 · General Discussion Support · rvp.chem March 16, 2017, 6:13am #1. rvp@localhost build$ cmake …/
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This time it’s a missing header file 😦
Python.h
- this is part of python-devel on Fedora, I think.These errors are demonstrating the main drawback of pip/pipsi - they can only install Python packages but there are some non-Python-package dependencies. 😦
I just noticed the README does have some instructions for Fedora installation. It recommends:
which I see includes python-devel (and redhat-rpm-config! 😄 ).
Maybe the install section of the README needs some reformatting to make it easier to follow or discover.
Yeah, sounds like the Installation section needs a rewrite, more of a flowchart. I’m planning on reworking the README, moving to something like ReadTheDocs, and then we can have a better flow.