RE: [PHP-INST] Configure error w/PHP 4 on RH7.2

From: Date: Mon, 10 Jun 2002 21:27:12 +0000
Subject: RE: [PHP-INST] Configure error w/PHP 4 on RH7.2
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-7273@lists.php.net to get a copy of this message
I finally got it to work using the following before running the configure command: export LDFLAGS="-L/usr/kerberos/lib -lkrb5 -lgssapi_krb5 -lpam" Thanks for your help. -----Original Message----- From: Adam Voigt [mailto:adam.voigt@cryptocomm.com] Sent: Monday, June 10, 2002 10:41 AM To: php-install@lists.php.net Subject: Re: [PHP-INST] Configure error w/PHP 4 on RH7.2 This is probably totally incorrect, but I see mention of "krb5" in the error, I'm pretty sure this is the kerberos 5 encryption library and ofcourse this may be a totally acceptable error since as far as I know "krb5" is not required, but just out of curiosity, have you tried rebooting since your RPM install (yes I know you shouldn't have to) and what is your complete configure line for PHP? Adam Voigt adam.voigt@cryptocomm.com On Mon, 2002-06-10 at 10:20, Shaun Fanning wrote: > I'm trying to install PHP 4.2.1 on RH7.2 with support for MySQL 3.23.49a > > I'm getting the following error when running configure: > > checking for mysql_close in -lmysqlclient... no > checking for mysql_error in -lmysqlclient... no > configure: error: mysql configure failed. Please check config.log for > more information > > The relevant output from config.log is contained below: > > configure:40051: checking for mysql_close in -lmysqlclient > configure:40070: gcc -o conftest -g -O2 -DLINUX=22 -DEAPI -DEAPI_MM > -DEAPI_MM_CORE_PA > TH=/var/run/httpd.mm > -L/usr//lib > -Wl,-rpath,/usr//lib -L/usr//lib conftest.c -lmysqlclient -lcrypt > -lpam -lgd -lpn > g -lz -ljpeg -lz -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcrypt > -lgssapi_krb5 -lkrb > 5 -lk5crypto -lcom_err 1>&5 > /usr/bin/ld: cannot find -lgssapi_krb5 > collect2: ld returned 1 exit status > configure: failed program was: > #line 40059 "configure" > #include "confdefs.h" > /* Override any gcc2 internal prototype to avoid an error. */ > /* We use char because int might match the return type of a gcc2 > builtin and then its argument prototype would still apply. */ > char mysql_close(); > > int main() { > mysql_close() > ; return 0; } > configure:40195: checking for mysql_error in -lmysqlclient > configure:40214: gcc -o conftest -g -O2 -DLINUX=22 -DEAPI -DEAPI_MM > -DEAPI_MM_CORE_PA > TH=/var/run/httpd.mm > -L/usr//lib -L/usr//lib > -Wl,-rpath,/usr//lib -L/usr//lib -Wl,-rpath,/usr/ -L/usr/ > conftest.c -lmysqlcl > ient -lz -lcrypt -lpam -lgd -lpng -lz -ljpeg -lz -lcrypt -lresolv -lm > -ldl -lnsl -lr > esolv -lcrypt -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err 1>&5 > /usr/bin/ld: cannot find -lgssapi_krb5 > collect2: ld returned 1 exit status > configure: failed program was: > #line 40203 "configure" > #include "confdefs.h" > /* Override any gcc2 internal prototype to avoid an error. */ > /* We use char because int might match the return type of a gcc2 > builtin and then its argument prototype would still apply. */ > char mysql_error(); > > int main() { > mysql_error() > ; return 0; } > > > The configure statement uses "--with-mysql=/usr" and the mysql library > files are under /usr/lib/mysql. I have also added /usr/lib/mysql and > /usr/lib to the ld.so.conf file and run ldconfig. > > Before trying to build PHP I installed all the MySQL rpms (mysql, > client, shared, devel) successfully and I was able to start, configure > and use the MySQL database with no problems. > > Any ideas would be greatly appreciated. Thanks! > -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.install (#7273) next »