I had problems trying to build PHP with cygwin. Here's what I've done so far. I downloaded PHP 5.0.2 source, the bindlib_w32 source, and the win32build source to my /work directory and opened up my cygwin shell. First I tried:

cd /work/php-5.0.2
./configure

This fails horribly when it gets to the extensions section. Specifically it failed when testing for libxml. There were a *lot* of error messages in my config.log (so I won't post it here) so I just tried to build without extensions next.

./configure --disable-all
make
make install
make test

This mostly worked. Configure finished and cached some of my config info. Cygwin created the makefile and I think it was able to build the CGI version of PHP, but since I had no PCRE extension I couldn't test the build. So we try again:

./configure --disable-libxml

This failed. It asked me to run configure --with-iconv, but I wasn't sure what prefix to use? So instead I tried:

./configure --disable-libxml --without-iconv
make
make install
make test

Success! I have a CGI build of PHP in /usr/local/bin even though it did fail several tests. However, I have no XML support and I have no PEAR (requires XML support to install). So my questions to you all are:

- How do I enable libxml?
- What prefix / directory should I be using with --with-iconv ? Heck, what is iconv even supposed to be?

Reply via email to