安装php5.2.6时遇到的一个错误
configure时用了 --with-mysql=/usr/local/mysql
configure make的时候都是对的,make install的时候出了个错误
此时系统自带的mysql正在运行,新安装的mysql位于 /usr/local/mysql
出现这个错误的原因,大概php在configure 和 make的时候用了不通的mysql lib。
解决办法为
make clean 以后
执行
然后再configure;make;make install
此问题在centos 5.2上测试通过
configure时用了 --with-mysql=/usr/local/mysql
configure make的时候都是对的,make install的时候出了个错误
引用
/usr/src/php-5.2.6/sapi/cli/php: relocation error: /usr/src/php-5.2.6/sapi/cli/php: symbol isinf, version libmysqlclient_15 not defined in file libmysqlclient.so.15 with link time reference
make[1]: *** [install-pear-installer] Error 127
make: *** [install-pear] Error 2
make[1]: *** [install-pear-installer] Error 127
make: *** [install-pear] Error 2
此时系统自带的mysql正在运行,新安装的mysql位于 /usr/local/mysql
出现这个错误的原因,大概php在configure 和 make的时候用了不通的mysql lib。
解决办法为
make clean 以后
执行
引用
export LD_LIBRARY_PATH="/usr/local/mysql/lib:$LD_LIBRARY_PATH"
然后再configure;make;make install
此问题在centos 5.2上测试通过
IPTraf : Detailed interface stats already monitoring
加大mysql的最大连接数


2008/07/31 16:02 | by 