2015-06-22 76 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)