note 19202 deleted from ref.domxml by sniper
| From: | sniper@php.net | Date: | Mon, 03 Nov 2003 15:47:56 +0000 |
| Subject: | note 19202 deleted from ref.domxml by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-59714@lists.php.net to get a copy of this message | ||
Note Submitter: jon.sprague(at)itgco.com
----
This is what I did to get DOM to work with PHP on a Linux box.
1.
I installed zlib-1.1.3 from source (http://www.gzip.org/zlib/).
Don't forget the "./" in front of configure (the README leaves this out).
I did a ldconfig -v (and I checked to make sure libz is there).
2.
I installed libxml2-2.4.9 from source (ftp://ftp.gnome.org/pub/GNOME/stable/sources/libxml/).
I used the "--with-zlib" extention.
I looked at the output of configure to make sure it found zlib (looked something like this:
"checking for zlib.h... yes").
I did a ldconfig -v (and I checked to make sure libxml is there).
3.
Then I installed PHP (ver. 4.1.1).
I used the "--with-dom --with-zlib" extentions.
I then made sure PHP recognized them by reading the output of configure:
(checking for DOM support... yes),
(checking if the location of ZLIB install directory is defined... no) I ignored this,
(checking whether to include ZLIB support... yes).
As always reading the INSTALL and/or README files help tremendously.
I hope this helps someone!