problems to enable pd_mysql/mysqli

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi List,

have a little Problem to enable pdo_mysql/mysqli in current php 5.2.6
installed ist Mysql 5.0.67

MySQL-server-5.0.67-0
MySQL-shared-compat-5.0.67-0
MySQL-devel-5.0.67-0
MySQL-shared-5.0.67-0
MySQL-client-5.0.67-0

Configurer switch for mysql is:

--with-mysql=shared,/usr
.
--with-mysqli=shared,/usr/bin/mysql_config \
.
--with-pdo-mysql=shared,/usr \

Compiling stops with error:

gcc: /usr/lib/mysql/libmysqlclient.so: No such file or directory

libmysqlclient.so is located in /usr/lib/ but /usr/bin/mysql_config  shows:

Options:
--cflags [-I/usr/include/mysql -I/usr/local/include -L/usr/local/lib -fno-strength-reduce]
       --include        [-I/usr/include/mysql]
--libs [-rdynamic -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv -lc -lnss_files -lnss_dns -lresolv -lmygcc] --libs_r [-rdynamic -L/usr/lib/mysql -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lpthread -lc -lnss_files -lnss_dns -lresolv -lc -lnss_files -lnss_dns -lresolv -lmygcc]
       --socket         [/var/lib/mysql/mysql.sock]
       --port           [0]
       --version        [5.0.67]
--libmysqld-libs [-rdynamic -L/usr/lib/mysql -lmysqld -lz -lpthread -lcrypt -lnsl -lm -lpthread -lc -lnss_files -lnss_dns -lresolv -lc -lnss_files -lnss_dns -lresolv -lrt -lmygcc]

I could copy libmysqlclient.so from /usr/lib/ to /usr/lib/mysql/ to compile successfully but its not a clean solution. mysql rpms are original from mysql.com

What goes wrong?
Thank you

Andre
[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux