Re: Error when compiling PHP from source on Mac OS X 10.4 server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Maybe try to configure with the direct path to the apache source files...

--with-apxs=/path/to/apache/bin/apxs

Frank Arensmeier said:
> 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
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux