How do I install DOM XML Support

albatroz

Verified User
Joined
Mar 13, 2004
Messages
365
Location
Peru
Hi!
I am trying to install the last version of Horde (3.0 Beta), but requires to have
installed DOM/XML support.

I don't have it installed, so I wonder if someone could help me with it, as simply adding --with dom
to the configure.php file is not working for me.

What else do I need?
Thanks in advance
 
Maybe a little late reaction :p


But i have the same problem, i don't know how to install domxml
Code:
--with-dom=/usr/lib \
--with-exslt=/usr/lib \
--with-xslt=/usr/lib
works fine, but when I trie to add domxml xslt like this:
Code:
--with-dom=/usr/lib \
--with-dom-exslt=/usr/lib \
--with-dom-xslt=/usr/lib
I get the following error:
Code:
checking for libxml version... >= 2.4.14
checking for DOM XSLT support... /usr/lib
checking for DOM EXSLT support... /usr/lib
not found
configure: error: Please reinstall the libxslt >= 1.0.3 distribution
I've got version 1.1.11 of libxslt...
Does anyone know how to install domxml the right way?

--------
Edit:
I found out how to install it:
I had to install the libxslt-devel
then I added these the following lines to the customapache:
Code:
--with-dom=/usr/lib \
--with-dom-exslt=/usr/lib \
--with-dom-xslt=/usr/lib

Then build php and it worked
 
Last edited:
Installing DOMXML for PHP4 on Debian

How to install php4-domxml and php4-xslt under debian sarge
as an extension module...

apt-get update
apt-get install php4-xslt

This should install without any problems (if not install all needed packages as explained for hp4-domxml)

package is installed in cd /usr/lib/php4/20020429 (last dir may be different)

chdir /usr/lib/php4/20020429

Now we have to install php4-domxml
http://packages.debian.org/stable/web/php4-domxml

check if all packages have right version
dpkg -l libxslt1.1
dpkg -l libxml2
...

Download packages:
wget http://ftp.nl.debian.org/debian/pool/main/libx/libxml2/libxml2_2.6.16-7_i386.deb
wget http://ftp.it.debian.org/debian/pool/main/libx/libxslt/libxslt1.1_1.1.12-8_i386.deb
wget http://security.debian.org/debian-security/pool/updates/main/p/php4/php4-domxml_4.3.10-16_i386.deb

Installing packages:
dpkg -i libxml2_2.6.16-7_i386.deb
dpkg -i libxslt1.1_1.1.12-8_i386.deb
dpkg -i php4-domxml_4.3.10-16_i386.deb

(you might need to install some other packages)

after installation delete all .deb files (or not? :)

Now you have domxml.so and xslt.so files in /usr/lib/php4/20020429

Ok, now you just have to edit php.ini

vi /usr/local/lib/php.ini

search for: extension_dir
and change to: extension_dir = "/usr/lib/php4/20020429/"

at the end of php.ini add those 2 lines:
extension=domxml.so
extension=xslt.so

save php.ini and restart httpd with
/etc/init.d/httpd restart
 
I would like to add I had to:
./build clean

then

./build php

and

service httpd restart
 
I've followed this guide and looked online, and I am recieving the following error when attempting to compile php 4.4.2:

min/customapache/php-4.4.4/libs'
chmod 755 /usr/lib/apache/libphp4.so
[activating module `php4' in /etc/httpd/conf/httpd.conf]
Installing PHP CLI binary: /usr/local/bin/
Installing PHP CLI man page: /usr/local/man/man1/
Installing PEAR environment: /usr/local/lib/php/
[PEAR] Archive_Tar - already installed: 1.3.1
[PEAR] Console_Getopt - already installed: 1.2
[PEAR] HTML_Template_IT- already installed: 1.1
[PEAR] Net_UserAgent_Detect- already installed: 2.0.1
[PEAR] PEAR - already installed: 1.4.9
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path
*** glibc detected *** corrupted double-linked list: 0x0953a080 ***
make[1]: *** [install-pear-packages] Aborted
make: *** [install-pear] Error 2

I have installed libsml2 and libxslt from both rpm sources and a direct source compile. Any help would be appreciated.
 
If you are getting an error like this on CentOS/RedHat/etc.

checking for DOM support... yes
not found
configure: error: Please reinstall the libxml >= 2.4.14 distribution

Run the following commands:

up2date libxml2-devel
up2date libxslt-devel
up2date libgcrypt-devel

and try ./build php again.

And if you get this error:

/usr/bin/ld: cannot find -lltdl
*** Error code 1

# cd /usr/local/directadmin/customapache/libmcrypt-2.5.7/libltdl
# ./configure --enable-ltdl-install
# make
# make install
# make clean

As documented here:
http://www.directadmin.com/forum/showthread.php?postid=51032
 
Last edited:
icer5k: how did you solve this problem in the end? I get the same error...

thanks!

Harro
 
is there a how to for fc3 ??? or a da DOMXML plugin?

i dunno how to install it without breaking da i am running php 4.4.6

thanks
 
heya - there is a good tutorial on the forums here. If you search for domxml I'm sure you'll find it (I didn't bookmark it, sorry).

One thing I bumped into is a "double-linking error", which made it impossible to install. The error occurred with one of the PEAR modules. So my php did not compile until I removed the references to DomXML again (i.e. I can't get it to work and left it for now).

I use the latest php from the ./build script (php 4.4.6) and followed the instructions. I ended up using jlasman's instructions for updating some of the PEAR libraries through yum, instead of using pear itself, because that gave me errors....

Others have had no problems, so I hope you are one of them :) Good luck!
 
Back
Top