Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMatt McClard
5,676 Pointsbrew 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:
/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.
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
Matt McClard
5,676 PointsOk, 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.
PATH="${PATH}:/opt/sm/bin:/opt/sm/pkg/active/bin:/opt/sm/pkg/active/sbin"
to
#PATH="${PATH}:/opt/sm/bin:/opt/sm/pkg/active/bin:/opt/sm/pkg/active/sbin"
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.
Lates.
dprofile5
Front End Web Development Techdegree Student 4,919 PointsThanks a lot Matt! That solved my problem too.
David Shacochis
527 PointsThis helped me also Matt - thanks!
Casey Rees
Courses Plus Student 1,062 PointsI 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.
Farhan Daredia
5,912 PointsThanks 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.
Federico Krum
6,625 PointsHi, 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