Skip to content

Instantly share code, notes, and snippets.

@scottalan
Created August 15, 2013 02:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottalan/6237724 to your computer and use it in GitHub Desktop.
Save scottalan/6237724 to your computer and use it in GitHub Desktop.
Install pcre, autoconf, and APC on Mountain Lion.
Taken from: https://gist.github.com/ryanjbonnell/4074061
Modified Versions.
# Compile PCRE - Perl Compatible Regular Expressions
cd /usr/local/src
curl -O ftp://ftp.csx.cam.ac.uk//pub/software/programming/pcre/pcre-8.33.tar.gz
tar -xvzf pcre-8.33.tar.gz
cd pcre-8.33
./configure
make
sudo make install
# Compile Autoconf
cd /usr/local/src
curl -O http://gnu.mirrors.hoobly.com/gnu/autoconf/autoconf-2.69.tar.gz
tar xzf autoconf-2.69.tar.gz
cd autoconf-2.69
./configure --prefix=/usr/local
make
sudo make install
# Compile PHP APC
cd /usr/local/src
curl -O http://pecl.php.net/get/APC-3.1.9.tgz
tar xzf APC-3.1.9.tgz
cd APC-3.1.9
/usr/bin/phpize
./configure --with-php-config=/usr/bin/php-config
make && sudo cp modules/*.so /usr/lib/php/extensions/no-debug-non-zts-20090626
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment