我正在运行一个npm教程,我需要安装Homebrew。但是,在得到一个错误(不能使用可用编译器安装节点)后,我运行brew安装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发布于 2015-11-23 16:42:04
MacPorts和Fink是OS的包管理器,就像Homebrew一样。正如消息中所说的,Homebrew不能很好地处理这两种情况,所以您应该继续使用MacPorts或Fink,或者卸载它们并使用Homebrew。
除此之外,您还可以检查自制的故障排除指南来了解如何修复常见问题。
https://stackoverflow.com/questions/33874084
复制相似问题