imagemagick 安装错误 - 架构不匹配

发布于 2024-12-07 22:00:29 字数 426 浏览 0 评论 0原文

我正在尝试通过 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 技术交流群。

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

发布评论

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

评论(1

梦年海沫深 2024-12-14 22:00:29

这看起来与超级用户提出的问题相同,“由于架构问题,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.confmacports.conf.default 不同吗?这表明 MacPorts 环境是从 10.5 迁移而来,而不是在 10.6 上新建的。那里应该有一行,读取 universal_archs ppc i386 ppc64 x86_64

官方 MacPorts 迁移说明解释了如何从本质上更新您的环境MacOS X 10.6 并进行完整重建。他们的说明:

  • 重新安装 Xcode 和 MacPorts
  • 更新 macports.conf
  • 保存已安装 ports 的列表
  • 卸载所有 ports
  • 重新安装您仍需要的 ports

博客文章 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 from macports.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, reading universal_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:

  • Reinstall Xcode and MacPorts
  • Update macports.conf
  • Save a list of installed ports
  • Uninstall all ports
  • Reinstall just those you still want

The blog post Universal Binaries in Macports gives slightly different instructions. Basically it comes down to:

  • update the universal_archs line in macports.conf
  • force a complete rebuild with $ sudo port upgrade --force installed -
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文