Installing IM under Mac Yosemite - incompatible library version

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
djackson
Posts: 4
Joined: 2015-05-02T14:57:32-07:00
Authentication code: 6789

Installing IM under Mac Yosemite - incompatible library version

Post 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!!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Installing IM under Mac Yosemite - incompatible library version

Post 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?
djackson
Posts: 4
Joined: 2015-05-02T14:57:32-07:00
Authentication code: 6789

Re: Installing IM under Mac Yosemite - incompatible library version

Post 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!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Installing IM under Mac Yosemite - incompatible library version

Post 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?
djackson
Posts: 4
Joined: 2015-05-02T14:57:32-07:00
Authentication code: 6789

Re: Installing IM under Mac Yosemite - incompatible library version

Post 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....
djackson
Posts: 4
Joined: 2015-05-02T14:57:32-07:00
Authentication code: 6789

Re: Installing IM under Mac Yosemite - incompatible library version

Post 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 :-)!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Installing IM under Mac Yosemite - incompatible library version

Post 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
Post Reply