`

configure: error: xml2-config not found. Please check your libxml2 installation.

阅读更多
执行PHP的configure命令
# ./configure --prefix=/usr/local/php \
> --with-apxs2=/usr/local/apache/bin/apxs \
> --with-config-file-path=/usr/local/php/etc --enable-soap

报如下错误:
configure: error: xml2-config not found.
Please check your libxml2 installation.


解决办法:
安装libxml2的源码包libxml2-2.6.32.tar.gz,结果php configure时,增加扩展libxml2的命令
# ./configure --prefix=/usr/local/php \
> --with-apxs2=/usr/local/apache/bin/apxs \
> --with-config-file-path=/usr/local/php/etc
> --enable-soap --with-libxml2-dir=/usr/local/libxml2

结果还是报如上的错。

通过如下方式来解决以上问题。
从光碟中安装libxml2-2.6.30-4.rpm和libxml2-devel-2.6.30-4.rpm包,然后进行PHP的configure。

执行命令
# ./configure --prefix=/usr/local/php \
> --with-apxs2=/usr/local/apache/bin/apxs \
> --with-config-file-path=/usr/local/php/etc --enable-soap

就没有问题了。
分享到:
评论

相关推荐

    libxml2-2.9.1.tar.gz

    libxml2是一个用来解析XML文档的函数库。它用 C 语言写成,并且能被多种语言所调用,如 C、C++、XSH、C#、Python、Kylix、Delphi、Ruby、PHP 等。 注:先解压得到libxml2-2.9.1.tar.gz文件,然后再拷贝到linux系统...

    sql-map-config-2.dtd

    ibatis的xml文件对于这个xml文件的规制文件dtd文件

    ibus-table-wubi-1.2.0.20090715.tar.gz

    由于官方的ibus-table没有五笔(wubi98)的码表,而我又是使用五笔98的,所以自己在官方ibus-table-wubi-1.2.0....#./configure --prefix=/usr --enable-wubi98 --disable-wubi86 #make && make install 2009-10-14

    mtd-utils-1.2.0.tar.bz2

    JFFS2 是Flash 上应用最广的一个日志结构文件系统。它提供的垃圾回收机 制,不需要马上对擦写越界的块进行擦写,而只需要将其设置一个标志,标明为 脏块,当可用的块数不足时,垃圾回收机制才开始回收这些节点。同时...

    openwrt-orangepi-zero-ext4-sdcard.img.gz

    Configure items to boot (wifi-xr819, Sunxi-IR, 1Wire (PA06 GPIO-6), i2c0, i2c1, pwm0, usb2-3 ..). Click Save changes. Click Apply changes, and reboot. Orange-pi reboots and a new AP appears "orangepi-...

    gd-devel-2.0.35-11.el6.x86_64.rpm

    redhat 6.4 安装nginx可能会报错./configure: error: the HTTP image filter module requires the GD library. You can either do not enable the module or install the libraries. 此时需要安装gd gd-devel,需要...

    python模块: lxml

    包含:libxml2-2.9.4.tar.gz libxslt-1.1.28.tar.gz lxml-3.8.0.tar....python27 ./setup.py install --with-xml2-config=/usr/local/libxml2/bin/xml2-config --with-xslt-config=/usr/local/libxslt/bin/xslt-config

    konqueror-embedded-ok.tar.bz2

    configure: error: Qt (>= Qt 2.2.2) (library qte) not found. Please check your.... 具体参考我的博客:http://blog.csdn.net/niyufeng/article/details/7233102《6.1 qtopia-2.2.0上实现konqueror网页浏览器 ...

    libxslt-1.1.26.tar.gz libxml2-python-2.6.21.tar.gz

    mkdir /opt/src&& tar -xzf libxml2-2.7.8.tar.gz \ && cd /opt/src/libxml2-2.7.8 \ && ./configure && make && make install \ && cd /opt/src \ && tar -xzf libxslt-1.1.26.tar.gz \ && cd /opt/src/...

    zhcon-0.2.5.tar.gz和zhcon-0.2.5-to-0.2.6.diff.gz

    [root@dhwch zhcon-0.2.5]# ./configure [root@dhwch zhcon-0.2.5]# make [root@dhwch zhcon-0.2.5]# make install 这样,中文控制台终端zhcon就安装好了。要使用zhcon,只需要在控制台下键入命令: [root@dhwch ...

    pecl-memcache-4.0.4.tar.gz

    tar -zxvf pecl-memcache-4.0.4.tar.gz && cd /root/pecl-memcache-4.0.4 && /usr/local/php7/bin/phpize && ./configure --with-php-config=/usr/local/php7/bin/php-config && make && make install

    centos7_rlwrap-0.42.tar.gz

    如编译报错提示:configure:3414: error: no acceptable C compiler found in $PATH yum -y install gcc ./configure && make && make install 安装完成后 [root@localhost rlwrap-0.42]# which rlwrap /usr/local/...

    arm-2014.05-29-arm-none-linux-gnueabi-linux

    arm-2014.05-29-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 ./arm-none-linux-gnueabi-gcc -v Using built-in specs. COLLECT_GCC=./arm-none-linux-gnueabi-gcc Target: arm-none-linux-gnueabi Configured...

    icu4c-69_1-data-bin-l.zip

    在使用超算平台安装R包时,...首先下载stringi和这个包后执行安装命名:R CMD INSTALL --configure-vars='ICUDT_DIR=/packages/path/' stringi_1.7.3.tar.gz ##/packages/R/是icu4c-69_1-data-bin-l.zip的存放目录。

    apr-iconv-1.2.1.tar.gz 、apr-util-1.5.4.tar.gz、apr-1.5.2.tar.gz

    接着安装apr-util和iconv,方法一样不过./configure --with-apr=/usr/local/apr指明一下apr安装位置就可以了,不写也会提示写上。 最后还要在/etc/profile里加上lib库 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/...

    arm-2014.05-29-arm-none-linux-gnueabi

    Configured with: /scratch/maciej/arm-linux-2014.05-rel/src/gcc-4.8-2014.05/configure --build=i686-pc-linux-gnu --host=i686-mingw32 --target=arm-none-linux-gnueabi ...... Thread model: posix gcc ...

    php-memcached-3.1.3.tar.gz

    tar -zxvf php-memcached-3.1.3.tar.gz && cd /root/php-memcached-3.1.3 && /usr/local/php7/bin/phpize && ./configure --with-php-config=/usr/local/php7/bin/php-config --with-libmemcached-dir=/usr/local/...

    greenplum-db-6.2.1-rhel7-x86_64.rpm

    You can use the pxf-site.xml file to configure Kerberos and impersonation settings for your new Hadoop server configurations. The pxf.impersonation.jdbc property setting in the jdbc-site.xml file. ...

    qt-5.9.9-gcc485-libc217-static-qt-xcb.tar.gz

    ./configure -confirm-license -opensource -debug-and-release -static -prefix ../build -no-opengl -nomake tests -no-compile-examples -nomake examples -qt-xcb ———————————————— 原文链接:...

Global site tag (gtag.js) - Google Analytics