免费注册 查看新帖 |

Chinaunix

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

[Web] 求助,安装PHP5.2.5时,LIBXML2错误。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-12-05 12:29 |只看该作者 |倒序浏览
10可用积分
我的OS为:
as4 up2 64BIT
原来安装libxml2.2.6.29.tar.gz 时,完全没问题,今天刚好升级其他的,就一并把这些升级版本,没想到出现错误
已经耗了我2个小时没解决了。请教大家。谢谢。


PHP配置如下:
./configure --prefix=/usr/local/webserver/php --with-config-file-path=/usr/local/webserver/php/etc --with-mysql=/usr/local/mysql --with-iconv-dir=/usr/local --with-freetype-dir=/usr/local/freetype --with-jpeg-dir=/usr/local/jpeg6 --with-gd=/usr/local/gd2 --with-png-dir=/usr/local/libpng --with-zlib=/usr/local/zlib --with-libxml-dir=/usr/local/libxml22630 --enable-xml --disable-debug --disable-rpath --enable-discard-path --enable-bcmath --enable-gd-native-ttf --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-force-cgi-redirect --enable-mbstring=all --with-mcrypt --with-iconv --enable-sockets --enable-ftp

libxml 安装如下:
libxml2-2.6.30.tar.gz
./configure --prefix=/usr/local/libxml22630
make
make install

错误提示如下:
Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... /usr/local/libxml22630
checking for xml2-config path... /usr/local/libxml222630/bin/xml2-config
checking whether libxml build works... no
configure: error: build test failed.  Please check the config.log for details.

config.log 相关资料如下:

configure:19793: checking whether to enable LIBXML support
configure:19841: checking libxml2 install dir
configure:19870: checking for xml2-config path
configure:20028: checking whether libxml build works
configure:20055: gcc -o conftest -g -O2   -L/usr/local/libxml22630/lib conftest.c

         -lresolv -lm -ldl -lnsl  -lxml2 -lz -liconv -lm 1>&5
configure: failed program was:
#line 20044 "configure"
#include "confdefs.h"


    char xmlInitParser();
    int main() {
      xmlInitParser();
      return 0;
    }




我GOOGLE过类似的问题,反复做了很多次。但都错误。请大家给个指引。

在XMLSOFT.ORG 下过libxml2-2.6.30-1.x86_64.rpm,libxml2-devel-2.6.30-1.x86_64.rpm,libxml2-python-2.6.30-1.x86_64.rpm
无法安装。

论坛徽章:
0
2 [报告]
发表于 2007-12-05 13:21 |只看该作者
libxml2不升级也可以的
如果你的系统是已经付费的可是直接yum libxml2-devel
然后编译的时候去掉--with-libxml-dir=/usr/local/libxml22630
去掉也会编译上xml支持,因为5.2.5默认的时候也编译xml的支持

论坛徽章:
0
3 [报告]
发表于 2007-12-05 23:34 |只看该作者
楼上的兄弟,那非解决之道啊。如果是付费服务的版本,我用的了那么凄凉吗。哈哈。

论坛徽章:
0
4 [报告]
发表于 2007-12-09 16:58 |只看该作者
:wink: :wink: :wink: 把你的源改成centos的

论坛徽章:
0
5 [报告]
发表于 2007-12-10 09:33 |只看该作者
哈。目前打算换成freebsd了。AS 没买服务,没办法享受,还是BSD这类方便点。

论坛徽章:
0
6 [报告]
发表于 2008-10-17 11:44 |只看该作者
这个问题有谁有详细的解答过程
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP