Installing Imagemagick leads to weird error involving OpenCL I'm trying to install ImageMagick on Mac OSX 10.7 and I'm getting the following errors:

When I try to run the suggested verification

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

$ identify logo.gif
dyld: Library not loaded: /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libclparser.dylib
Referenced from: /opt/local/bin/identify
Reason: image not found
Trace/BPT trap: 5


When I try pretty much anything...

$ identify -version
dyld: Library not loaded: /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libclparser.dylib
Referenced from: /opt/local/bin/identify
Reason: image not found
Trace/BPT trap: 5


I've followed the path and it looks like the libclparser.dylib is missing from the OpenCL.framework, but I'm unsure of where to find that or how to replace it, or even if that's the right thing to do.
Here's what I did to fix this.


Booted up my old machine running OSX 10.6.
Copied /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libclparser.dylib from 10.6 computer into the same folder on 10.7.


Now things seem to be working fine.

Note: the file can also be found here: