`

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

    博客分类:
  • php
阅读更多

sudo apt-get install libxml2(按Tab键)

将会看到如下信息:

libxml2 libxml2-dev libxml2-headers libxml2-utils

这里需要安装的是libxml2-dev软件包(该软件为Ubuntu-Server 自带的,需要使用Ubuntu-Server光盘安装),操作如下:

sudo apt-get install libxml2-dev

库文件安装完成后,重新配置PHP

编译完成后将会看到“Thank you for using PHP.”的字样,表明PHP已经配置成功了。

分享到:
评论

相关推荐

    apache2.4完整安装

    ### Apache2.4完整安装及解决configure: error: APR-util not found问题 #### 一、背景介绍 Apache HTTP Server(通常简称为Apache)是目前最流行的Web服务器软件之一,广泛应用于互联网上的各种网站和应用程序。...

    pkg-config-0.29.2.tar

    标题中的 "pkg-config-0.29.2.tar" 指的是 pkg-config 的 0.29.2 版本的源代码包,通常以 tar 形式提供,用于在目标系统上编译和安装。 pkg-config 的核心功能在于管理元数据,这些元数据包括库的路径、版本、编译...

    pkg-config-0.28.tar.gz

    pkg-config是Linux和类Unix系统中一个非常重要的工具,它主要用于管理和使用库文件,特别是C语言编译时的链接选项。这个工具可以帮助开发者在编译程序时正确地指定依赖库的位置和版本,避免手动设置复杂的链接参数。...

    pkg-config-0.29.1.tar.gz

    pkg-config是Linux和类Unix系统中一个非常重要的工具,它主要用来管理库文件的编译和链接选项。在开发C语言程序时,我们经常需要链接各种外部库,如GLib、GTK+等,pkg-config可以帮助开发者正确地指定这些库的位置和...

    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系统...

    XML-Parser-2.41.tar.gz

    XML(eXtensible Markup Language)是一种用于存储和传输数据的标记语言,它在IT行业中广泛应用于数据交换、配置文件和文档存储。XML-Parser是处理XML文档的库,为程序提供解析和生成XML的能力。在这个场景中,"XML-...

    PHP编译configure时常见错误的总结

    2. **错误:configure: error: xml2-config not found. Please check your libxml2 installation.** 解决方案:对于CentOS,执行`yum -y install libxml2 libxml2-devel`;Debian用户则运行`apt-get install libxml...

    ffmpeg-4.1.tar.gz

    ./configure --enable-gpl --enable-libass --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-...

    Linux离线安装git及所需依赖

    perl-Error-0.17020-2.el7.noarch.rpm openssl-1.0.2k-19.el7.x86_64.rpm git-1.8.3.1-23.el7_8.x86_64.rpm gettext-common-devel-0.19.8.1-3.el7.noarch.rpm expat-2.1.0-11.el7.x86_64.rpm perl-ExtUtils-...

    sql-map-config-2.dtd

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

    CentOS下编译php时的一些典型错误及解决办法.

    1. configure: error: xml2-config not found. Please check your libxml2 installation. 解决方法: yum install libxml2-devel 此错误是由于缺少 libxml2-devel 库文件所引起的。libxml2-devel 库文件是 PHP ...

    Linphone编译错误及解决方法

    3. configure: error: Could not find osip2 headers ! 错误原因:缺少osip2头文件。 解决方法:sudo apt-get install libosip2-dev 4. failed to with "configure: error: "Could not find libreadline headers ...

    ubuntu-version `GLIBC-2.25` not found.pdf

    根据提供的文件信息,文档标题“ubuntu-version `GLIBC-2.25` not found.pdf”以及描述“ubuntu_version `GLIBC_2.25` not found”,明确指出在Ubuntu系统上遇到了GLIBC 2.25版本未找到的问题。GLIBC(GNU C Library...

    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

    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/...

    gmp-4.3.2.tar.bz2+mpfr-2.4.2.tar.bz2+mpc-0.8.1.tar.gz

    标题中的"gmp-4.3.2.tar.bz2+mpfr-2.4.2.tar.bz2+mpc-0.8.1.tar.gz"表示的是三个不同的开源软件库的压缩包,它们分别是GMP(GNU Multiple Precision Arithmetic Library)、MPFR(Multiple Precision Floating-Point...

    apr-1.4.6.tar.gz、apr-iconv-1.2.1.tar.gz、apr-util-1.4.1.tar.gz

    2. 配置源代码:`./configure --prefix=/usr/local/apr`(对于每个包) 3. 编译和安装:`make && make install` 4. 将APR和APR-Util的路径添加到Apache配置中,通常是在`httpd.conf`中指定`--with-apr`和`--with-apr...

    CentOS编译安装PHP常见错误及解决办法

    2. 错误:`configure: error: xml2-config not found. Please check your libxml2 installation.` 解决方法:使用`yum -y install libxml2 libxml2-devel`安装libxml2及其开发库。 3. 错误:`configure: error: ...

    xerces-c-3.2.3.tar.gz

    Apache Xerces-C 是一个流行的开源XML解析器,主要用于C++编程环境。Xerces-C-3.2.3是该解析器的一个特定版本,它提供了对XML文档的有效验证和处理能力。在IT领域,XML(可扩展标记语言)被广泛用于数据交换、配置...

    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,需要...

Global site tag (gtag.js) - Google Analytics