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]

 



I think you are missing httpd-devel package. At least on Linux is called 
something like this.
Also look for /usr/sbin/apxs(2)
If you are with apache 2.x you should use --with-apxs2[=/usr/sbin/apxs2]

Good luck

On Wednesday April 5 2006 12:54, Frank Arensmeier wrote:
> 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


[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