How to upgrade libxml2 to version 2.9.9 in PHP-7.3.9 in CentOS?

社会主义新天地 提交于 2019-12-11 15:43:27

问题


I have a server on CentOS 7 which I have installed PHP version 7.3.9 (# yum-y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm). In it (in PHP) have an old version of libxml2 (2.9.1). How do I update this library to version 2.9.9?

I do so:

# yum install python-devel

# yum install gcc-c++

# cd /usr/local/

# yum install libxml2-devel

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

# tar xvf libxml2-2.9.9.tar.gz

# cd libxml2-2.9.9/

# ./configure --prefix=/usr --libdir=/usr/lib64

# make

# make install

But the libxml2 version is not updated (2.9.1)...

What am I doing wrong?

Thanks!


回答1:


If you rebuild such critical library, you have to rebuild everything which use it (thus, including php)



来源:https://stackoverflow.com/questions/57772929/how-to-upgrade-libxml2-to-version-2-9-9-in-php-7-3-9-in-centos

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!