erro: script de instalação encerrado com erro: o comando 'x86_64-linux-gnu-gcc' falhou com o status de saída 1

0

Eu executei os seguintes comandos no terminal para um servidor Ubuntu 14.04

$ cd reddit/r2
$ python setup.py build
$ sudo python setup.py develop

Após a última linha eu recebo um erro, por favor, veja abaixo as linhas do terminal.

root@dedi-fr-32312:~# cd reddit/r2
root@dedi-fr-32312:~/reddit/r2# python setup.py build
Cannot find Cython. Skipping Cython build.
Cannot find Baseplate. Skipping Thrift build.
running build
running build_py
running build_ext
root@dedi-fr-32312:~/reddit/r2# sudo python setup.py develop
Cannot find Cython. Skipping Cython build.
Cannot find Baseplate. Skipping Thrift build.
running develop
running egg_info
writing requirements to r2.egg-info/requires.txt
writing r2.egg-info/PKG-INFO
writing top-level names to r2.egg-info/top_level.txt
writing dependency_links to r2.egg-info/dependency_links.txt
writing entry points to r2.egg-info/entry_points.txt
reading manifest file 'r2.egg-info/SOURCES.txt'
writing manifest file 'r2.egg-info/SOURCES.txt'
running build_ext
copying build/lib.linux-x86_64-2.7/Cfilters.so -> 
Creating /usr/local/lib/python2.7/dist-packages/r2.egg-link (link to .)
r2 0.0.0dev is already the active version in easy-install.pth

Installed /root/reddit/r2
Processing dependencies for r2==0.0.0dev
Searching for python-snappy
Reading https://pypi.python.org/simple/python-snappy/
Best match: python-snappy 0.5
Downloading     https://pypi.python.org/packages/70/fa/621594e313b2b9074585af63668f7a314e4d69df536ab592e6e1e353/python-snappy-0.5.tar.gz#md5=044fb0ac21888c0b4eee0c4f15e75504
Processing python-snappy-0.5.tar.gz
Writing /tmp/easy_install-nSKzTM/python-snappy-0.5/setup.cfg
Running python-snappy-0.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-nSKzTM/python-snappy-0.5/egg-dist-tmp-EgXgE7
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
snappymodule.cc:31:22: fatal error: snappy-c.h: No such file or directory
#include <snappy-c.h>
                  ^
compilation terminated.
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
root@dedi-fr-32312:~/reddit/r2# 

Alguma ajuda para corrigir isso?

    
por Esembled INTL 29.04.2016 / 23:10

1 resposta

0

Respondido em comentários por OP :

% bl0ck_qu0te%     
por Tim 13.04.2017 / 14:23