Hello.
I try to compile PHP 4.4.2 from source on Mac OS X 10.4 server but I
am getting error messages. The the install configuration runs just
fine using the following options:
./configure
--prefix=/usr/local/php
--with-config-file-path=/usr/local/php/lib
--with-apxs --with-iconv=/usr/local/php
--with-zlib=/usr
--with-mysql
--enable-cgi
--with-gd
--with-png-dir=/usr/local/php
--with-freetype-dir=/usr/local/php
--with-t1lib=/usr/local/php
--with-jpeg-dir=/sw
--with-tiff-dir=/usr/local/php
--with-curl=/usr/local/php
--with-mcrypt=/usr/local/php
--with-mhash=/usr/local/php
--with-expat-dir=/usr/local/php
--with-gettext=/usr/local/php
--with-dom=/usr/local/php
--with-dom-xslt=/usr/local/php
--with-dom-exslt=/usr/local/php
--with-xslt-sablot=/usr/local/php
--enable-xslt
--with-ldap
--with-xmlrpc
--with-xml
--with-iodbc
--enable-sockets
--enable-trans-sid
--enable-exif
--enable-wddx
--enable-ftp
--enable-mbstring
--with-mime-magic
I might also add that the current PHP installed on the server is the
one from entropy.ch. This install would be absolutely perfect for my
needs, except the fact that PDFlib is compiled directly into PHP. I
do not want pdfLIB compiled into PHP, because I like to update PDFlib
to 6.0.3.
The make command fires always an error saying that "In file included
from /path/to/php/source/sapi/apache/sapi_apache.c:24:" followed by
ten or more lines saying "... error: httpd.h: No such file or
directory" and last line: "make: [sapi/apache/sapi_apache.lo) Error 1".
I also tried a very basic install of PHP:
./configure --with-apxs
but the error remains. Looking into the file sapi_apache.lo I saw
that it wants some source files from the Apache distribution, right?
I tried to just copy those files into the same directory as
sapi_apache.lo is in but then I get other error messages.
I am not that familiar with compiling from source so please be
patient with me.
Google was not my friend...
What can I do?
Regards,
frank
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php