Skip to content

Instantly share code, notes, and snippets.

@maimai-swap
Last active October 2, 2015 18:58
Show Gist options
  • Save maimai-swap/2300427 to your computer and use it in GitHub Desktop.
Save maimai-swap/2300427 to your computer and use it in GitHub Desktop.
php-5.4.3 configure on Mac OSX
./configure \
--enable-mod-charset \
--with-apxs2 \
--without-iconv \
--enable-fpm \
--enable-mbstring \
--enable-zip \
--enable-soap \
--with-mcrypt=$(brew --prefix libmcrypt) \
--with-mysql \
--with-mysql-sock \
--with-mysqli \
--with-pdo-mysql \
--without-pdo-sqlite \
--with-libxml-dir=$(brew --prefix libxml2) \
--with-openssl=$(brew --prefix openssl) \
--with-zlib \
--with-bz2 \
--with-curl \
--with-gd \
--with-jpeg-dir=$(brew --prefix libjpeg) \
--with-png-dir=$(brew --prefix libpng) \
--with-freetype-dir=$(brew --prefix freetype) \
--with-xpm-dir=$(brew --prefix libxmp) \
--with-vpx-dir=$(brew --prefix libvpx) \
--enable-gd-native-ttf \
--enable-gd-jis-conv \
--with-gettext=$(brew --prefix gettext) \
--with-gmp \
--with-mhash \
--with-kerberos \
--with-ldap \
--with-readline \
--with-libedit=$(brew --prefix readline) \
--with-readline=$(brew --prefix readline) \
--with-tidy \
--with-pear
@maimai-swap
Copy link
Author

まだConfigureが通っただけ。imapは外れてますがほとんどのオプションを入れられた気がしてる。

makeで
gdが通らない。
https://bugs.php.net/bug.php?id=60108

dev版でも通らず。
http://snaps.php.net/php5.4-201204041130.tar.gz

@maimai-swap
Copy link
Author

makeでgdが通るようになった。

この二行が必要だったみたい。

--with-xpm-dir=/usr/X11R6
--with-vpx-dir=$(brew --prefix libvpx) \

@maimai-swap
Copy link
Author

iconv extensionがインストール出来ない。
https://bugs.php.net/bug.php?id=60268

日本語だとmbstringしかほとんど使わないので、
--without-iconv
入れることにした。

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