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 ?
I was getting this error as well–with a homebrew install of ImageMagick. Along the same lines as Pascal, I fixed it with
- Install XCode 4.1 (from the App Store)
- In Xcode, go to Xcode > Preferences... > Downloads tab > click Install next to Command Line Tools
- Uninstall ImageMagick with
brew uninstall imagemagick
- Update homebrew with
brew update
- Install latest homebrew with
brew install imagemagick
- Run
brew doctor
and delete any of the *.la and *.a files listed if step 4 fails on make install
I got the same error and what solved the problem for me was:
- Install the latest XCode version from the Mac Appstore
- Install ImageMagick using Macports (
sudo port install imagemagick
)
Both steps took a while, but in the end ImageMagick worked fine again.
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
Reinstalling it even with brew instead of macports didn't work for me. Copying it did.
Try the following command:
brew doctor
to diagnose the common problems.
One of it could be removing DYLD_FALLBACK_LIBRARY_PATH variable from your ~/.profile
Or you have to re-install libtool by:
brew reinstall libtool --universal && brew unlink libtool && brew link libtool
精彩评论