Imagemagick jpeg decode delegate missing with OS X Homebrew install

前提是你 提交于 2019-12-03 02:06:22

Andrei, your solution got me in the right direction.

but it was a

brew install --force jpeg
brew install --force imagemagick

that got it working for me.

Adam Presley

I just ran into this issue myself. While investigating I noticed symlinks to the jpeg jib were missing from /usr/local/lib. Can take of this with the following; just be sure to refer to the jpeg lib version in use, at the time of this post I am using 8c:

 ln -s /usr/local/Cellar/jpeg/8c/lib/libjpeg.8.dylib /usr/local/lib/libjpeg.8.dylib

 ln -s /usr/local/Cellar/jpeg/8c/lib/libjpeg.a /usr/local/lib/libjpeg.a

Then force homebrew to reinstall imagemagick:

 brew install --force imagemagick

Viola! Imagemagick will now show that a jpeg delegate is present.

Thanks for the direction pointed. My jpeg is also already in the delegate list, re-installing imagemagick doesn't work for me, but relinking jpeg does:

brew unlink jpeg
brew link jpeg

I had this problem and it turned out to be permissions.

sudo chown myuser:wheel /usr/local

then:

brew remove jpeg
brew remove imagemagick
brew install jpeg
brew install imagemagick

sorted it. Word of warning though: I had MySQL sittting in /usr/local/ too, and I inadvertently messed up permissions for that, so if you've got anything else important in there, be careful :-) Fixed that with:

sudo chown -R mysql:wheel /usr/local/mysql/data

Hope this helps someone!

zeeawan

9monkeys solution here plus restarting Terminal worked for me.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!