简体   繁体   English

在AWS ami(php 5.6.9)上安装Mongo驱动程序

[英]Installing Mongo Driver on AWS ami (php 5.6.9)

Command: 命令:

sudo pecl install mongo

在此处输入图片说明

I am not sure why I get the missing phpize.m4 error and why I'm getting all these 'stat' errors. 我不确定为什么会丢失phpize.m4错误以及为什么会得到所有这些“ stat”错误。 I've added the same version of php (5.6.9) to the /usr/lib64/php/5.6/ folder and ran ./configure which executes with no errors. 我已经将相同版本的php(5.6.9)添加到了/usr/lib64/php/5.6/文件夹中,并运行了./configure,执行过程没有错误。

pear version

在此处输入图片说明

I had a few dependencies that were not properly installed. 我有一些依赖关系未正确安装。

Instead of php-devel I needed php56-devel for my specific version. 我需要使用php56-devel来代替特定版本的php-devel。

yum install php56-devel

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM