Steven Shaw
Steven Shaw

Reputation: 6249

Prevent warning about Macports/Fink installation

How can I prevent the following warning from Homebrew appearing whenever I install something?

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.

Note that I've never (that I recall) installed Fink on this machine and I just uninstalled Macports. I've tried removing /opt/local/bin from my PATH to no avail.

Upvotes: 15

Views: 17477

Answers (3)

Stefan Schmidt
Stefan Schmidt

Reputation: 3957

It's a dirty hack but if you just want to silence the warning you can comment out the relevant parts of check_macports in $(brew --prefix)/Library/Homebrew/cmd/install.rb.

Upvotes: 1

Francesc Rosas
Francesc Rosas

Reputation: 6055

Did you follow the official guide? (specially the "rm" part)

Upvotes: 18

jtatum
jtatum

Reputation: 226

Looking at the source (in def macports_or_fink_installed?), it seems to check something like this:

$ which port
$ which fink
$ ls /sw/bin/fink /opt/local/bin/port  # if they exist
$ ls -ld /sw /opt/local                # if either directory exists it must be readable

Upvotes: 7

Related Questions