tags:

views:

689

answers:

4

I am trying to install a copy of PHP 5 to my home directory on the school computer. The problem is that whenever I try, it complains that my copy of libxml2 is too outdated to work.

Is there any way I can install this without upgrading libxml2, since I don't have permission to upgrade.

Any suggestions?

+2  A: 

There is some discussion of this issue in the discussion of the PHP configuration documentation. You can disable the XML features to avoid the problems, but you'll loose lots of useful features: --disable-libxml --disable-dom --disable-simplexml --disable-xml --disable-xmlreader --disable-xmlwriter --without-pear

Most comments strongly suggest this is a bad idea. I'd suggest trying to figure out how to get the xmllib upgraded.

acrosman
+2  A: 

If you don't need xml support, just disable it as described on this page:

--disable-libxml --disable-dom --disable-simplexml --disable-xml --disable-xmlreader --disable-xmlwriter --without-pear

On the other hand, you can try to compiling a newer version of libxml without installing it.

soulmerge
+6  A: 

Alternatively, you can make an install of libxml in your home directory and pass configure the location where you've installed it, i.e.

--with-libxml-dir=<your local install>

When installing libxml, you just have to use the --prefix= option with configure to indicate that you don't want to do a system install.

Dana the Sane
This is probably the best suggestion posted so far.
acrosman
The problem will then be making sure that it loads the private libxml2 instead of the system library when starting up PHP.
Ignacio Vazquez-Abrams
A: 

what about installing xmltools ?

tom