Sunday, February 1, 2015

Problem mongo driver for php with MAMP

I try too much for install mongo driver , I use MAMP.
Step

git clone git://github.com/mongodb/mongo-php-driver.git
$ brew install autoconf
$ cd mongo-php-driver/
$ phpize
$ ./configure
$ make

but!!! I found an error!


It's not found php.h 
After I waste my time I found solution

Load php that you use (I use php version 5.5.18)
http://php.net/releases/

and then I extract file to 
/Applications/MAMP/bin/php/php5.5.18/include/php

finally 
I try again 

$ ./configure

go to /bin

./pecl install mongo

Bravo!! no error

No comments:

Post a Comment