我正在运行一个npm教程,需要安装Homebrew。然而,在收到一个错误(无法使用可用的编译器安装node)后,我运行了brew-install-gcc。嗯,这花了很长时间,但最终没有奏效,因为显然我安装了MacPorts或Fink。
老实说,我不确定什么时候安装了MacPorts或Fink。我不记得以前听过或使用过它们,也不确定它们的用途。以前有人遇到过这个错误吗,或者对下一步该怎么办有什么建议吗?以下是我在终端中得到的错误和链接。谢谢
make[2]: *** [configure-stage2-target-libstdc++-v3] Error 1
make[1]: *** [stage2-bubble] Error 2
make: *** [bootstrap] Error 2
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
READ THIS: https://git.io/brew-troubleshooting
These open issues may also help:
`gcc`: Force DWARF-2 Debugging Data under Pre-Mavericks https://github.com/Homebrew/homebrew/pull/46111
freeimage: patches for gcc 5.0 https://github.com/Homebrew/homebrew/pull/44612
yap: don't use GCC 5, which breaks https://github.com/Homebrew/homebrew/pull/45977
gcc can't find compatible ISL https://github.com/Homebrew/homebrew/issues/44444
How Do I Specify and Use Homebrew gcc-4.8 in a Formula Instead of OS X Bundled gcc? https://github.com/Homebrew/homebrew/issues/46169
isl 0.15, cloog 0.18.4, gcc compatibility patch https://github.com/Homebrew/homebrew/pull/44486
gcc causes false alarms in C++ stdlib check https://github.com/Homebrew/homebrew/issues/45218
apple-gcc42 takes priority over modern gcc https://github.com/Homebrew/homebrew/issues/41055
gcc 4.9.2 fails to produce debugging information https://github.com/Homebrew/homebrew/issues/34976
Object files deleted during build of gcc needed by gdb https://github.com/Homebrew/homebrew/issues/35734
MacOS.(gcc|clang|llvm)_version can return nil https://github.com/Homebrew/homebrew/issues/18781
MacPorts和Fink是像Homebrew一样的OS X的包管理器。正如消息所说,Homebrew不能很好地与这两个配合使用,所以你应该留在MacPorts或Fink,或者卸载它们并使用Homebrew。
除此之外,您还可以查看Homebrew的故障排除指南,了解如何解决常见问题。