Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImageMagick and OS X Lion trouble

[edit] I was troubleshooting problems with my development environment when I noticed one of my problems was the dependency on ImageMagick, since it's a vital part of my app.


After upgrading to OS X Lion (10.7) i no longer had ImageMagick available, i then tried installing again using MacPorts without success, i then installed from source, and the install wasn't very successfully i had convert and identify but it output error messages that i unfortunately dont have anymore, i by some strange reason decided to remove all of my MacPort libraries and started using Homebrew, i tried installing ImageMagick, it installs OK but when i try to use it throws this error

dyld: Library not loaded: /opt/local/lib/libltdl.7.dylib   Referenced from: /usr/local/bin/convert   Reason: Incompatible library version: convert requires version 11.0.0 or later, but libltdl.7.dylib provides version 10.0.0 Trace/BPT trap: 5 

I read online but i have no clue on whats going on here, i found that libltdl is called libtool, and that i obviously need to upgrade it to a newer version, but i havent found any indication of how or where to find the source, or if this should be already be handled by homebrew and why it hasn't.

I tried installing ImageMagick again from source using this installer script https://github.com/masterkain/ImageMagick-sl but when i try to use convert it throws a similar error.

$ convert gnome.jpg -resize 50% gnome_.jpg dyld: Library not loaded: /opt/local/lib/libltdl.7.dylib   Referenced from: /usr/local/bin/convert   Reason: Incompatible library version: convert requires version 11.0.0 or later, but libltdl.7.dylib provides version 10.0.0 Trace/BPT trap: 5  $ which convert /usr/local/bin/convert 

What can i do to solve my problem?

like image 800
rroche Avatar asked Sep 14 '11 06:09

rroche


2 Answers

On 10.8 I solved this issue with:

brew install libtool --universal brew link libtool 

If you don't know what brew is, visit https://github.com/mxcl/homebrew and its wiki.

like image 177
LevB Avatar answered Sep 28 '22 06:09

LevB


brew uninstall imagemagick brew install imagemagick --build-from-source 

worked for me

like image 36
jesuisbonbon Avatar answered Sep 28 '22 06:09

jesuisbonbon