configure:1903: error: no acceptable C compiler found in $PATH
-
Das erhalte ich als Meldung, wenn ich auf meinem (neu installierten) System etwas kompilieren will. Alos habei ich erstmal geschaut, ob wirklich kein Compiler am Start ist:
>$ sudo dpkg -l | grep g++ ii g++-3.3 3.3.5-8ubuntu2 The GNU C++ compiler >$ sudo dpkg -l | grep gcc ii gcc-3.3 3.3.5-8ubuntu2 The GNU C compiler ii gcc-3.3-base 3.3.5-8ubuntu2 The GNU Compiler Collection (base package) ii gcc-3.4-base 3.4.3-9ubuntu4 The GNU Compiler Collection (base package) ii lib32gcc1 4.0-0pre6ubunt GCC support library (ia32) ii libgcc1 4.0-0pre6ubunt GCC support library
Sollte also einer da sein. Das Logfile des Compilers zeigt allerdings ghegensätzliches an:
configure:1340: checking for a BSD-compatible install
configure:1395: result: /usr/bin/install -c
configure:1406: checking whether build environment is sane
configure:1449: result: yes
configure:1464: checking whether make sets $(MAKE)
configure:1484: result: yes
configure:1516: checking for working aclocal-1.4
configure:1523: result: found
configure:1531: checking for working autoconf
configure:1538: result: found
configure:1546: checking for working automake-1.4
configure:1553: result: found
configure:1561: checking for working autoheader
configure:1568: result: found
configure:1576: checking for working makeinfo
configure:1587: result: missing
configure:1639: checking for gcc
configure:1668: result: no
configure:1719: checking for cc
configure:1748: result: no
configure:1761: checking for cc
configure:1807: result: no
configure:1860: checking for cl
configure:1889: result: no
configure:1903: error: no acceptable C compiler found in $PATHWie krieg ich das jetzt korrekt eingestellt?
Falls es weiterhilft: Ich verwende Ubuntu "Hoary".
Danke für alle Tips!
-
Was sagt denn gcc -v?
-
apt-get install gcc
die gcc-xx pakete geben dir afaik auch nur gcc-xx binaries.
-
Danke, das hat geholfen. Aber warum sieht es mit dpkg -l dann so aus, als seien die compiler ganz prima installiert, das ist doch verwirrend.
-
Die Compiler sind ja auch ganz prima installiert. Nur werden die Compiler eben als gcc-x.x installiert und mit dem gcc Paket werden dann erst die Links auf gcc gesetzt.
Du hättest auch einfach CC=gcc-3.3 setzen können oder selbst einen Link setzen können.