php扩展编译zlib Cannot find config.m4.

问题:安装过程中出现   

Cannot find config.m4

yum -y install openssl

/usr/local/bin/是php的安装目录
切换到php安装目录的etx/openssl目录
cd /root/soft/php-5.2.8/ext/openssl

/usr/local/bin/phpize

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

查看openssl目录下有个config.w32和config0.m4,把config0.m4改名为config.m4。
mv config0.m4 config.m4

/usr/local/bin/phpize

[root@xxxx ~]# phpize
Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module

Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
说明phpize安装正常

安装mongodb 的php驱动

Run:

sudo pecl install mongo

Open your php.ini file and add to it:

extension=mongo.so




你可能感兴趣的:(mongodb,php驱动)