我正在尝试通过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>
任何建议都将不胜感激:)
答案 0 :(得分:5)
这看起来与超级用户提出的问题相同,“Mac ports installation of gcc46 failing due to architecture problems”以及Apple.Stackexchange,“Mac ports installation of gcc46 failing due to architecture problems”。
你是否开始在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
。
official MacPorts migration instructions 解释了如何基本更新MacOS X 10.6的环境并进行完全重建。他们的指示:
macports.conf
博客帖子 Universal Binaries in Macports 提供略有不同的说明。基本上它归结为:
universal_archs
macports.conf
行
$ sudo port upgrade --force installed
-