Workarounds for PHP5 on Mac OS X
| From: | Matthew Boehm | Date: | Mon, 21 Jun 2004 09:56:53 +0000 |
| Subject: | Workarounds for PHP5 on Mac OS X | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-10675@lists.php.net to get a copy of this message | ||
Hello,
The mailing lists site said this was the list for those who want to help
with development of PHP. I hope this is the right list.
I am running Mac OS 10.3.2 (Client, not server) and tried to compile
PHP5.0.0RC3.
Here is my configure:
./configure --with-apxs \
--with-config-file-path=/etc/ \
--enable-safe-mode \
--with-openssl \
--with-zlib \
--with-cpdflib=/usr/local \
--with-jpeg-dir=/usr/local/lib \
--with-tiff-dir==/usr/local/ \
--enable-exif \
--with-gd \
--with-mysql=/usr/local/mysql \
--with-snmp \
--enable-soap \
--enable-sockets \
--with-sqlite=/usr/local
My first problem was with libxml2:
Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
configure: error: libxml2 version 2.5.10 or greater required.
libxml2 comes with Mac 10.3.2 but its version is less than 2.5.10 (It's
2.5.4 in /usr/include/libxml2/libxml)
I downloaded newest source from xmlsoft.org and it compiled perfectly with
no modifications into /usr/local/lib/
Ran configure again, same args. New problem with cpdflib. It didn't come
with 10.3.2. Downloaded 2.02r1 source. Used the Makefile.MacOSX.
Compiled fine with no modifications and installed into /usr/local/lib and
/usr/local/includes
Ran configure again..same error. After many trials I come to realize that
the cpdflib makefile created a library called "libcpdfm.a" instead of
"libcpdf.a" Note the extra 'm' in the filename. Looking through all of the
makefiles for other operating systems, this was apparently normal.
I created a symlink from libcpdfm.a to libcpdf.a and then the configure ran
perfectly. Compiled and installed fine as well with no further
modifications.
http://drmac.homeunix.net/phpinfo.php
Hope this helps in some way so others don't have the same cpdflib problem I
did.
Cheers,
Matthew
--
----------------------------------------------------------------------------
Matthew Boehm
dr_mac@mail.utexas.edu
The University of Texas at Austin, Department of Geography
"Why did the prison use Windows2K as a guard? Because it always locks up!"
<?PHP echo "PHP kicks ASP!"; ?>
----------------------------------------------------------------------------