Php – Installing PECL package on Ubuntu — cannot find config.m4

pearpeclPHPubuntu-11.10

I've got a new Ubuntu installation set up and running, it servers PHP pages on Apache, everything works normally.

I'm trying to install a PHP-PEAR package called SCA_SDO, there's an issue with some programs I'm unfamiliar with such as phpize (prepares a PHP extension for compiling), and advanced features of the PECL install tool.

I have the following PHP packages intalled

  • php5-cli
  • php5-common
  • php5-dev
  • php-pear
  • php5-xsl
  • php5-xmlrpc

Steps taken:

$ sudo pecl install SCA_SDO

Results

downloading SCA_SDO-1.2.4.tgz ...
Starting to download SCA_SDO-1.2.4.tgz (576,531 bytes)
..............done: 576,531 bytes
194 source files, building
running: phpize
Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module

If the command failed with 'phpize: not found' then you need to install php5-dev package
You can do it by running 'apt-get install php5-dev' as a root userERROR: `phpize' failed

locate config.m4 turns up empty.

There's been a number of other questions on the internet that show this error, all describing weird "tricks" like execute phpize from the /usr/bin directory or some other thing, but none of these have really done any good here.

I've actually downloaded and ran make on pecl from source just to make sure it wasn't a bad package or something.

Not sure where to head from here, I can't get the .so module to install or run phpize.