2015-06-22 63 views
0

命令:在AWS AMI安装蒙戈驱动程序(PHP 5.6.9)

sudo pecl install mongo 

enter image description here

我不知道为什么我得到的缺失phpize.m4错误,为什么我得到这一切'stat'错误。我已经将相同版本的php(5.6.9)添加到/usr/lib64/php/5.6/文件夹中,并运行./configure,它执行时没有错误。

pear version 

enter image description here

+0

**更新**我安装了php-devel,并且需要php56-devel。我还没有完成安装驱动程序,但我距离更近一步。错误:'/ var/tmp/mongo/configure --with-mongo-sasl = n' – user3662516

+0

http://askubuntu.com/questions/466345/mongo-driver-php-cant- install-sasl-h-not-found这篇文章帮了我。我不得不运行yum安装cyrus-sasl-devel – user3662516

回答

0

我有没有正确安装几个依赖关系。

而不是php-devel我需要php56-devel为我的特定版本。

yum install php56-devel 

yum install cyrus-sasl-devel (missing dependency once I ran the pecl install again)