安装php时出现的一个错误

| |
[不指定 2008/07/31 16:02 | by real ]
安装php5.2.6时遇到的一个错误
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

此时系统自带的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上测试通过
Tags: ,
mysql | 评论(0) | 引用(0) | 阅读(151)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
昵称   密码   游客无需密码
网址   电邮   [注册]
               

验证码 请输入左侧的字母,不区分大小写