如何在macports中以i386模式编译gcc44?
我正在尝试使命令“sudo port install py25-gtk”起作用。问题是(至少)依赖项之一(gcc44)未编译。
我发现它总是尝试在 x86_64 模式下编译,但其他所有内容都在 i386 模式下编译。因此,库不匹配。
我尝试过将我的 Mac 启动到 64 位模式(各种方法),但失败了。此外,gmp(gcc44 的依赖项)没有可用的 x86_64。
所以我唯一的选择是在 macports 中满足 32 位模式下的 gcc44 依赖性。我该怎么做?当“+i386”选项无法执行此操作时,如何在 i368 中强制编译? +通用失败(gmp没有x86_64)?我可以只下载源吗?我如何编译它们?
一切都已在使用和不使用 -f(强制)以及作为 root 的情况下进行了尝试。当我从 leopard(默认=i386)升级到 Snow leopard(部分 x86_64,部分 i386)时出现问题。
br,
尤哈
I am trying to make command "sudo port install py25-gtk" work. The problem is that (at least) one of the dependencies (gcc44) is not compiling.
I have figured out that it always tries to compile in x86_64 mode but everything else is compiled in i386 mode. Thus, libraries do not match.
I have tried to boot my mac into 64bit mode (various methods), but failed. Also, gmp (dependency of gcc44) does not have x86_64 available.
So my only option to satisfy gcc44 dependency in 32bit mode in macports. How do I do that? How can I force compilation in i368 when "+i386" option fails to do that? +universal fails (gmp does not have x86_64)? Can I download just sources? How do I compile them?
Everything has been tried with and without -f (force) and as root. The problem occurred when I upgraded from leopard (default=i386) to snow leopard (partly x86_64, partly i386).
br,
Juha
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
... 20小时后...在提出正确的问题后:
如何强制 /usr/bin/gcc -> /usr/bin/gcc -m32?
强制编译器处于 32 位模式:
破解默认编译器
- 就我而言:将 /usr/bin/gcc-4.2 链接到 gcc-4.2.sh
br,
尤哈
... 20 hours later... and after asking the right question:
How to force /usr/bin/gcc -> /usr/bin/gcc -m32?
To force compiler in 32bit mode:
hack the default compiler
- in my case: link /usr/bin/gcc-4.2 to gcc-4.2.sh
br,
Juha