3Jul/09Off

XHProf: Facebook's PHP profiler – ERROR: 'phpize' failed

pecl install xhprof
downloading xhprof-0.9.2.tgz ...
Starting to download xhprof-0.9.2.tgz (931,660 bytes)
......................................done: 931,660 bytes
11 source files, building
running: phpize
Cannot find config.m4.
Make sure that you run '/usr/local/bin/phpize' in the top level source directory of the module

ERROR: `phpize' failed

Solution: use tarball source install -> http://pecl.php.net/package/xhprof

/tmp/pecl/xhprof-0.9.2/extension/#

phpize

./configure --with-php-config=./configure --with-php-config=/usr/local/bin/php-config

make

make install