Skip to content

Instantly share code, notes, and snippets.

@bendo01
Forked from tanakahisateru/gist:1344162
Created April 14, 2012 14:23
Show Gist options
  • Save bendo01/2384730 to your computer and use it in GitHub Desktop.
Save bendo01/2384730 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-pdo-pgsql \
--with-mysql \
--with-mysqli=/opt/local/bin/mysql_config5 \
--with-mysql-sock=/opt/local/var/run/mysql5/mysqld.sock \
--with-pgsql \
--with-pear \
--enable-mbstring \
--with-curl \
--enable-ftp \
--enable-soap \
--enable-sockets \
--with-gd \
--with-jpeg-dir=/opt/local \
--with-vpx-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