REDHAT9上安装HTTPD2.2.2+MYSQL5.1.11+PHP5.14的问题
请问各位高手:我在安REDHAT9上安装HTTPD2.2.2+MYSQL5.1.11+PHP5.14时出了问题,前面的安装一切正常,在安装PHP5.14时出现如下错误提示:checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more info.
在config.log的错误提示是:/home/mysqldev/rpm/BUILD/mysql-5.1.11-beta/mysql-release-5.1.11-beta/extra/yassl
/taocrypt/src/algebra.cpp:40: undefined reference to `__pure_virtual'
/usr/lib/mysql/libmysqlclient.a(libtaocrypt_la-algebra.o)(.gnu.linkonce.d.__vt_Q
28TaoCrypt23AbstractEuclideanDomain+0x40):/home/mysqldev/rpm/BUILD/mysql-5.1.11-
beta/mysql-release-5.1.11-beta/extra/yassl/taocrypt/src/algebra.cpp:40: more und
efined references to `__pure_virtual' follow
/usr/lib/mysql/libmysqlclient.a(libtaocrypt_la-file.o)(.text+0x85): In function
`TaoCrypt::FileSource::~FileSource(void)':
/home/mysqldev/rpm/BUILD/mysql-5.1.11-beta/mysql-release-5.1.11-beta/extra/yassl
/taocrypt/src/file.cpp:42: undefined reference to `__builtin_delete'
/usr/lib/mysql/libmysqlclient.a(libtaocrypt_la-file.o)(.text+0x295): In function
`TaoCrypt::FileSink::~FileSink(void)':
/home/mysqldev/rpm/BUILD/mysql-5.1.11-beta/mysql-release-5.1.11-beta/extra/yassl
/taocrypt/src/file.cpp:99: undefined reference to `__builtin_delete'
collect2: ld returned 1 exit status
configure: failed program was:
#line 58781 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char mysql_error();
我编译PHP时的配置文件为:configure --prefix=/usr/local/php --with-apxs2=/usr/local/
httpd/bin/apxs --with-gd --with-jpeg-dir --with-ttf --with-zlib-dir --with-png-d
r --with-mysql --enable-track-vars
不要--with-mysql 这一句时能正常通过编译,机器中安装了MySQL-devel-5.1.11-0、MySQL-server-5.1.11-0、MySQL-client-5.1.11-0。请问高手该如何解决?谢谢!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
写上路径后还是同样的错误
换MYSQL5.0X后还是不行,但换PHP4.41后可以成功安装!不知是不是版本兼容的问题,有人说是GCC版本的问题我的GCC为3.2.2-5。
你先换一个mysql5.0.x的看看如何啊。