[PHP] install/config error - please help
any ideas with this install/config error? [EMAIL PROTECTED] 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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] install/config error - please help
* Thus wrote Nguyen, Long P (Mission Systems): any ideas with this install/config error? [EMAIL PROTECTED] 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
RE: [PHP] install/config error - please help
I tried what you suggested and got the following: [EMAIL PROTECTED] root]# main(){return(0);} test.c -bash: main(){return(0);}: command not found [EMAIL PROTECTED] 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:[EMAIL PROTECTED] Sent: Wednesday, June 30, 2004 10:07 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] install/config error - please help * Thus wrote Nguyen, Long P (Mission Systems): any ideas with this install/config error? [EMAIL PROTECTED] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] install/config error - please help
* Thus wrote Nguyen, Long P (Mission Systems): I tried what you suggested and got the following: [EMAIL PROTECTED] root]# main(){return(0);} test.c -bash: main(){return(0);}: command not found You missed the 'echo'.. bash$ echo main(){return(0);} test.c 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