S
S
Shimpanze2019-08-31 07:34:01
linux
Shimpanze, 2019-08-31 07:34:01

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

But phpinfo()stubbornly shows the old version.
Tell me, what else is missing for the update? How to replace the old version?
I would be very grateful. Thank you!

Answer the question

In order to leave comments, you need to log in

4 answer(s)
P
planc, 2019-08-31
@Shimpanze

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

R
Ruslan Fedoseev, 2019-08-31
@martin74ua

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

S
SOTVM, 2019-08-31
@sotvm

depends on the distribution,
it can pull 100500 million extra / unnecessary packages)))
but you can update, even reboot the system

A
Alexey Dmitriev, 2019-09-01
@SignFinder

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 question

Ask a Question

731 491 924 answers to any question