Installing APC on Leopard
by Matt Dunn on February 3 2009, 12:02
There are a few steps needed to install APC on OS X Leopard. Don't worry, it may look a bit daunting if you've never had to compile anything before but it's very straight forward.
- First, download the appropriate version of the APC package
- Unpack it (doesn't matter where)
- Now start Terminal and cd to the unpacked directory from the above step
- Run 'phpize'
- Now it needs to be configured. Copy the following configuration (note: it must be entered into the Terminal prompt as a single line)
MACOSX_DEPLOYMENT_TARGET=10.5 CFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp" CCFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe" CXXFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe" LDFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -bind_at_load" ./configure
- Nearly there: now type 'make'
- sudo make install (you will need to enter your root password)
- Finally, add 'extension=apc.so' into your php.ini
And that's it!
Comments
A similar approach for mcrypt: Plugging mcrypt into PHP, on Leopard 10.5.6
by Pascal Opitz on February 9 2009, 15:24 #
And here is something for MySQL and PDO on OS X Leopard, Intel
Also this guy has a couple of pre-compiled binaries
by Pascal Opitz on February 9 2009, 15:46 #
by Wally on February 26 2009, 14:54 #
Just to give the man a bit more of an introduction: Matt was my team leader for quite some time, and I have learned tremendous amounts from working with him. I am very very happy that I could persuade him to do the occasional post here, even more so as this is he is the first contributor for CwS apart from Matthias, Mike and me so far. A milestone, so to say.
Good to have you here, Matt!
by Pascal Opitz on February 3 2009, 12:07 #
Matt,
Thank you for this info, I got down to the second to last command before I had any problems.
When I run 'make' I get the following errors:
Any help would be great!!
Thanks, Michael
by Michael on November 10 2009, 17:06 #
static
.by kiamlaluno on June 30 2010, 17:43 #
by Paul on March 15 2010, 23:20 #
by Lando K on January 20 2011, 18:24 #
by Pascal Opitz on January 22 2011, 09:27 #