Installing Mongo Driver on AWS ami (php 5.6.9)

577 views Asked by At

Command:

sudo pecl install mongo

enter image description here

I am not sure why I get the missing phpize.m4 error and why I'm getting all these 'stat' errors. 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.

pear version

enter image description here

1

There are 1 answers

0
user3662516 On

I had a few dependencies that were not properly installed.

Instead of php-devel I needed php56-devel for my specific version.

yum install php56-devel

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