Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 2 down vote accepted

It was necessary to recompile the PHP with new version of libxml. More there: http://serverfault.com/a/305682/73850

share|improve this answer
    
would be great if you post the solution here – julmot Jan 17 '15 at 18:03
    
The solution is linked in the answer. – Radek Simko Jan 18 '15 at 16:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .