RE: [PHP] install/config error - please help

From: Date: Wed, 30 Jun 2004 16:29:41 +0000
Subject: RE: [PHP] install/config error - please help
Groups: php.general 
Request: Send a blank email to php-general+get-189306@lists.php.net to get a copy of this message
I tried what you suggested and got the following: [root@seahawk root]# "main(){return(0);}" > test.c -bash: main(){return(0);}: command not found [root@seahawk root]# gcc -o test $CFLAGS $CPPFLAGS $LDFLAGS test.c $LIBS /usr/lib/crt1.o(.text+0x18): In function `_start': : undefined reference to `main' collect2: ld returned 1 exit status -----Original Message----- From: Curt Zirzow [mailto:php-general@zirzow.dyndns.org] Sent: Wednesday, June 30, 2004 10:07 AM To: php-general@lists.php.net Subject: Re: [PHP] install/config error - please help * Thus wrote Nguyen, Long P (Mission Systems): > any ideas with this install/config error? > > [root@seahawk php-4.3.7]# ./configure --with-mysql=/usr/local/mysql > creating cache ./config.cache > checking host system type... i686-pc-linux-gnu > checking for gcc... gcc > checking whether the C compiler (gcc ) works... no > configure: error: installation or configuration problem: C compiler cannot create executables. This means that gcc/cc was unable to generate a simple executable, could mean that your ldconfig is messed up or that you have some improper environment settings. You can consult your config.log for any hints. You can test you're executable creating abilities yourself by doing something like: bash$ echo "main(){return(0);}" > test.c bash$ gcc -o test $CFLAGS $CPPFLAGS $LDFLAGS test.c $LIBS You'll probably get errors. Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#189306) next »