Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install mongo pecl extension on OSX. Pointer rather than step-by-step
Help from:
Install MAMP:
export PATH=/Applications/MAMP/bin/php/php5.6.10/bin:$PATH
PHP src from - get same version as MAMP uses!
richardg@rgmac:/Applications/MAMP/bin/php/php5.6.10/include $ ls -l
total 8
lrwxr-xr-x 1 richardg admin 22 10 Nov 10:34 php -> php-sources/php-5.6.10
drwxr-xr-x 3 richardg admin 102 10 Nov 10:34 php-sources
richardg@rgmac:~/builds/libiconv-1.14 $ ./configure --prefix=/Applications/MAMP/Library
sudo make install
richardg@rgmac:/Applications/MAMP/bin/php/php5.6.10/include/php $ ./configure --with-iconv=/Applications/MAMP/Library - mostly works! Enough to get tools.
richardg@rgmac:~ $ sudo pecl install mongo
You should add "" to php.ini
richardg@rgmac:/Applications/MAMP $ vim /Applications/MAMP/bin/php/php5.6.10/conf/php.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.