Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

./configure will nicht

Empfohlene Antworten

Moin alle,

egal bei welcher ./configure Ausführung gibs diese Fehlermeldung.

creating cache ./config.cache

checking host system type... i686-pc-linux-gnu

checking target system type... i686-pc-linux-gnu

checking build system type... i686-pc-linux-gnu

checking for a BSD compatible install... /usr/bin/install -c

/usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: unrecognized option '--as-needed'

/usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: use the --help option for usage information

collect2: ld returned 1 exit status

*** The command 'gcc -o conftest -g -O2 conftest.c' failed.

*** You must set the environment variable CC to a working compiler.

Ich hab Suse 9.1 mit 2.6.4 er Kernel drauf.

gcc version 3.3.4 (pre 3.3.5 20040809)

cc ist auf gcc gelinkt

Hat jemand eine Ahnung was hier gemeint ist?

Gruß, Tom.

Nja, er sagt dir doch die Lösung schon, sogar mit je 3 Sternen markiert:


*** The command 'gcc -o conftest -g -O2 conftest.c' failed.

*** You must set the environment variable CC to a working compiler.

Ein funktionierender C-Compiler befindet sich nicht in Deinem Pfad und die Umgebungsvariable CC einhält auch keinen Pfad zu einem. Wahrscheinlich hast Du keinen gcc installiert.

Gruß, Tobias

moin,

laut yast ist alles installiert.

gcc version 3.3.4 (pre 3.3.5 20040809)

cc ist auf gcc gelink

Wie kann ich den prüfen ob der C Compiler richtig installiert ist ?

Ist es sinvoll die Version 3.3.4 als rpm mit --nodep drüber zu installieren ?

Gruß, Tom.

Hab jetzt nicht so viel Zeit, aber du könntest noch den Befehl

gcc -o conftest -g -O2 conftest.c

mal per Hand ausführen und gucken was passiert. Die Umgebungsvariable heißt übrigen CC und nicht cc.

das kommt dabei raus

linux:/ # gcc -o conftest -g -o2 conftest.c

gcc: conftest.c: No such file or directory

gcc: no input files

Na also, die Datei, die Du kompilieren willst (conftest.c) existiert nicht.

das hilft mir aber jetzt auch nicht weiter.

Ich hab schon versucht einige andere Programme aufzuspielen.

Jedesmal das Gleiche. Es kann doch nicht sein das bei jedem irgend etwas fehlt.

Beispiel: Bildbetrachter

linux:/usr/local/gwenview-1.2.0pre1 # ./configure

checking build system type... i686-pc-linux-gnu

checking host system type... i686-pc-linux-gnu

checking target system type... i686-pc-linux-gnu

checking for a BSD-compatible install... /usr/bin/install -c

checking for -p flag to install... yes

checking whether build environment is sane... yes

checking for gawk... gawk

checking whether make sets ${MAKE}... yes

checking for kde-config... /opt/kde3/bin/kde-config

checking where to install... /opt/kde3 (as returned by kde-config)

checking for style of include used by make... GNU

checking for gcc... gcc

checking for C compiler default output... configure: error: C compiler cannot create executables

check `config.log' for details.

aus der config.log werd ich auch nicht schlau.

Steht die gleiche Fehlermeldung drin

kleiner Ausschnitt:

configure:2215: checking for style of include used by make

configure:2243: result: GNU

configure:2391: checking for gcc

configure:2407: found /usr/bin/gcc

configure:2417: result: gcc

configure:2659: checking for C compiler version

configure:2662: gcc --version </dev/null >&5

gcc (GCC) 3.3.4 (pre 3.3.5 20040809)

Copyright © 2003 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2665: $? = 0

configure:2667: gcc -v </dev/null >&5

Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.4/specs

Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-

prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --enable-lan

guages=c,c++,f77,objc,java,ada --disable-checking --libdir=/usr/lib --enable-lib

gcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zl

ib --enable-shared --enable-__cxa_atexit i586-suse-linux

Thread model: posix

gcc version 3.3.4 (pre 3.3.5 20040809)

configure:2670: $? = 0

configure:2672: gcc -V </dev/null >&5

gcc: `-V' option must have argument

configure:2675: $? = 1

configure:2695: checking for C compiler default output

configure:2698: gcc conftest.c >&5

/usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: unrec

ognized option '--as-needed'

/usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: use t

he --help option for usage information

collect2: ld returned 1 exit status

configure:2701: $? = 1

configure: failed program was:

/* #line 2678 "configure" */

#include "confdefs.h"

Gruß,Tom.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.