【问题标题】:How do I upgrade libxml2 to version 2.9.9 in CentOS 7?如何在 CentOS 7 中将 libxml2 升级到版本 2.9.9?
【发布时间】:2019-09-03 19:25:07
【问题描述】:

我的步骤:

下载:

# wget ftp://xmlsoft.org/libxml2/libxml2-2.9.9.tar.gz

解压存档:

# tar -zxvf libxml2-2.9.9.tar.gz

进入目录:

# cd libxml2-2.9.9/

做一些奇怪的事情:

# ./configure && make && make install

此命令返回错误:

checking whether to enable maintainer-specific portions of Makefiles... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/root/libxml2-2.9.9':
configure: error: no acceptable C compiler found in $PATH

命令:php -i | grep libxml 产生以下结果:

PHP Warning:  Unknown: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in Unknown on line 0
libxml
libxml2 Version => 2.9.1
OLDPWD => /root/libxml2-2.9.9
_SERVER["OLDPWD"] => /root/libxml2-2.9.9

命令:yum update-to libxml2-2.9.9 - 不工作。

【问题讨论】:

    标签: centos


    【解决方案1】:

    配置:错误:在 $PATH 中找不到可接受的 C 编译器

    解决方案:# yum install gcc-c++ ...即同时安装 gcc 和 g++ 也将安装所有使 gcc 完全工作的包。

    注意:./configure 单独安装到 /usr/local/,并且不会更新当前版本 2.9.1 。要求是

    tar xvf libxml2-2.9.9.tar.gz
    cd libxml2-2.9.9/
    ./configure --prefix=/usr --libdir=/usr/lib64
    make
    # make install
    

    【讨论】:

    • 对不起先生。我是一个初级linux用户。我已经安装了 PHP 7.3.9 remi。您能否描述一下升级过程,逐步(通过命令)?我真的很感激!
    • 看起来是个新问题。 »»升级过程««:是关于php吗?还是?
    • 我们正在讨论将 libxml2 升级到 2.9.9 版本。在 CentOS 7 和 PHP 7.3.9 上。我很遗憾,不明白该怎么做...谢谢先生
    • libxml2-2.9.9 :查看编辑后的答案。 .... php-7.3.9-1.el7.remi mirrors.ukfast.co.uk/sites/remi/enterprise/7Server/php73/x86_64/… :这是一个新话题→请开始一个关于php的新线程。
    • 我创建了一个新问题:stackoverflow.com/questions/57772929/…
    猜你喜欢
    • 2020-01-06
    • 2018-03-26
    • 1970-01-01
    • 1970-01-01
    • 2016-06-07
    • 2019-11-24
    • 2016-09-13
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多