Trying to reconstruct my server environment in MAMP after upgrading from 10.4.11 to 10.5 (a nightmare) and running Drush generates the error below, although it does seem to work.

(This is what I hope will be the last piece of the puzzle - everything else is working.)

I've plowed through the boards on this and tried several suggestions; none seem to alleviate the error. Latest (and most promising) seemed to be #69 from http://drupal.org/node/973710, which doesn't fix it.

(for reference, this is adding export DRUSH_PHP='/Applications/MAMP/bin/php5.2/bin/php' to .bash_profile.)

Below is the full error - Drush seems to insist on using PHP 5.3 no matter what I do.

Any help here greatly appreciated - I love Drush and want to get back to work... thanks!

Error on running Drush:

PHP Warning:  PHP Startup: Unable to load dynamic library '/Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/yaz.so' - dlopen(/Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/yaz.so, 9): Library not loaded: /sw/lib/libiconv.2.dylib
  Referenced from: /Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/yaz.so
  Reason: Incompatible library version: yaz.so requires version 6.0.0 or later, but libiconv.2.dylib provides version 5.0.

Comments

moshe weitzman’s picture

Status: Active » Fixed

This is unrelated to drush. You might be able to fix it with an edit to php.ini. Otherwise, you might need to recompile php - not sure. Anyway, it is a harmless error so you can fix it at your leisure.

bcobin’s picture

Thank you, Moshe - especially for the quick response! Marvelous.

I continued investigating and found this: http://forum.mamp.info/viewtopic.php?f=6&t=7770

Adding export DYLD_LIBRARY_PATH=/Applications/MAMP/Library/lib:${DYLD_LIBRARY_PATH} to .bashrc in my home directory did the trick - and possibly eliminated some other problems down the line... who knows?

Anyway, as far as I can tell, my MAMP server environment is now up to speed after the upgrade to 10.5 - thank you!

Drushin' the night away... rock on!

P.S. - I see you've dropped the Drush mmas command - shame, that. It was a source of occasional amusement around here... ;-)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.