Voor MAMP 2.1.2 en PHP 5.4.10
-
Download MongoDB php-stuurprogramma.
-
kopieer mongo.so naar
/Applications/MAMP/bin/php/php5.4.10/lib/php/extensions/no-debug-non-zts-20100525/en terminal gebruiken
cd /Applications/MAMP/bin/php/php5.4.10/lib/php/extensions/no-debug-non-zts-20100525/ && wget https://github.com/downloads/stennie/mongo-php-driver/mongo.so -
openen
/Applications/MAMP/bin/php/php5.4.10/conf/php.iniZoek
; Extensionsadd
extension=mongo.so -
Start MAMP opnieuw.
Bovenstaande stappen zullen MongoDB-stuurprogramma 1.2.10 installeren.
Nieuwste Mongodb-stuurprogramma installeren met PECL
-
installeer autoconf homebrew of Mac-poorten gebruiken
brew install autoconf -
Download php 5.4.10 bron van php.net.
-
hernoem de niet-gecomprimeerde php-bronmap van php-5.4.10 naar php en plak het in deze map
/Applications/MAMP/bin/php/php5.4.10/include/ -
gebruik de terminal om de php-map te openen en
./configureuit te voerencd /Applications/MAMP/bin/php/php5.4.10/include/php/ && ./configure -
Voeg MAMP-bak toe aan uw
~/.bash_profileecho "export PATH=/Applications/MAMP/bin/php/php5.4.10/bin:$PATH" >> ~/.bash_profile source ~/.bash_profile -
installeer de nieuwste mongo
pecl install mongo -
herstart MAMP-server :).