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:
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:
pecl install --force xhprof
cp -a xhprof-0.9.2/extension/* xhprof-0.9.2/
sed -i -r -e "s%(
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.