Answer the question
In order to leave comments, you need to log in
What command is missing to replace libxml2 with a new version?
Hello!
It is necessary to upgrade libxml2 from version 2.9.1 to version 2.9.9 on the server.
My steps:
# cd /usr/src
# 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 --prefix=/usr --disable-static --with-history --with-python=/usr/bin/python3 && make
phpinfo()
stubbornly shows the old version. Answer the question
In order to leave comments, you need to log in
never install any of the sources (at least until you figured it out normally with linux, dockers, lxc and other garbage)
in debian for new software there are backports
in centos - epel:
https://linuxhint.com/epel_centos7/
for new things from the world of php in centos this turnip:
https://rpms.remirepo.net/
https://www.cyberciti.biz/faq/how-to-install-php-7...
make install
and what, in packages of your distribution kit there is no necessary version? In general, I personally collect from sorts in the worst case. I've needed this three times in the last 10 years
depends on the distribution,
it can pull 100500 million extra / unnecessary packages)))
but you can update, even reboot the system
Question to the author of the question - do you like to produce questions?
You already asked this question yesterday - How can I update libxml2 on a centos 7 server?
And the answer to your question - IMHO it is more correct to rebuild the package from src.rpm.
To do this, you need to install the packages necessary for rebuilding with the yum groupinstall "Development Tools" command, and then rebuild src.rpm into a binary one using the rpmrebuild command. And after assembling it, just install it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question