MAMP Pro on Yosemite Beta 5

Update: The developers of MAMP recommend the following workaround:

Workaround for the 10.10 Preview 5 bug: Rename the file “envvars” located in </Applications/MAMP/Library/bin> into “_envvars”

If you’re running MAMP Pro 3 and you installed Yosemite preview 5, you’ve probably noticed Apache won’t start anymore, with the following error:

dyld: Symbol not found: _iconv
Referenced from: /usr/lib/libmecabra.dylib
Expected in: /Applications/MAMP/Library/lib/libiconv.2.dylib
in /usr/lib/libmecabra.dylib

This is some kind of library error because of an updated library in the newest preview. You can fix this by forcing your own version of libiconv onto your computer, though you have to replace the system default version of libiconv, which in theory could cause bad things to happen – i’ve not noticed anything, but your milage will vary – and you should make sure you’ve got a system backup of everything incase the worst does happen.

Hopefully you’ve already got homebrew installed – if not, grab it from brew.sh and follow those instructions, then:

1) Allow homebrew to install duplicates of system software: brew tap homebrew/dupes
2) Install libiconv: brew install libiconv
3) Force it to link (replace) the system default: brew link libiconv --force
4) Delete the MAMP version of libiconv:
rm /Applications/MAMP/Library/lib/libiconv.2.dylib

Then everything should start properly.


Comments

22 responses to “MAMP Pro on Yosemite Beta 5”

  1. I am seeing the following error when I run `brew link libiconv –force`
    “`

    Linking /usr/local/Cellar/libiconv/1.14…
    Error: Could not symlink include/iconv.h
    /usr/local/include is not writable.
    “`

  2. jacobgraf Must be a permission issue – “brew doctor” should help!

  3. lgladdy jacobgraf That worked! Had to ‘sudo chown username:staff /usr/local/include’ and then everything worked fine. Thanks for the fix! I hope it didn’t break anything else but who knows when they will get the official fix out so this will have to do! 🙂

  4. Awesome – thanks!

  5. kirchevsky avatar
    kirchevsky

    Working for me – thanks bro! 🙂

  6. adamjacobb avatar
    adamjacobb

    Worked for me too!  Thanks

  7. Thanks. You saved me a lot of time.

  8. You, you, you are the greatest human being this world has seen!

  9. woohoo! )) thanks a lot!

  10. DavisShaver avatar
    DavisShaver

    I love the Internet. Thanks man! (For anyone checking, this works for the non-Pro version of MAMP, too.)

  11. rodrigoantinarelli avatar
    rodrigoantinarelli

    Oh worked o/ Thanks!

  12. Amazing! Thanks Liam… spent ages hunting.

  13. How can you reverse these changes once there’s a permanent fix for MAMP?

  14. Doesn’t matter, re-read the post and used the fix MAMP suggested.

  15. BenGoodman avatar
    BenGoodman

    Thanks dude! 🙂

  16. ColinHowells avatar
    ColinHowells

    Oh man, thanks so much, that was irritating

  17. you are a life saver!

  18. I’ve just found this post and it helped me a lot. Thank you so much Liam! I didn’t know about brew either so I’m thankful for that tip as well!

  19. Noob here.

    To begin step one, do I cd into the mamp application directory?

  20. nm!
    Changed the name of /Applications/MAMP/Library/lib/envars to _envars like you mentioned in the update. G2g now, many thanks!

  21. LIFE SAVER!!! Thank you so much! But could there be any adverse effects in future releases of Yosemite and/or MAMP?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.