- 论坛徽章:
- 0
|
本帖最后由 big_turnip 于 2013-07-11 15:31 编辑
php已经安装完成
在添加mysqli模块的时候发生了错误
configure: error: wrong mysql library version or lib not found. Check config.log for more information.
编译参数- ./configure --with-php-config=/usr/local/php/bin/php-config --with-mysqli=/usr/local/mysql/bin/mysql_config
复制代码 系统中自带有mysql-server, /usr/local/mysql是我自己编译安装的版本为Percona-Server-5.5.31-rel30.3.tar.gz- rpm -aq|grep mysql
- mysql-server-5.1.69-1.el6_4.x86_64
- qt-mysql-4.6.2-24.el6.x86_64
- mysql-libs-5.1.69-1.el6_4.x86_64
- mysql-5.1.69-1.el6_4.x86_64
- rpm -aq|grep MySQL
- perl-DBD-MySQL-4.013-3.el6.x86_64
- MySQL-devel-5.5.31-2.el6.x86_64
复制代码 求解
config.log片段- configure:4694: cc -o conftest -g -O2 -Wl,-rpath,/usr/local/mysql/lib -L/usr/local/mysql/lib -lmysqlclient -lprobes_mysql -lm -lrt -ldl -lmygcc conftest.c -lmysqlclient >&5
- /usr/bin/ld: cannot find -lprobes_mysql
- collect2: ld returned 1 exit status
- configure:4701: $? = 1
- configure: failed program was:
- | /* confdefs.h. */
- | #define PACKAGE_NAME ""
- | #define PACKAGE_TARNAME ""
- | #define PACKAGE_VERSION ""
- | #define PACKAGE_STRING ""
- | #define PACKAGE_BUGREPORT ""
- | /* end confdefs.h. */
- |
- | /* Override any GCC internal prototype to avoid an error.
- | Use char because int might match the return type of a GCC
- | builtin and then its argument prototype would still apply. */
- | #ifdef __cplusplus
- | extern "C"
- | #endif
- | char mysql_set_server_option ();
- | int
- | main ()
- | {
- | return mysql_set_server_option ();
- | ;
- | return 0;
- | }
- configure:4724: result: no
- configure:5059: error: wrong mysql library version or lib not found. Check config.log for more information.
复制代码 |
|