Hi All,

i am having a problem with the new php 4.2.2 and mysql support.
I sucked mysql-3.23 binary from mysql.com and installed it. its working
fine with my apache 1.3.26 and php 4.2.1. now i tried to install php 4.2.2 with the 
same ./configure line i used with php 4.2.1. this is what i used:


./configure --with-apache=../apache_1.3.26 --with-mysql=/usr/local/mysql 
--with-gd=../gd-1.8.4 --with-msql --with-openssl --with-zlib --with-png 
--with-png-dir=/usr --with-jpeg-dir=/usr/local --prefix=/usr/local/php-version 
--exec-prefix=/usr/local/php-version

this worked with php 4.2.1. /usr/local/mysql is a root of mysql and
includes the dirs "include" "lib", etc. "lib" includes libmysqlclient.a.

after 4.2.2 configure failed i tried to add /usr/local/mysql/lib to ld.so.conf and ran 
ldconfig, but that didnt help.

interesting configure-lines:
        checking for MySQL support... yes
        checking for mysql_close in -lmysqlclient... no
        checking for mysql_error in -lmysqlclient... no

then configure exits with: 
        configure: error: mysql configure failed. Please check  config.log for more 
information.

Here is the relevant config.log part:

mysql_close()
; return 0; }
configure:40115: checking for mysql_error in -lmysqlclient
configure:40134: gcc -o conftest -g -O2
        -L/usr/lib -L/usr/local/mysql/lib
        -Wl,-rpath,/usr/local/ssl/lib -L/usr/local/ssl/lib 
-Wl,-rpath,/usr/src/gd-1.8.4 -L/usr/src/gd-1.8.4 -Wl,-rpath,/usr/local/Hughes/lib 
-L/usr/local/Hughes/lib -Wl,-rpath,/usr -L/usr conftest.c -lmysqlclient  -lz -lmsql 
-lgd -lpng -lz
-ljpeg -lz -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl  -lresolv -lcrypt 
1>&5/usr/bin/ld: cannot find -lmsql
collect2: ld returned 1 exit status
configure: failed program was:
#line 40123 "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; }


Hope you can help me !

Best Regards,
Philipp

-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to