Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lion (10.7) Not supporting Convert(1). Dylib error

When trying to use convert(1), I get the following error:

dyld: Library not loaded: /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libclparser.dylib
Referenced from: /usr/local/bin/convert
Reason: image not found
Trace/BPT trap: 5

Any idea how I could fix it ?

like image 922
Pier-Olivier Thibault Avatar asked Jul 20 '11 15:07

Pier-Olivier Thibault


3 Answers

I was getting this error as well–with a homebrew install of ImageMagick. Along the same lines as Pascal, I fixed it with

  1. Install XCode 4.1 (from the App Store)
  2. In Xcode, go to Xcode > Preferences... > Downloads tab > click Install next to Command Line Tools
  3. Uninstall ImageMagick with brew uninstall imagemagick
  4. Update homebrew with brew update
  5. Install latest homebrew with brew install imagemagick
  6. Run brew doctor and delete any of the *.la and *.a files listed if step 4 fails on make install
like image 104
Callmeed Avatar answered Nov 15 '22 13:11

Callmeed


I got the same error and what solved the problem for me was:

  1. Install the latest XCode version from the Mac Appstore
  2. Install ImageMagick using Macports (sudo port install imagemagick)

Both steps took a while, but in the end ImageMagick worked fine again.

like image 20
Pascal Lindelauf Avatar answered Nov 15 '22 11:11

Pascal Lindelauf


I installed xcode but had some issue with macports. Bummer!

I copied the libclparser.dylib file over from an old backup of 10.6, changed the permissions to match the other files in that folder and it worked!

Also see here: https://stackoverflow.com/questions/6674666/installing-imagemagick-leads-to-weird-error-involving-opencl

Edit:

I found this, which may be useful: http://cactuslab.com/imagemagick/
Also, the file is here: http://www.workdreamer.com/uploads/libclparser.dylib

like image 5
Rimian Avatar answered Nov 15 '22 11:11

Rimian