Skip to content

Instantly share code, notes, and snippets.

@matsubo
Forked from tanakahisateru/gist:1344162
Created March 3, 2012 08:07
Show Gist options
  • Save matsubo/1964936 to your computer and use it in GitHub Desktop.
Save matsubo/1964936 to your computer and use it in GitHub Desktop.
PHP5.4 configure with MacPorts besides existing PHP
./configure \
--prefix=/opt/local/php/5.4 \
--bindir=/opt/local/bin \
--with-config-file-path=/opt/local/php/5.4/etc \
--with-config-file-scan-dir=/opt/local/php/5.4/var/db \
--mandir=/opt/local/php/5.4/share/man \
--infodir=/opt/local/php/5.4/share/info \
--program-suffix=-5.4 \
--with-apxs2=/opt/local/apache2/bin/apxs \
--enable-pdo \
--with-pdo-sqlite \
--with-pdo-mysql \
--with-mysql \
--with-mysqli=/opt/local/bin/mysql_config5 \
--with-mysql-sock=/opt/local/var/run/mysql5/mysqld.sock \
--with-pear \
--enable-mbstring \
--with-curl \
--enable-ftp \
--enable-soap \
--enable-sockets \
--with-gd \
--with-jpeg-dir=/opt/local \
--with-png-dir=/opt/local \
--with-xpm-dir=/opt/local \
--with-freetype-dir=/opt/local \
--with-openssl \
--with-libxml-dir=/opt/local \
--with-xsl \
--with-mcrypt=/opt/local \
--with-zlib=/opt/local \
--with-bz2=/opt/local \
--with-mhash=/opt/local \
--with-pcre-regex=/opt/local \
--with-readline=/opt/local \
--with-iconv=/opt/local \
--with-gettext=/opt/local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment