imagemagick 安装错误 - 架构不匹配
我正在尝试通过 macports 安装 ImageMagick,但收到以下错误消息:
Error: Cannot install imagemagick for the arch(s) 'x86_64' because
Error: its dependency bzip2 is only installed for the arch 'i386'
Error: and the configured universal_archs 'i386 ppc' are not sufficient.
Error: Unable to execute port: architecture mismatch
To report a bug, see <http://guide.macports.org/#project.tickets>
任何建议将不胜感激:)
I am trying to install ImageMagick via macports but am getting the following error msg:
Error: Cannot install imagemagick for the arch(s) 'x86_64' because
Error: its dependency bzip2 is only installed for the arch 'i386'
Error: and the configured universal_archs 'i386 ppc' are not sufficient.
Error: Unable to execute port: architecture mismatch
To report a bug, see <http://guide.macports.org/#project.tickets>
Any suggestion would be greatly appreciated :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这看起来与超级用户提出的问题相同,“由于架构问题,gcc46 的 Mac 端口安装失败”,并且在 Apple.Stackexchange 上,“由于架构问题,Mac ports 安装 gcc46 失败”。
您是否开始在 MacOS 10.5 上构建这些 MacPort 二进制文件,然后升级到 10.6——或者移动到 10.6 的新机器并从旧机器复制 MacPorts 文件——然后在 MacOS 10.6 下构建 imagemagick?
您的配置文件
/opt/local/etc/macports/macports.conf
与macports.conf.default
不同吗?这表明 MacPorts 环境是从 10.5 迁移而来,而不是在 10.6 上新建的。那里应该有一行,读取universal_archs ppc i386 ppc64 x86_64
。官方 MacPorts 迁移说明解释了如何从本质上更新您的环境MacOS X 10.6 并进行完整重建。他们的说明:
macports.conf
博客文章 Macports 中的通用二进制文件 略有不同 指示。基本上可以归结为:
macports.conf
中的universal_archs
行,$ sudo portupgrade --forceinstalled
强制完全重建 -This looks like the same question that was asked on Superuser, "Mac ports installation of gcc46 failing due to architecture problems", and on Apple.Stackexchange, "Mac ports installation of gcc46 failing due to architecture problems".
Did you start building these MacPort binaries on MacOS 10.5, then upgrade to 10.6 -- or move to a new machine with 10.6 and copy the MacPorts files from the old machine -- and then build imagemagick under MacOS 10.6?
Does your configuration file
/opt/local/etc/macports/macports.conf
differ frommacports.conf.default
? That's a sign that the MacPorts environment was migrated from 10.5 instead of being created new on 10.6. There should be a line there, readinguniversal_archs ppc i386 ppc64 x86_64
.The official MacPorts migration instructions explain how to essentially update your environment for MacOS X 10.6 and do a complete rebuild. Their instructions:
macports.conf
The blog post Universal Binaries in Macports gives slightly different instructions. Basically it comes down to:
universal_archs
line inmacports.conf
$ sudo port upgrade --force installed
-