Cb28a6236a74e575583612ef2ffc147c?s=200&d=https%3a%2f%2fwac.a8b5.edgecastcdn.net%2f80a8b5%2fstatic assets%2fassets%2fcontent%2fdefault avatar

brew doctor errors, Homebrew help please!

So I installed homebrew and I am getting some warnings starting out and I am trying to figure out how to fix them.

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:


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.

Ok, so all of my google searching has told me I should remove the /opt/sm/pkg/active/bin/pkg-config from the $PATH, unfortunately no one seems to want to explain how. Any help would be very appreciated.

Thanks again

6 Answers

Cb28a6236a74e575583612ef2ffc147c?s=200&d=https%3a%2f%2fwac.a8b5.edgecastcdn.net%2f80a8b5%2fstatic assets%2fassets%2fcontent%2fdefault avatar

Ok, so I managed to figure this one out. The hard part was figuring out where the /opt/sm/ stuff was being added to the $PATH. I managed to find it by accident while trying to uninstall RVM and hopefully start fresh.

The opt directory was in the "Macintosh HD" directory, but it did't have those scripts. The /opt/sm was in the /etc/profile.d directory. I opened it and then commented it out like the following.




and then quit and relaunch Terminal the ran $brew doctor and it said I was all ready to go. I then followed the instructions here http://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/ to install (re-install) everything else and so far it has run pretty smooth.

If anyone has any reason on why/why not this was the right thing to do I'd be thankful.


Ff9ebd10b1da8c67b8fc2ff2bf60bc2d?s=200&d=https%3a%2f%2fwac.a8b5.edgecastcdn.net%2f80a8b5%2fstatic assets%2fassets%2fcontent%2fdefault avatar

Thanks a lot Matt! That solved my problem too.

9034ba12d701be95053d330c1df43a97?s=200&d=https%3a%2f%2fwac.a8b5.edgecastcdn.net%2f80a8b5%2fstatic assets%2fassets%2fcontent%2fdefault avatar

This helped me also Matt - thanks!

F123cb8dc691a8105b83451204afac4f?s=200&d=https%3a%2f%2fwac.a8b5.edgecastcdn.net%2f80a8b5%2fstatic assets%2fassets%2fcontent%2fdefault avatar

I guess I'm more of a newbie than you guys. I was having a harder time finding the "/profile.d" folder. I had to run sudo open /etc/profile.d in the terminal.

Then upon trying to edit the sm.sh file with the new PATH given above, I was told I couldn't edit the file. I found the solution by right clicking on the "/profile.d" folder then clicking on "Get Info". Then, at the bottom of the window there is a pad lock. I had to unlock the folder and change the permissions from "Read Only" to "Read & Write".

Upon doing this i could edit the file and save it. Re-opened the terminal and ran brew doctor and it was fixed!

Thanks for the help guys. Hope this helps as well.

110b63c8cbaeb3c1261f58d8356971c8?s=200&d=https%3a%2f%2fwac.a8b5.edgecastcdn.net%2f80a8b5%2fstatic assets%2fassets%2fcontent%2fdefault avatar

Thanks Matt! That worked for me to!

P.S. to make my life easier, I wanted to be able to see hidden files in Finder. Type these commands into Terminal:

defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder

Switch TRUE to FALSE in order to switch back to the way it was.

Thumb foto del d a 09 08 14 a la s  12.02

Hi, My folder has no yaml file at all. How can I go on?

this is my Homestead directory after git

-rw-r--r--   1 me  staff   636 Nov 26 19:02 Vagrantfile
-rw-r--r--   1 me  staff   532 Nov 26 19:02 composer.json
-rw-r--r--   1 me  staff  4061 Nov 26 19:02 composer.lock
-rw-r--r--   1 me  staff   985 Nov 26 19:02 homestead
-rw-r--r--   1 me  staff   163 Nov 26 19:02 readme.md
drwxr-xr-x   7 me  staff   238 Nov 26 19:02 scripts
drwxr-xr-x  14 me  staff   476 Nov 26 19:02 src 

Do instructions need to be updated? Thanks

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.