Search code examples
phpmongodbpeclosx-mavericks

Installing PECL on MAMP


I have began installing pecl on MAMP. I have added the correct php version to the path and when which php it says /Applications/MAMP/... which is correct.

I have downloaded the Server Components and libraries moved them to a new folder in my php and run the ./configure everything seems to run ok and looked through all the checks being performed while installing and unpacking.

It gets to the last line and says;

configure: error: Please specify the install prefix of iconv with --with-iconv=<DIR>

Where should I set the <DIR> for the iconv?

Just make another folder and point it at that?

I am only trying to get the mongo pecl installed.

The information I have followed is here http://www.lullabot.com/blog/article/installing-php-pear-and-pecl-extensions-mamp-mac-os-x-107-lion


Solution

  • Working on this right now and found a workaround to just disable iconv with ./configure --without-iconv which not the best solution of course, but works for me.

    Edit: Downloaded libiconv-1.14 package, and after running ./configure , make, make install, PHP configure runs fine.