Brew doctor issues warnings

when I started brew doctor, I find many warnings. So I went ahead, cleaned up the existing installation and did it from scratch.

Now I have some warnings:

Warning: "config" scripts exist outside your system or Homebrew directories. `./configure` scripts often look for *-config scripts to determine if software packages are installed, and what additional flags to use when compiling and linking. Having additional scripts in your path can confuse software installed via Homebrew if the config script overrides a system or Homebrew provided script of the same name. We found the following "config" scripts: /opt/sm/pkg/active/bin/curl-config /opt/sm/pkg/active/bin/ncurses5-config /opt/sm/pkg/active/bin/ncursesw5-config /opt/sm/pkg/active/bin/pkg-config /opt/sm/pkg/active/bin/xml2-config /opt/sm/pkg/active/bin/xslt-config Warning: You have a non-Homebrew 'pkg-config' in your PATH: /opt/sm/pkg/active/bin/pkg-config `./configure` may have problems finding brew-installed packages using this other pkg-config. 

But since I just started using OS X a few days ago, I'm not sure if the mentioned configuration files are relevant or can I just delete them? Already browsed the forums for several hours, but still not wiser at the moment ... Any tips are very appreciated!

+6
source share
3 answers

Try to take /opt/sm/pkg/active/bin/ from your PATH.

This will prevent the scripts installed in this directory from accidentally matching those installed by the homebrew.

+11
source

If you are a newbie like me and want a clearer answer on how to do this, I found this answer here How to change the path for homebrew: "config" scripts exist outside your system or Homebrew directories , and it worked for me:

/ opt / sm is located in the /etc/profile.d directory. Open it by typing

cd / etc / profile.d in the terminal and then

is open.

Open the sm.sh file in a text editor, and then comment out the path by placing the hash sign # in front of

PATH = "$ {PATH}: / OPT / cm / bin: / OPT / cm / pack / active / bin: / OPT / cm / pack / active / SBIN"

Save the changes in a text editor, and then close and restart the terminal. Run the brew doctor "Warning" should disappear.

+5
source

This should work:

 sudo rm /opt/sm/pkg/active/bin/ 
-1
source

All Articles