2016-09-12 3 views
3

Ich versuche dieses Python-Modul zu installieren, welches Kompilierung erfordert (unter Ubuntu 16.04). Ich bemühe mich, genau zu verstehen, was es verursacht Stall; Was vermisse ich?gcc: Fehler beim Ausführen von 'cc1plus': execvp: Keine solche Datei oder Verzeichnis

(xenial)[email protected]:~$ pip install swigibpy 
Collecting swigibpy 
    Using cached swigibpy-0.4.1.tar.gz 
Building wheels for collected packages: swigibpy 
    Running setup.py bdist_wheel for swigibpy ... error 
    Complete output from command /home/chris/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-162vhh_i/swigibpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmptqb6ctskpip-wheel- --python-tag cp35: 
    running bdist_wheel 
    running build 
    running build_py 
    creating build 
    creating build/lib.linux-x86_64-3.5 
    copying swigibpy.py -> build/lib.linux-x86_64-3.5 
    running build_ext 
    building '_swigibpy' extension 
    creating build/temp.linux-x86_64-3.5 
    creating build/temp.linux-x86_64-3.5/IB 
    creating build/temp.linux-x86_64-3.5/IB/PosixSocketClient 
    gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DIB_USE_STD_STRING=1 -IIB -IIB/PosixSocketClient -IIB/Shared -I/home/chris/anaconda3/include/python3.5m -c IB/PosixSocketClient/EClientSocketBase.cpp -o build/temp.linux-x86_64-3.5/IB/PosixSocketClient/EClientSocketBase.o -Wno-switch 
    gcc: error trying to exec 'cc1plus': execvp: No such file or directory 
    error: command 'gcc' failed with exit status 1 

    ---------------------------------------- 
    Failed building wheel for swigibpy 
    Running setup.py clean for swigibpy 
Failed to build swigibpy 
Installing collected packages: swigibpy 
    Running setup.py install for swigibpy ... error 
    Complete output from command /home/chris/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-162vhh_i/swigibpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-yv9u0wok-record/install-record.txt --single-version-externally-managed --compile: 
    running install 
    running build 
    running build_py 
    creating build 
    creating build/lib.linux-x86_64-3.5 
    copying swigibpy.py -> build/lib.linux-x86_64-3.5 
    running build_ext 
    building '_swigibpy' extension 
    creating build/temp.linux-x86_64-3.5 
    creating build/temp.linux-x86_64-3.5/IB 
    creating build/temp.linux-x86_64-3.5/IB/PosixSocketClient 
    gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DIB_USE_STD_STRING=1 -IIB -IIB/PosixSocketClient -IIB/Shared -I/home/chris/anaconda3/include/python3.5m -c IB/PosixSocketClient/EClientSocketBase.cpp -o build/temp.linux-x86_64-3.5/IB/PosixSocketClient/EClientSocketBase.o -Wno-switch 
    gcc: error trying to exec 'cc1plus': execvp: No such file or directory 
    error: command 'gcc' failed with exit status 1 

    ---------------------------------------- 
Command "/home/chris/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-162vhh_i/swigibpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-yv9u0wok-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-162vhh_i/swigibpy/ 
+0

wie ein Problem mit dem GCC-Installation aussieht. Können Sie C- oder C++ - Dateien manuell kompilieren? – 5gon12eder

Antwort

5

Die Routine Befehle, die mich von Zeit zu Zeit für einen solchen Fehler gespeichert:

sudo apt install upgrade 
sudo apt install update 
sudo apt install gcc python3-dev python3-pip libxml2-dev libxslt1-dev zlib1g-dev 

Hoffe, dass es funktioniert.

+0

repariert es! Danke! – cjm2671

5

Die folgenden für mich gearbeitet:

sudo apt-get install g++ 
Verwandte Themen