Skip to content

Instantly share code, notes, and snippets.

@OsloHill
Created October 13, 2013 07:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OsloHill/6959097 to your computer and use it in GitHub Desktop.
Save OsloHill/6959097 to your computer and use it in GitHub Desktop.
Homebrew (Frustrating!!!)
BREW DOCTOR
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
QUESTION: What does Homebrew need/want me to do about this? There isn't enough context for me to try to do something to resolve this. Please either give me more context, suggest a resolution or point me in the direction of where I can learn more about this problem so that I can work with Homebrew.
Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:
git
git-cvsserver
git-receive-pack
git-shell
git-upload-archive
git-upload-pack
Consider setting your PATH so that /usr/local/bin
occurs before /usr/bin. Here is a one-liner:
echo export PATH="/usr/local/bin:$PATH" >> ~/.bash_profile
QUESTION: My bash_profile is as follows:
PATH="/Users/me/.rvm/gems/ruby-1.9.3-p448/bin':/Applications/Postgres.app/Contents/MacOS/bin:$PATH"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
export PATH=/usr/local/bin:/Users/me/.rvm/gems/ruby-1.9.3-p448/bin:/Users/me/.rvm/gems/ruby-1.9.3-p448@global/bin:/Users/melaniemaslem/.rvm/rubies/ruby-1.9.3-p448/bin:/Users/me/.rvm/bin:/Users/me/.rvm/gems/ruby-1.9.3-p448/bin':/usr/local/bin:/Applications/Postgres.app/Contents/MacOS/bin
----------
What change am I expected to make. I ran the echo command suggested by BREW DOCTOR, but still get the error message.
Warning: You have a non-Homebrew 'pkg-config' in your PATH:
/opt/sm/pkg/active/bin/pkg-config
QEUSTION: Where am I supposed to look to find this? It isn't in the path as above.
`./configure` may have problems finding brew-installed packages using
this other pkg-config.
CONFIG
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/mxcl/homebrew
HEAD: b31ff11227ca64cea85badde71b4b70056780189
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit ivybridge
OS X: 10.8.5-x86_64
Xcode: 5.0
CLT: 1.0.0.9000000000.1.1249367152
GCC-4.2: build 5666
LLVM-GCC: build 2336
Clang: 5.0 build 500
X11: N/A
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /Users/me/.rvm/rubies/ruby-1.9.3-p448/bin/ruby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment