Skip to content

Instantly share code, notes, and snippets.

@zymsys
Created January 11, 2012 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zymsys/1595001 to your computer and use it in GitHub Desktop.
Save zymsys/1595001 to your computer and use it in GitHub Desktop.
How I build PHP 5.4 on OSX from source
I had to run find to figure out where bz2.so was:
$ sudo find / -name bz2.so
...
Should turn something up - I hope. Change the eclipse path below to whatever you find. If you can't find anything you might have to install Zend Studio or figure out another source. Then from the PHP source folder:
$ ./configure --enable-mysqlnd --with-gd --enable-mbstring --with-bz2=/Applications/eclipse/plugins/org.zend.php.debug.debugger.macosx_5.3.7.v20091124/resources/php5/ext/ --with-zlib --with-curl --with-curlwrappers
$ make
$ sudo make install
This will put a PHP binary in /usr/local/bin/php and will not overwrite /usr/bin/php which comes with OSX.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment