/usr/lib/libstdc++.6.dylib:mach-o,但是体系结构错误 [英] /usr/lib/libstdc++.6.dylib: mach-o, but wrong architecture
问题描述
我刚刚将我的MAC OS Mountain Lion的编译器更新为gcc 4.8.1,即configure&安装过程是:
I've just update my MAC OS Mountain Lion's compiler to gcc 4.8.1, the configure & install process is:
./configure --prefix=/usr
make
sudo make install
GCC 4.8.1已完全安装,但随后我发现我无法打开Chrome以及其他几个程序.我已经检查了错误报告,最重要的信息是:
the GCC 4.8.1 was installed completely, but then I found I cannot open my Chrome, as well as several other programs. I've check the error report, the most important information is:
Dyld Error Message:
Library not loaded: /usr/lib/libstdc++.6.dylib
Referenced from: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
Reason: no suitable image found. Did find:
/usr/lib/libstdc++.6.dylib: mach-o, but wrong architecture
/usr/lib/libstdc++.6.dylib: mach-o, but wrong architecture
那我应该怎么做才能解决这个问题?用适当的架构重新编译GCC?但是该怎么做呢?
So what should I do to solve this? Recompile GCC with proper architecture? But how to do this?
推荐答案
您已经覆盖了多个版本不兼容的系统库.您将需要重新安装Mac OS X.
You have overwritten several system libraries with incompatible versions. You will need to reinstall Mac OS X.
请勿使用--prefix=/usr
安装软件.该前缀保留用于与操作系统一起分发的软件.将/usr/local
用于您自己安装的软件.重新安装后,您可能需要尝试 Homebrew .
Don't install software with --prefix=/usr
. That prefix is reserved for software distributed with the operating system. Use /usr/local
for software you install yourself. You may want to try Homebrew instead once you've reinstalled.
这篇关于/usr/lib/libstdc++.6.dylib:mach-o,但是体系结构错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!