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 tried to install PHP 4 with darwinports yesterday. And it gave me the same error. Configuring the install seems not to be the problem, but the install make. It has definitely something to do with the absence of some developer packages from Apache on my machine.

I actually found a rather brief description on how to recompile PHP with the same compile options Apple uses.

http://maxo.captainnet.net/installs/tiger/php/index_4.4.2.html

no success... I don't get it.

I give upp. I think I have to stick to the old PDFlib bundled with the entropy distribution. Somewhere on entropy.ch Marc says that there will be a distribution with PHP 5 with PDFlib as DSO. Thats what I need.

If someone can share any binary package with PHP5 / PDFlib 6.0.3 - I would appreciate that. Or maybe a step-by-step description on how to recompile PHP on Mac OS X 10.4.4 server....?

cheers.

/frank


5 apr 2006 kl. 16.07 skrev Venkat Venkataraju:

I'm a bit OT though...

I have php5, apache, mysql installed thru darwinports. if you are not the LFS kind of person, it helps a lot to install darwinports and intall all your packages thru it. Fink is another alternative, but i prefer darwinports.

Cheers
/V

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


--
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