-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Doesn't work on Fedora 21 #85
Comments
You need to install python headers, in ubuntu package with them called |
Thanks, this solved issue. Please update installation instruction with: |
installed python-devel |
Hey, @Kurtoid, what if you take the following approach?
|
Closed
scorphus
pushed a commit
to scorphus/thefuck-wiki
that referenced
this issue
Feb 29, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[jurikolo@t2001542 ~]$ rpm -q python
python-2.7.8-8.fc21.x86_64
[jurikolo@t2001542 ~]$ rpm -q python3
python3-3.4.1-16.fc21.x86_64
[jurikolo@t2001542 ~]$ rpm -q python-pip
python-pip-1.5.6-3.fc21.noarch
[jurikolo@t2001542 ~]$ sudo pip install thefuck
Downloading/unpacking thefuck
Downloading thefuck-1.23.tar.gz
Running setup.py (path:/tmp/pip-build-DiyXNk/thefuck/setup.py) egg_info for package thefuck
Downloading/unpacking pathlib (from thefuck)
Downloading pathlib-1.0.1.tar.gz (49kB): 49kB downloaded
Running setup.py (path:/tmp/pip-build-DiyXNk/pathlib/setup.py) egg_info for package pathlib
Downloading/unpacking psutil (from thefuck)
Downloading psutil-2.2.1.tar.gz (223kB): 223kB downloaded
Running setup.py (path:/tmp/pip-build-DiyXNk/psutil/setup.py) egg_info for package psutil
Installing collected packages: thefuck, pathlib, psutil
Running setup.py install for thefuck
Running setup.py install for pathlib
Running setup.py install for psutil
building '_psutil_linux' extension
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 -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 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPSUTIL_VERSION=221 -I/usr/include/python2.7 -c psutil/_psutil_linux.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_linux.o
psutil/_psutil_linux.c:12:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1
Complete output from command /usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip-build-DiyXNk/psutil/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-EWe0Tg-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/psutil
copying psutil/_pswindows.py -> build/lib.linux-x86_64-2.7/psutil
copying psutil/_pslinux.py -> build/lib.linux-x86_64-2.7/psutil
copying psutil/_psposix.py -> build/lib.linux-x86_64-2.7/psutil
copying psutil/_psbsd.py -> build/lib.linux-x86_64-2.7/psutil
copying psutil/_pssunos.py -> build/lib.linux-x86_64-2.7/psutil
copying psutil/_psosx.py -> build/lib.linux-x86_64-2.7/psutil
copying psutil/_common.py -> build/lib.linux-x86_64-2.7/psutil
copying psutil/_compat.py -> build/lib.linux-x86_64-2.7/psutil
copying psutil/init.py -> build/lib.linux-x86_64-2.7/psutil
running build_ext
building '_psutil_linux' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/psutil
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 -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 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPSUTIL_VERSION=221 -I/usr/include/python2.7 -c psutil/_psutil_linux.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_linux.o
psutil/_psutil_linux.c:12:20: fatal error: Python.h: No such file or directory
#include <Python.h>
compilation terminated.
error: command 'gcc' failed with exit status 1
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip-build-DiyXNk/psutil/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-EWe0Tg-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-DiyXNk/psutil
Storing debug log for failure in /root/.pip/pip.log
[jurikolo@t2001542 ~]$
[jurikolo@t2001542 ~]$
[jurikolo@t2001542 ~]$
[jurikolo@t2001542 ~]$ sudo easy_install thefuck
Searching for thefuck
Best match: thefuck 1.23
Adding thefuck 1.23 to easy-install.pth file
Installing thefuck script to /usr/bin
Using /usr/lib/python2.7/site-packages
Processing dependencies for thefuck
Searching for psutil
Reading https://pypi.python.org/simple/psutil/
Best match: psutil 2.2.1
Downloading https://pypi.python.org/packages/source/p/psutil/psutil-2.2.1.tar.gz#md5=1a2b58cd9e3a53528bb6148f0c4d5244
Processing psutil-2.2.1.tar.gz
Writing /tmp/easy_install-bOMCvU/psutil-2.2.1/setup.cfg
Running psutil-2.2.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-bOMCvU/psutil-2.2.1/egg-dist-tmp-zl8pT0
warning: no previously-included files matching '*' found under directory 'docs/_build'
psutil/_psutil_linux.c:12:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1
The text was updated successfully, but these errors were encountered: