phpize reports "Cannot find config.m4"

Ankit Rustagi picture Ankit Rustagi · Jul 24, 2013 · Viewed 88.5k times · Source

I am trying to run the 'phpize' command on MacOSx Mountain Lion, but this is what I get:

 Cannot find config.m4. 
 Make sure that you run '/opt/local/bin/phpize' in the top level source directory of the module

How do I resolve this error ?

Answer

nstCactus picture nstCactus · Jul 24, 2013

The phpize command is meant to be run at the top level of an extension source dir (this source dir should contain a file name config.m4).

See http://php.net/manual/en/install.pecl.phpize.php for more information.