Seite 1 von 1

configure - cannot run C compiled programs.

Verfasst: 10.11.2004, 13:51
von CHris08156
Ich habe beim installieren/ compellieren folgende Fehlermeldung bekommen, was kann ich tun?

shell> configure
checking build system type... sparc-sun-solaris2.8
checking host system type... sparc-sun-solaris2.8
checking for gcc... gcc
checking for C compiler default output... conftest.o
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
shell> configure --host localhost
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking build system type... sparc-sun-solaris2.8
checking host system type... localhost
checking for localhost-gcc... gcc
checking for C compiler default output... conftest.o
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for localhost-g++... no
checking for localhost-c++... no
checking for localhost-gpp... no
checking for localhost-aCC... no
checking for localhost-CC... no
checking for localhost-cxx... no
checking for localhost-cc++... no
checking for localhost-cl... no
checking for localhost-FCC... no
checking for localhost-KCC... no
checking for localhost-RCC... no
checking for localhost-xlC_r... no
checking for localhost-xlC... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for compress in -lz... yes
checking for libmysqlclient...
checking for "/usr/lib/libmysqlclient.a"... configure: error: cannot check for file existence when cross compiling

Verfasst: 10.11.2004, 14:18
von edgewalker
Du willst keinen Crosscompile machen, also ist --host nicht die Lösung. Was steht in config.log etwa ab der Zeile mit "checking whether the C compiler works", wenn du es ohne den Parameter ausführst?

Verfasst: 10.11.2004, 14:40
von CHris08156
in der Config.log steht:

Code: Alles auswählen

configure:1682: checking whether the C compiler works[br]configure:1688: ./conftest.o[br]./configure: ./conftest.o: Permission denied[br]configure:1691: $? = 126[br]configure:1699: error: cannot run C compiled programs.[br]If you meant to cross compile, use `--host'.[br][br]## ---------------- ##[br]## Cache variables. ##[br]## ---------------- ##[br][br]ac_cv_build=sparc-sun-solaris2.8[br]...
Es gibt in dem Verzeichnis aber keine conftest.o datei.
Es handelt sich übrigens bei dem Programm um mysqltcl (mysqlControlCenter)
http://www.xdobry.de/mysqltcl/mysqltcl-2.50-0.src.rpm

Verfasst: 10.11.2004, 15:05
von edgewalker
Die Datei wird beim Beenden von configure wieder aufgeräumt..

Verfasst: 10.11.2004, 15:09
von CHris08156
warum hab ich denn keine erlaubnis auf die Datei zuzugreifen?

Verfasst: 10.11.2004, 15:52
von edgewalker
Du hast keine Erlaubnis, sie auszuführen -- das ist was anderes. Warum dem so ist, da bin ich jetzt überfragt. Es könnte sowas blödes sein wie dass GCC keine Ausführungsrechte setzt, oder etwas obskures wie dass du den Configure-Lauf auf einer noexec-Partition durchführst. Ich wüsste auf Anhieb nicht, wie man das genauer diagnostizieren soll..

Verfasst: 10.11.2004, 16:10
von CHris08156
Und was mach ich jetzt ??? *heul*

Verfasst: 10.11.2004, 16:45
von ap0calypse
Auf jeden Fall nicht heulen ... das bringt garnix ;)

Verfasst: 11.11.2004, 08:15
von CHris08156
Hat sonst noch wer nen konstrucktiven Vorschlag, was ich machen kann?
Ich bekom eine Ähnliche Meldung wenn ich mysqltcl configuriere.

Verfasst: 11.11.2004, 09:03
von ap0calypse
Vielleicht mal den Compiler neu installieren? Oder updaten, oder wasweißich ...

Verfasst: 11.11.2004, 09:07
von edgewalker
Du wirst die gleiche Meldung von allen configure-Skripten erhalten...

Kannst du denn mit GCC ausführbare Programme auf der Maschine erzeugen?

Verfasst: 11.11.2004, 09:44
von pixelbrei
EDIT: Argh ich hab grad kompletten Schwachsinn gepostet...
Wenn da noexec drauf wäre, wär ja schon ./configure nicht gegangen...
:ugly:

Verfasst: 11.11.2004, 09:58
von CHris08156
Original erstellt von edgewalker
Du wirst die gleiche Meldung von allen configure-Skripten erhalten...

Kannst du denn mit GCC ausführbare Programme auf der Maschine erzeugen?
Wie mach ich denn das?

Verfasst: 11.11.2004, 11:39
von ap0calypse
eine hello world schreiben.

Code: Alles auswählen

#include <stdio.h>

int main()
{
  printf("blubb");
  return 0;
}
dann gcc -o testbinary testbinarysource.c

und ./testbinary

Wenn das funktioniert ... funktionierts :ugly:

Verfasst: 11.11.2004, 11:55
von CHris08156
das funktioniert.
Kann ich jetzt mit dem gcc mein rogramm compelieren?

Verfasst: 11.11.2004, 12:06
von Chawki
Original erstellt von CHris08156
das funktioniert.
Kann ich jetzt mit dem gcc mein rogramm compelieren?
Das mußt Du einfach mal testen, so wie mit dem helloworld-Programm.