OS X Homebrew 安装时缺少 Imagemagick jpeg 解码委托

发布于 2024-10-31 14:47:27 字数 843 浏览 1 评论 0原文

我最近从 macports 转换为 homebrew,之前的 macports Imagemagick 安装运行良好。我按照自制程序说明 chown /usr/local (有点担心)并删除 /usr/local/include 和 /usr/local/lib 。当尝试处理任何 jpeg 图像时,imagemagick 会遇到以下问题:

此图像格式没有解码委托

以下是一些相关命令输出的列表。如您所见,找不到 jpeg/jpg 委托。

convert -list 配置 => 代表 bzlib freetype png x11 xml zlib

identify -list configure => DELEGATES bzlib freetype png x11 xml zlib

但是,jpeg lib 是作为 Imagemagick 依赖项的一部分安装的,所以我不确定这里发生了什么。

酿造列表 => imagemagick jasper jpeg libtiff little-cms nginx pcre

brew doctor =>; 您的 OS X 已经成熟,可以酿造了。您可能遇到的任何问题都可能纯粹是心身问题。

identify --version => 版本:ImageMagick 6.6.7-9 2011-04-06 Q16

有什么想法吗?

I recently converted from macports to homebrew and my previous macports Imagemagick install was working fine. I followed the homebrew instructions to chown /usr/local (somewhat apprehensively) and remove /usr/local/include and /usr/local/lib. When trying to work with any jpeg images, imagemagick chokes with:

no decode delegate for this image format

Here is a list of some relevant command output. As you can see, no jpeg/jpg delegate can be found.

convert -list configure =>
DELEGATES bzlib freetype png x11 xml zlib

identify -list configure => DELEGATES bzlib freetype png x11 xml zlib

However, jpeg lib was installed as part of the Imagemagick dependencies, so I'm not sure what's going on here.

brew list => imagemagick jasper jpeg libtiff little-cms nginx pcre

brew doctor => Your OS X is ripe for brewing. Any troubles you may be experiencing are likely purely psychosomatic.

identify --version => Version: ImageMagick 6.6.7-9 2011-04-06 Q16

Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

一指流沙 2024-11-07 14:47:27

安德烈,你的解决方案让我找到了正确的方向。

但这是让它

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

为我工作的原因。

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.

云淡月浅 2024-11-07 14:47:27

我自己刚刚遇到这个问题。在调查时,我注意到 /usr/local/lib 中缺少 jpeg jib 的符号链接。可以通过以下方式解决这个问题;请务必参考正在使用的 jpeg lib 版本,在撰写本文时我正在使用 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

然后强制自制程序重新安装 imagemagick:

 brew install --force imagemagick

Viola! Imagemagick 现在将显示存在 jpeg 代表。

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.

南薇 2024-11-07 14:47:27

感谢您指出的方向。我的 jpeg 也已经在委托列表中,重新安装 imagemagick 对我不起作用,但重新链接 jpeg 可以:

brew unlink jpeg
brew link jpeg

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
萤火眠眠 2024-11-07 14:47:27

我遇到了这个问题,结果是权限问题。

sudo chown myuser:wheel /usr/local

然后:

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

排序。
不过,警告的话:我也有 MySQL 位于 /usr/local/ 中,而且我无意中搞乱了权限,所以如果你在那里还有其他重要的东西,请小心:-)
修复了这个问题:

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

希望这对某人有帮助!

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!

流云如水 2024-11-07 14:47:27

9monkeys 解决方案此处加上重新启动终端对我有用。

9monkeys solution here plus restarting Terminal worked for me.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文