Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
    
Maybe the solution would be to find some repository with newer libxml version instead of compiling it, but I've found nothing. :/ –  Radek Simko Jul 3 '12 at 23:04

1 Answer 1

up vote 1 down vote accepted

It was necessary to recompile the PHP with new version of libxml. More there: http://serverfault.com/questions/266927/install-libxml2-2-7-x-on-centos-5-x

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.