由于架构问题,Mac ports 安装 gcc46 失败

由于架构问题,Mac ports 安装 gcc46 失败

gcc46尝试使用(MacPorts 1.9.1)在 OS X 10.6.4 上安装时port出现以下错误:

artemis:foo$ sudo port install gcc46
Error: Cannot install gcc46 for the arch(s) 'x86_64' because
Error: its dependency gmp is only installed for the arch 'i386'
Error: and the configured universal_archs 'ppc i386' are not sufficient.
Error: Unable to execute port: architecture mismatch

关于如何解决这个问题或者如何为 i386 安装 gcc46 有什么建议吗?

答案1

我非常怀疑您是否从 10.6 开始就保持干净,因为在这种情况下,默认的 universal_archs 将是“x86_64 i386”。比较并编辑您的 /opt/local/etc/macports.conf 以匹配同一目录中提供的示例。

然后确保所有端口都按照以下方式安装在 x86_64 架构上迁移说明

相关内容