免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1334 | 回复: 4
打印 上一主题 下一主题

as4下怎样编译PHP5 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-06-24 09:57 |只看该作者 |倒序浏览
mysql ,apache 已经编译好了,并可以成功启动...但编译到PHP的时候我是用
./configure --with-apxs2=/opt/apache2/bin/apxs --enable-safe-mode --with-openssl --with-zlib --disable-ipv6 --with-libxml=/usr/include/libxsml2 --with-mysql=/opt/mysql


便衣就不成功!     请指教了。..这命令我在RH9下,没有问题....
(主:安装AS4时.默认装上了mysql..跟这个有关系么)

论坛徽章:
0
2 [报告]
发表于 2006-06-24 15:53 |只看该作者
好歹也说说出错信息吧,呵呵。

论坛徽章:
0
3 [报告]
发表于 2006-06-25 11:41 |只看该作者
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 information.
这是编译时出现的错误.

下面是config.log
char mysql_close();

int main() {
mysql_close()
; return 0; }
configure:58773: checking for mysql_error in -lmysqlclient
configure:58792: gcc -o conftest -I/usr/include -g -O2  -Wl,-rpath,/usr/local/mysql/lib -L/usr/local/mysql/lib -L/usr/lib  -Wl,-rpath,/usr -L/usr conftest.c -lmysqlclient  -lz -lz -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
/usr/bin/ld: skipping incompatible /usr/local/mysql/lib/libmysqlclient.a when searching for -lmysqlclient
/usr/bin/ld: cannot find -lmysqlclient
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();

int main() {
mysql_error()
; return 0; }

论坛徽章:
0
4 [报告]
发表于 2006-06-25 22:59 |只看该作者
满屏都是mysql呢

论坛徽章:
0
5 [报告]
发表于 2006-06-25 23:50 |只看该作者
AS4默认安装的MYSQL?

建议楼主重新安装最新版的RPM包,同时要安装Mysql-devel包,

而且,编译PHP时,--with-mysql=/opt/mysql 好象不对吧,你的MYSQL是安装在这里吗?AS4自带的MYSQL应该是直接--with-mysql的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP