I spent 2 days trying to install mongo php driver on a Mac 10.8 with MAMP (2.2), but it's almost impossible... I've tried: Installing Mongo Driver on MAMP and this Mongo PHP Driver 1.2.10 with MAMP
I have the 5.4.19 php version selected on MAMP.
I have installed the mongo driver doing:
sudo pecl install mongo
I have no errors, but once I restart MAMP I got this error on the loading process:
PHP Warning: PHP Startup: mongo: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
The output of phpize is:
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
The output of php -v is:
PHP 5.5.3 (cli) (built: Sep 18 2013 14:31:13) ...
So the version doesn't match with MAMP. I have tried to select the same version on MAMP, but I got the same problem...
Any hints?
Thank you very much!