Today has been a day for buggy php modules.

I was installing the xhprof module for a client when I got this error back from pecl:

running: phpize
Cannot find config.m4.
Make sure that you run ‘/usr/bin/phpize’ in the top level source directory of the module

ERROR: `phpize’ failed

It didn’t take me terribly long to find the bug report.

Inside of it is the steps to get around the bug:

pear update-channels
pecl install --force xhprof
cd /tmp/pear/download/
cp -a xhprof-0.9.2/extension/* xhprof-0.9.2/
sed -i -r -e "s%()%\1\2%" package.xml
tar czf xhprof-0.9.2.tgz package.xml xhprof-0.9.2
pecl install --force xhprof-0.9.2.tgz

Worked like a charm.

Category: php

Leave a Reply


gives good tech
Kale is one of the smartest people I know

Racker Hacker
Major is always good for leet deetz