Created
January 11, 2012 14:52
-
-
Save zymsys/1595001 to your computer and use it in GitHub Desktop.
How I build PHP 5.4 on OSX from source
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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