Skip to content

Instantly share code, notes, and snippets.

@andrewle
Created January 30, 2010 02:19
Show Gist options
  • Save andrewle/290353 to your computer and use it in GitHub Desktop.
Save andrewle/290353 to your computer and use it in GitHub Desktop.
# For compiling PHP 5.2.11 on Mac OS X Leopard 10.5.8
#
# Configure PHP
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--disable-dependency-tracking \
--with-apxs2=/usr/sbin/apxs \
--with-ldap=/usr \
--with-kerberos=/usr \
--enable-cli \
--with-zlib-dir=/usr \
--enable-trans-sid \
--with-xml \
--enable-exif \
--with-gd \
--enable-gd-native-ttf \
--with-ttf \
--with-jpeg-dir=/sw \
--with-png-dir=/sw \
--enable-mbstring \
--enable-mbregex \
--enable-dbx \
--enable-sockets \
--with-iodbc=/usr \
--with-curl=/usr \
--with-config-file-path=/etc \
--sysconfdir=/private/etc \
--with-mysql-sock=/var/mysql \
--with-mysql=/usr/local/mysql \
--with-openssl \
--with-xmlrpc \
--with-xsl=/usr \
--with-mcrypt=/sw \
--with-iconv=/sw
# Then you need to recompile apache, apparently
./configure --enable-layout=Darwin --enable-mods-shared=all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment