How to upgrade libxml on CentOS

Posted by Radek Simko on Super User See other posts from Super User or by Radek Simko
Published on 2012-07-03T22:51:07Z Indexed on 2012/07/06 9:18 UTC
Read the original article Hit count: 379

Filed under:
|
|
|

I have a following version of CentOS:

$ cat /etc/issue
CentOS release 5.5 (Final)
Kernel \r on an \m

and following version of libxml:

$ php -i | grep libxml
libxml Version => 2.6.26
libxml
libxml2 Version => 2.6.26
libxslt compiled against libxml Version => 2.6.26

and need to have newer version of libxml (primarly for usage in PHP, but obviously, it doesn't matter).

If I even install the newer version of libxml somehow:

wget ftp://xmlsoft.org/libxml2/libxml2-2.7.2.tar.gz
tar -xvf libxml2-2.7.2.tar.gz
cd libxml2-2.7.2
./configure
make
sudo make install

then I am unable to get it to work in PHP - there is still old version:

libxml Version => 2.6.26
libxml
libxml2 Version => 2.6.26
libxslt compiled against libxml Version => 2.6.26

What else do I need to do to make the new version to work with PHP?

© Super User or respective owner

Related posts about php

Related posts about centos