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




转载于:https://my.oschina.net/lnmpstudy/blog/163774

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值