Page 1 of 1

Installing IM under Mac Yosemite - incompatible library version

Posted: 2015-05-02T15:13:20-07:00
by djackson
Hi IM gurus,

I searched the message boards and couldn't find this issue being previously discussed, apologies if I missed it!

Trying to get IM working again after upgrading to Yosemite (was working fine under Mavericks). However I now get this error:

convert logo: logo.gif
dyld: Library not loaded: /usr/local/lib/libfreetype.6.dylib
Referenced from: /usr/local/bin/convert
Reason: Incompatible library version: convert requires version 18.0.0 or later, but libfreetype.6.dylib provides version 17.0.0
Trace/BPT trap: 5

Tried uninstalling and re-installing IM using HomeBrew but same error. Any help would be very much appreciated!!

Re: Installing IM under Mac Yosemite - incompatible library version

Posted: 2015-05-02T16:53:31-07:00
by fmw42
Might you have multiple versions of libfreetype installed? Perhaps one in /usr/local/lib and one in /opt/local/lib where perhaps Homebrew may install it?

Re: Installing IM under Mac Yosemite - incompatible library version

Posted: 2015-05-04T12:10:08-07:00
by djackson
Hi fmw42, thanks for your reply! I'm a bit of newbie with all of this library stuff so prepare yourself for some basic questions....!

Indeed I have a "libfreetype.6.dylib" in /usr/local/Cellar/freetype/2.5.3_1/lib/ and another one in /usr/local/lib/. How would I go about pointing IM to the right one? Or should I simply delete the /usr/local/lib one?

Thanks in advance for your help - much appreciated!

Re: Installing IM under Mac Yosemite - incompatible library version

Posted: 2015-05-04T12:18:31-07:00
by fmw42
Where is IM installed? What is /usr/local/Cellar/freetype/2.5.3_1/lib/ used for or where did it come from? Is it used by anything else?

Re: Installing IM under Mac Yosemite - incompatible library version

Posted: 2015-05-04T12:22:52-07:00
by djackson
I used Homebrew to install IM so it looks like it's here:

/usr/local/Cellar/imagemagick

A while ago I was using Circos (http://circos.ca) a lot and that was using freetype libraries....

Re: Installing IM under Mac Yosemite - incompatible library version

Posted: 2015-05-05T10:20:08-07:00
by djackson
Figured out a solution! Perhaps not the most elegant or recommend practice but it works for me. Based on a thread I found on GitHub (https://github.com/Homebrew/homebrew/issues/12099):

1. Uninstalled ImageMagick like so: brew uninstall imagemagick && brew cleanup
2. Re-installed ImageMagick from source like so: brew install imagemagick --build-from-source
3. During step 2 Homebrew pointed out that a few symlinks needed to be updated, specifically libpng and freetype. I fixed these like so:
4. brew link --overwrite libpng
5. brewlink --overwrite freetype

Everything then worked for :-)!

Re: Installing IM under Mac Yosemite - incompatible library version

Posted: 2015-05-05T10:24:52-07:00
by fmw42
Glad you found a way. Seems reasonable. I figured there was a conflict with freetype versions from your two different tools.

By the way, I use MacPorts to install all my delegates and then install IM manually from source. See viewtopic.php?f=1&t=21502&p=88202&hilit ... rts#p88202