如何在CentOS 7中将libxml2升级到2.9.9版?

如何在CentOS 7中将libxml2升级到2.9.9版?,centos,Centos,我的步骤: 下载: # 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-s

我的步骤:

下载:

# 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更新到libxml2-2.9.9
-不工作

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

解决方案:
#yum安装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新手。我已经安装了PHP7.3.9 remi。你能描述一下升级过程吗,一步一步(按命令)?我真的很感激!看起来是个新问题。»»升级过程««:是关于
php
?或者?我们正在讨论将libxml2升级到2.9.9版。在CentOS 7和PHP7.3.9上。一、 让我感到羞耻的是,我不知道该怎么做。。。谢谢sirlibxml2-2.9.9:请参阅编辑后的答案。。。。php-7.3.9-1.el7.remi:这是一个新主题→ 请开始一个关于php的新线程。我创建了一个新问题: