The entropy.ch site has a brief mention of building php 4.2.x way down 
at the bottom of the page:

http://www.entropy.ch/software/macosx/php/#build

As far as what I did, I've gotten in the habit of writing shell scripts 
with the configuration command and comments listing all the steps I 
took. So here is what I have for php 4.1.2. I originally had more steps 
in here to deal with compiling in openbase support, which required the 
buildconf step and automake.

Caveat lector: This worked for me, with php 4.1.2 and osx 10.1.3. I'm 
not an expert at this and can't guarantee that it won't just waste your 
time...

<script>

#! /bin/tcsh
#
# config.args_I_used
#
# pre 1. installed automake-1.4 from gnu (configure, make, make check, 
make install)
#        (I wouldn't think you'd need this unless you need to run the 
buildconf step)
# pre 2. fetch libtool-1.3.5 patch from fink
#        (http://fink.sourceforge.net/doc/porting/libtool.php, also a 
good, informative read)
# pre 3. installed libtool-1.3.5 from gnu (apply patch, configure, make, 
make check, make install)
#
#  1. unpack both php 4.0.6 and 4.1.2 source into separate directories
#    a. copy this config script into both source directories
#
#  2. cd 4.0.6
#    a. ./buildconf (you probably don't need this step)
#    b. run this configure script (tcsh config.php.4.1.2-osx-generic)
#
#  3. cd 4.1.2
#    a. copy configure, ltconfig, ltmain.sh from 4.0.6 source directory
#    b. run this configure script
#    c. copy libtool from 4.0.6
#
#  4. in libtool verify existence of '-flat_namespace' after the $CC in 
the 'archive_cmds=' line
#  5. make, make install

setenv LDFLAGS '-flat_namespace'

./configure \
         --with-xml \
         --with-zlib \
         --with-apxs=/usr/sbin/apxs \
         --enable-trans-sid \
         --enable-shared \
         --with-mysql=/usr/local \
         --with-jpeg-dir=/usr/local \
         --with-zlib-dir=/usr/local \
         --with-tiff-dir=/usr/local \
         --with-png-dir=/usr/local \
         --with-ldap=/usr/local

</script>

-Steve


On Tuesday, July 23, 2002, at 07:36  AM, Frank Bitterlich wrote:

> Steve,
>
> I first tried the instruction in php.net's "INSTALL" document, and then
> the one from the book "Professional PHP4", which is specific to OS X.
>
> I've looked at the hints on developer.apple.com, but they're somewhat
> outdated (for PHP 4.0.6), they tell me to modify a "ltconfig" file, but
> I have no such beast. It says I need to enter something like this:
> archive_cmds='$CC -force_flat_namespace ...
> Sounds like it has something to do with the namespace problem you
> mentioned... but I can't find such a file.
>
> AFAICS the entropy.ch site only offers a pre-built PHP module, but I
> need FrontBase support, so (I guess) I have to build my own...
>
> A call to ./buildconf keeps telling me I have no "automake"; might that
> be the problem? I know where I can D/L the source for it, but I have no
> clue how to compile _that_ again... sigh...
>
> I would be really thankful for your recipe, maybe it gets me going.
>
> TIA,
>    Frank+++


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

Reply via email to