1

npm チュートリアルを実行していて、Homebrew をインストールする必要がありました。ただし、1 つのエラー (利用可能なコンパイラを使用してノードをインストールできない) が発生した後、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
4

1 に答える 1

1

MacPorts と Fink は、Homebrew と同様に OS X 用のパッケージ マネージャーです。Homebrew はこれら 2 つではうまく動作しないというメッセージがあるため、MacPorts または Fink をそのまま使用するか、それらをアンインストールして Homebrew を使用する必要があります。

それ以外では、Homebrew のトラブルシューティング ガイドをチェックして、一般的な問題を修正する方法を学ぶことができます。

于 2015-11-23T16:42:04.313 に答える