php 是源码编译安装,mysql 是通过rpm 包安装,想安装一个pdo_mysql扩展;进入到php的源码包下找pdo_mysql扩展后;
一直编译不通过;
./configure --with-php-config=/usr/local/php/bin/php-config --with-pdo-mysql=/usr/bin/mysql --with-zlib-dir=/var/lib64/mysql
mysql的安装路径我也不知道是那个但是 whereis mysql 出来的路径 就 /usr/bin/mysql 有效,
错误如下
checking for MySQL support for PDO... yes, shared
checking for the location of libz... /var/lib64/mysql
checking for mysql_config... /usr/bin/mysql
/usr/bin/mysql: unknown option '--libs'
/usr/bin/mysql: unknown option '--cflags'
checking for mysql_commit in -lmysqlclient... no
checking for mysql_commit in -lmysqlclient... (cached) no
configure: error: PDO_MYSQL configure failed, MySQL 4.1 needed. Please check config.log for more information.
请大神帮忙解决啊;谢谢;