This page will show you how to install mongo driver on Mac OSX First you need to install pecl: installer via pecl: So we donwloadd Pecl, then you launch the installer :
curl -O
sudo php -d detect_unicode=0 go-pear.phar
Choose (1) and enter, to write :
Then choose « 4 » and enter to write
Then enter
To verify :
pear version
Then you need to install autoconf. For this part, you need to have the library "brew" installed
Via brew, you install autoconf :
brew install autoconf
Then you install the xcode developpers tools :
xcode-select --install
Then you install mongo via pecl
sudo pecl install mongo
Finally, you need to declare the mongod driver into your php configuration file : Add the extension line to php ini:
Copy php.ini.default to the main php.ini
sudo cp /etc/php.ini.default /etc/php.ini
Edit the file:
sudo vi /etc/php.ini

And add the extension to load ( mongo driver)
The you need to restart apache
sudo apachectl restart