user70848
user70848

Reputation: 884

How can I resolve a conflict between Homebrew and MacPorts or Fink?

I was running through an npm tutorial and I needed to install Homebrew. However, after getting one error (cannot install node using available compilers), I ran brew install gcc. Well, that took forever, but it ultimately didn't work because apparently I have either MacPorts or Fink installed.

To be honest, I am not sure when I installed either MacPorts or Fink. I don't remember hearing them before or using them, and I'm not sure what they're used for. Has anyone run into this error before, or have any advice on what to do next? Below are the errors and the links I got in terminal. Thanks!

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

Upvotes: 1

Views: 2450

Answers (1)

bfontaine
bfontaine

Reputation: 19810

MacPorts and Fink are package managers for OS X, like Homebrew. As the message says Homebrew doesn’t work well with these two, so you should either stay with MacPorts or Fink, or uninstall them and use Homebrew.

Outside of that, you can check Homebrew’s troubleshooting guide to learn how to fix common issues.

Upvotes: 1

Related Questions