Home » Computers » Mac OS 10.6.2 + PHP 5.3.1

Mac OS 10.6.2 + PHP 5.3.1

posted in: Computers 0

There is a workaround for anyone trying to compile PHP 5.3.x on Mac OS 10.6.x.

Using the recently released PHP 5.3.1 source on Mac OS 10.6.2, I untar/ungzipped, and ran ./configure [options]. Afterwards, I made the following changes as posted on the php.net bug tracker:

1) Add "-lresolv" to MH_BUNDLE_FLAGS, EXTRA_LDFLAGS and EXTRA_LDFLAGS_PROGRAM in "Makefile" 2) Change "ext/iconv/iconv.c" 186c186 < #define iconv libiconv --- > #define iconv iconv

Finish it off with the make (and sudo make install) and it should compile just fine.

Follow Jonathan Ocab:
Owner and administrator of ocabj.net

Comment on this post

This site uses Akismet to reduce spam. Learn how your comment data is processed.