Skip to content

Instantly share code, notes, and snippets.

@maimai-swap
Created April 4, 2012 12:14
Show Gist options
  • Save maimai-swap/2300731 to your computer and use it in GitHub Desktop.
Save maimai-swap/2300731 to your computer and use it in GitHub Desktop.
php-5.3.10 configure on Mac OSX
./configure \
--enable-mod-charset \
--with-apxs2=/usr/local/apache2/bin/apxs \
--disable-cgi \
--with-libexpat-dir=/usr \
--with-libxml-dir=/usr \
--with-openssl \
--with-openssl-dir=$(brew --prefix openssl) \
--with-kerberos \
--with-zlib \
--with-zlib-dir=/usr \
--enable-bcmath \
--with-bz2 \
--enable-calendar \
--with-curl=/usr \
--enable-exif \
--enable-ftp \
--with-gd=$(brew --prefix gd) \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr/X11 \
--with-zlib-dir=/usr \
--with-freetype-dir=/usr/local \
--enable-gd-native-ttf \
--enable-gd-jis-conv \
--with-gettext=$(brew --prefix gettext) \
--with-gmp \
--with-mhash \
--with-kerberos \
--with-ldap \
--enable-mbstring \
--with-mcrypt \
--with-mysql \
--with-mysql-sock \
--with-mysqli \
--with-pdo-mysql \
--without-pdo-sqlite \
--with-readline=$(brew --prefix readline) \
--enable-soap \
--with-tidy \
--enable-zip \
--with-pear
@maimai-swap
Copy link
Author

homebrewで色々ライブラリ入れてるのが前提。

brew install gd
brew install gettext
brew install readline
brew install openssl

mysql apacheは事前にインスコ済み。
apacheはhomebrewにないので、ソースでhttpd-2.2.22をいれた。

あとXcodeの4.3もインスコ前提

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment