Oreiller d'erreur d'installation: commande 'gcc' a échoué avec l'état de sortie 1
Je suis en train de configurer mon Django variante (Bergeronnette) mais ont des problèmes d'installation du nécessaire Oreiller.
De fond: Suis en cours d'exécution Python 2.6.6
, dans virtualenv
, à l'aide de Mac terminal pour avoir accès au shell de domaine hébergé sur Une Petite Orange, no root access
, ne peuvent pas utiliser les commandes sudo
Quand je lance
pip install Pillow
j'obtiens l'erreur ci-dessous:
Downloading/unpacking Pillow
Downloading Pillow-2.3.0.zip (2.4MB): 2.4MB downloaded
Running setup.py (path:/home/clarayee/.env/env/build/Pillow/setup.py) egg_info for package Pillow
Installing collected packages: Pillow
Running setup.py install for Pillow
building 'PIL._imaging' extension
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/home/clarayee/.env/env/build/Pillow/libImaging -I/home/clarayee/.env/env/include -I/usr/local/include -I/usr/include -I/usr/include/python2.6 -c _imaging.c -o build/temp.linux-x86_64-2.6/_imaging.o
unable to execute gcc: Permission denied
error: command 'gcc' failed with exit status 1
Complete output from command /home/clarayee/.env/env/bin/python -c "import setuptools, tokenize;__file__='/home/clarayee/.env/env/build/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-nCrvqa-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/clarayee/.env/env/include/site/python2.6:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.6
creating build/lib.linux-x86_64-2.6/PIL
copying PIL/MicImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/TiffTags.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/ImageWin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/IcnsImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/BmpImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/DcxImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/McIdasImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/ImageFileIO.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/SunImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/ImagePalette.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/ArgImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/Image.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/PngImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/BufrStubImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/PalmImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/ImImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/ImagePath.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/XpmImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/EpsImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/ImageFile.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/ImageMath.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/PpmImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/IcoImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/PcfFontFile.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/ImageTk.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/GdImageFile.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/__init__.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/_util.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/MspImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/FliImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/ImageEnhance.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/TiffImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/TarIO.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/JpegImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/ImageColor.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/Hdf5StubImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/BdfFontFile.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/ImtImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/PixarImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/JpegPresets.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/XVThumbImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/GimpGradientFile.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/ImageQt.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/ImageCms.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/WebPImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/CurImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/FpxImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/ImageMode.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/ImageChops.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/ContainerIO.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/GifImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/WalImageFile.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/ImageDraw2.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/ImageFont.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/IptcImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/ImageOps.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/SgiImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/PsdImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/MpegImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/GbrImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/PcdImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/OleFileIO.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/XbmImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/PSDraw.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/ImageTransform.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/ImageDraw.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/PdfImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/FontFile.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/TgaImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/SpiderImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/WmfImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/ExifTags.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/ImageFilter.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/PcxImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/ImageShow.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/ImageSequence.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/GribStubImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/GimpPaletteFile.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/PaletteFile.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/ImageStat.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/_binary.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/FitsStubImagePlugin.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/tests.py -> build/lib.linux-x86_64-2.6/PIL
copying PIL/ImageGrab.py -> build/lib.linux-x86_64-2.6/PIL
running egg_info
writing dependency_links to Pillow.egg-info/dependency_links.txt
writing Pillow.egg-info/PKG-INFO
writing top-level names to Pillow.egg-info/top_level.txt
warning: manifest_maker: standard file '-c' not found
reading manifest file 'Pillow.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'Pillow.egg-info/SOURCES.txt'
running build_ext
building 'PIL._imaging' extension
creating build/temp.linux-x86_64-2.6/libImaging
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/home/clarayee/.env/env/build/Pillow/libImaging -I/home/clarayee/.env/env/include -I/usr/local/include -I/usr/include -I/usr/include/python2.6 -c _imaging.c -o build/temp.linux-x86_64-2.6/_imaging.o
unable to execute gcc: Permission denied
error: command 'gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /home/clarayee/.env/env/bin/python -c "import setuptools, tokenize;__file__='/home/clarayee/.env/env/build/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-nCrvqa-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/clarayee/.env/env/include/site/python2.6 failed with error code 1 in /home/clarayee/.env/env/build/Pillow
Storing debug log for failure in /home/clarayee/.pip/pip.log
Même problème que quand je lance easy_install. Sera reconnaissant de toute aide!
unable to execute gcc: Permission denied
. Demandez l'hébergement de fournir à l'exécution de votre commande pour vous .ah, elle va faire ça et d'en faire rapport. merci!
1. Vous n'avez pas besoin d'être root pour installer à l'intérieur de
virtualenv
2. Ce n' gcc --version
spectacle? 3. Qu'est-ce que dans /home/clarayee/.pip/pip.log
?1. c'est ce que je pensais aussi. 2. essayé de vérifier la version retourne: -jailshell: /usr/bin/gcc: Permission denied
3. pip.journal dit
unable to execute gcc: Permission denied error: command 'gcc' failed with exit status 1 ---------------------------------------- Cleaning up... Removing temporary dir /home/clarayee/.env/env/build... Command /home/clarayee/.env/env/bin/python -c "
OriginalL'auteur moshushi | 2014-03-12
Vous devez vous connecter pour publier un commentaire.
Assurez-vous d'avoir gcc et python-dev installé
sudo apt-get install gcc python-dev
sudo apt-get install gcc python3.4-dev
pour python3.4gcc
spécifiquement a été la clé pour moi - vous vous contenter de supposer qu'il est là!OriginalL'auteur davarisg
J'ai eu un problème similaire (gcc a échoué, mais aucune mention des autorisations), mais il a des dépendances qui ont été mon problème. En passant, ma tâche consistait à installer Oreiller sur un raspberry pi, qui est pourquoi les dev bibliothèques ont été nécessaires. Ils peuvent ne pas être nécessaire pour vous. C'était le python-imaging commande qui a fait le truc le plus, je pense. Voici ce que j'ai fait:
Sources:
https://github.com/python-imaging/Pillow/issues/322
http://forums.getpebble.com/discussion/8490/ubuntu-install-problem-when-it-comes-to-pip
https://unix.stackexchange.com/questions/105265/install-pil-pillow-via-pip-in-debian-testing-jessie
OriginalL'auteur jstaab
Dans le cas où cette aide à quelqu'un d'autre. Ce peut être ce que le fournisseur de services n'.
Sur CentOS j'ai fini par avoir à installer Python-têtes à résoudre le problème.
puis
sudo apt-get install python-dev
et puis l'installation dePillow
fonctionne en douceur, au moins dans mon cas:pip install pillow
.OriginalL'auteur Brent D.
L'essayer dans le terminal:
Puis
pip install Pillow
Cleaning up... Command /home/clarayee/.env/env/bin/python -c "import setuptools, tokenize;__file__='/home/clarayee/.env/env/build/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-eL8ahy-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/clarayee/.env/env/include/site/python2.6 failed with error code 1 in /home/clarayee/.env/env/build/Pillow Storing debug log for failure in /home/clarayee/.pip/pip.log
cela devrait vraiment travailler.. j'ai essayé celui-ci il y a des siècles..
OriginalL'auteur emh
Résolu. Priyank Patel a raison... c'est un serveur-côté problème d'autorisation. Merci à vous tous!
impossible d'exécuter la gcc: Permission denied . Demandez l'hébergement de fournir à l'exécution de votre commande pour vous . – Priyank Patel hier
OriginalL'auteur moshushi
Vous devez l'exécuter en racine répertoire.
OriginalL'auteur Python Team