Skip to content

Instantly share code, notes, and snippets.

@tonyhb
Created June 11, 2011 00:08
Show Gist options
  • Save tonyhb/1020062 to your computer and use it in GitHub Desktop.
Save tonyhb/1020062 to your computer and use it in GitHub Desktop.
PHP 5.3.6 Mac OSX Configure, with all the goodies.
# Before installing, install: libjpg, libpng, freetype, t1lib, gettext, icu, libmcrypt,
# This should be in the shell script but I'm mixing homebrew with source downloads, and I can't be assed. I'm half way through already.
sudo ./configure \
--enable-fpm \
--with-libxml-dir=/usr/lib \
--with-openssl \
--with-zlib \
--enable-exif \
--enable-ftp \
--with-bz2 \
--with-curl \
--with-gd \
--with-jpeg-dir=/usr/local/lib \
--with-png-dir=/usr/local/lib \
--enable-gd-native-ttf \
--with-freetype \
--with-freetype-dir=/usr/local/lib \
--with-t1lib \
--with-gettext \
--with-mbstring \
--with-mcrypt \
--with-xmlrpc \
--enable-intl \
--enable-soap \
--enable-sockets \
--enable-zip \
--with-mysql=/usr/local/mysql \
--with-mysql-sock=/tmp/mysql.sock \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd
# Note: the linkage with --enable-intl breaks on a mac, @see http://bugs.php.net/bug.php?id=48795
# Also, for personality issues change your makefile as read here: http://bugs.php.net/bug.php?id=49332&edit=3
# The libmcrypt package needs to be installed as described here: http://diymacserver.com/installing-php/adding-the-mcrypt-module-to-php/
# Finally, for libmysqslclient.18.dylib errors, @see http://www.blog.bridgeutopiaweb.com/post/how-to-fix-mysql-load-issues-on-mac-os-x/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment