Tips for php 4.0.6, pdflib 4.0.1, and Mac OS X 10.1.1

From: Date: Wed, 30 Jan 2002 23:46:13 +0000
Subject: Tips for php 4.0.6, pdflib 4.0.1, and Mac OS X 10.1.1
Groups: php.install 
Request: Send a blank email to php-install+get-5848@lists.php.net to get a copy of this message
Hello. I had a brutal time figuring out how to get these three to work together, so I thought I should post the solution that worked for me. pdflib: 1. unpack the tarball 2. setenv LDFLAGS '-flat_namespace' # I don't know if this was entirely necessary 3. ./configure \
        --enable-shared \
        --enable-static \
        --with-java=no \
        --with-perl=/usr/bin/perl \
        --enable-php
4. edit libtool, find the line beginning with archive_cmds='$CC ...', and add ' -flat_namespace ' after the 'CC' 5. make 6. sudo make install 7. delete (or move somewhere else) the file libpdf.dylib from /usr/local/lib and the symlink in /usr/lib, this is to force php to link against pdflib statically. php 1. unpack the tarball 2. setenv LDFLAGS '-flat_namespace' 3. ./configure \
        --with-xml \
        --with-zlib \
        --with-apxs=/usr/sbin/apxs \
        --enable-trans-sid \
        --with-pdflib=/usr/local \
        --enable-shared \
        --with-mysql=/usr/local \
        --with-jpeg-dir=/usr/local \
        --with-zlib-dir=/usr \
        --with-tiff-dir=/usr/local \
        --with-png-dir=/usr/local
4. edit libtool, add '-flat_namespace' to the archive_cmds line as above for pdflib 5. make 6. make install #### Of course configurations will vary, but the key elements for me were adding the -flat_namespace flag to libtool, and deleting the libpdf.dylib library before configuring php. Hope someone finds this helpful. -Steve

« previous php.install (#5848) next »