Skip to content

Instantly share code, notes, and snippets.

@tanakahisateru
Created November 7, 2011 04:18
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save tanakahisateru/1344162 to your computer and use it in GitHub Desktop.
Save tanakahisateru/1344162 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
@matsubo
Copy link

matsubo commented Mar 3, 2012

I got following error on Mac OS X Server(Snow Leopard) with the newest port packages.

configure: error: vpx_codec.h not found.

@tanakahisateru
Copy link
Author

Sorry, not to follow package dependencies because of plain shell command.
You can install libvpx via macports, or Instead, remove --with-vpx-dir option if you would never use it.

Well, though video codec not so useful. I forgot why I include that...

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