Willkommen im #Neuland
Login wie bei quake.ingame.de zuvor, die Passwörter aus der alten Datenbank wurden aber gelöscht - einmal hier neu anfordern.
Wer seine E-Mail-Adresse nicht mehr hat oder kennt, bitte eine Nachricht mit Infos schicken o. im Discord melden.

PQ Discord Server: #planetquake                                                                                                                                         Spenden? Hier entlang!

configure - cannot run C compiled programs.

GNU/Linux-, *BSD- und Fricklerforum
Antworten
CHris08156

configure - cannot run C compiled programs.

Beitrag 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
edgewalker

Beitrag 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?
CHris08156

Beitrag 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
edgewalker

Beitrag von edgewalker »

Die Datei wird beim Beenden von configure wieder aufgeräumt..
CHris08156

Beitrag von CHris08156 »

warum hab ich denn keine erlaubnis auf die Datei zuzugreifen?
edgewalker

Beitrag 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..
CHris08156

Beitrag von CHris08156 »

Und was mach ich jetzt ??? *heul*
ap0calypse
Slash
Slash
Beiträge: 678
Registriert: Jan 2004
Wohnort: Wörgl / Tirol / Austria

Beitrag von ap0calypse »

Auf jeden Fall nicht heulen ... das bringt garnix ;)
To follow the path:
look to the master,
follow the master,
walk with the master,
see through the master,
become the master.
CHris08156

Beitrag von CHris08156 »

Hat sonst noch wer nen konstrucktiven Vorschlag, was ich machen kann?
Ich bekom eine Ähnliche Meldung wenn ich mysqltcl configuriere.
ap0calypse
Slash
Slash
Beiträge: 678
Registriert: Jan 2004
Wohnort: Wörgl / Tirol / Austria

Beitrag von ap0calypse »

Vielleicht mal den Compiler neu installieren? Oder updaten, oder wasweißich ...
To follow the path:
look to the master,
follow the master,
walk with the master,
see through the master,
become the master.
edgewalker

Beitrag von edgewalker »

Du wirst die gleiche Meldung von allen configure-Skripten erhalten...

Kannst du denn mit GCC ausführbare Programme auf der Maschine erzeugen?
pixelbrei
Bitterman
Bitterman
Beiträge: 160
Registriert: Okt 2001

Beitrag von pixelbrei »

EDIT: Argh ich hab grad kompletten Schwachsinn gepostet...
Wenn da noexec drauf wäre, wär ja schon ./configure nicht gegangen...
:ugly:
CHris08156

Beitrag 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?
ap0calypse
Slash
Slash
Beiträge: 678
Registriert: Jan 2004
Wohnort: Wörgl / Tirol / Austria

Beitrag 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:
To follow the path:
look to the master,
follow the master,
walk with the master,
see through the master,
become the master.
CHris08156

Beitrag von CHris08156 »

das funktioniert.
Kann ich jetzt mit dem gcc mein rogramm compelieren?
Chawki

Beitrag 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.
Antworten