Skip to content

Instantly share code, notes, and snippets.

Forked from ryanjbonnell/gist:4074061
Last active December 14, 2016 02:29
  • Star 6 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Install apc on mac os X. Works in Mavericks!
echo '===> install in OSX Mavericks'
mkdir -p ~/tmp/apc-deps
# Compile PCRE - Perl Compatible Regular Expressions
cd ~/tmp/apc-deps
curl -O
tar -xvzf pcre-8.33.tar.gz
cd pcre-8.33
sudo make install
HAVE_AUTOCONF=$(which autoconf)
if [[ $HAVE_AUTOCONF == "" ]] ; then
echo '===> no autoconf found'
echo '===> trying to install it...'
cd ~/tmp/apc-deps
curl -O
tar xzf autoconf-2.69.tar.gz
cd autoconf-2.69
./configure --prefix=/usr/local
sudo make install
echo '===> autoconf found'
echo '===> Now get apc and installed it'
# Compile PHP APC
cd ~/tmp/apc-deps
curl -O
tar zxvf APC-3.1.13.tgz
cd APC-3.1.13
./configure --with-php-config=/usr/bin/php-config
make && sudo make install
echo '===> Done!. Modify your php.ini to load the See the logs to find the proper location.'
echo '===> usually it is something like this... /usr/lib/php/extensions/no-debug-non-zts-20100525/'
Copy link

Link broken:
curl -O

Copy link

The make command at the end fails for me in El Capitan

APC-3.1.13/apc_compile.c:2379:14: error: no member named 'function' in 'struct _zend_trait_alias'

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