我刚刚将我的MAC OS Mountain Lion的编译器更新为gcc 4.8.1,configure&安装过程是:
./configure --prefix=/usr
make
sudo make install
GCC 4.8.1已完全安装,但之后我发现无法打开Chrome以及其他几个程序。我查看了错误报告,最重要的信息是:
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?但是怎么做呢?