Monday, October 1, 2012

Cannot find autoconf. Please check your autoconf

I just upgraded to Mountain Lion 10.8.1 and found that doing a pecl install apc failed.

The fix for me was:

Step 1: Download, install and make autoconf

curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-2.68.tar.gz .

tar -xzf autoconf-2.68.tar.gz

cd autoconf-2.68

./configure --prefix=/usr/local

make

sudo make install --prefix=/usr/local

Step 2: pecl install your apc

sudo pecl install apc

Afterwards you should be able to find the .so file here:

/usr/local/lib/php/extensions/no-debug-non-zts-20090626/apc.so


Step 3: Add the extension to your php.ini file

extension=apc.so


Step 4: Restart Apache

No comments:

Post a Comment