Skip to content

Instantly share code, notes, and snippets.

@WattsInABox
Created September 26, 2013 19:21
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 WattsInABox/6719217 to your computer and use it in GitHub Desktop.
Save WattsInABox/6719217 to your computer and use it in GitHub Desktop.
homebrew sqoop failed to build on Mac OS X 10.8.5
$ 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/local/bin/gpg-error-config
/opt/local/bin/ksba-config
/opt/local/bin/libgcrypt-config
/opt/local/bin/ncurses5-config
/opt/local/bin/ncursesw5-config
/opt/local/bin/pcre-config
/opt/local/bin/pkg-config
/opt/local/bin/uuid-config
/opt/local/bin/xml2-config
/opt/local/bin/xslt-config
Warning: You have MacPorts or Fink installed:
/opt/local/bin/port
This can cause trouble. You don't have to uninstall them, but you may want to
temporarily move them out of the way, e.g.
sudo mv /opt/local ~/macports
$ brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/mxcl/homebrew.git
HEAD: d16abcddd55290a380a8db976c5918cac0ac45e8
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit haswell
OS X: 10.8.5-x86_64
Xcode: 5.0
CLT: 5.0.0.0.1.1377666378
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
GCC-4.2: build 0
LLVM-GCC: build 2336
Clang: 5.0 build 500
MacPorts/Fink: /opt/local/bin/port
X11: 2.7.4 => /opt/X11
System Ruby: 1.8.7-358
Perl: /opt/local/bin/perl => /opt/local/bin/perl5.12
Python: /usr/bin/python
Ruby: /Users/williamrwatson/.rvm/rubies/ruby-1.9.3-p194/bin/ruby
$ brew install sqoop
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.
Error: undefined method `[]' for #<Option: "-c">
Please report this bug:
https://github.com/mxcl/homebrew/wiki/troubleshooting
/usr/local/Library/Homebrew/options.rb:41:in `split_name'
/usr/local/Library/Homebrew/options.rb:9:in `initialize'
/usr/local/Library/Homebrew/build_options.rb:124:in `new'
/usr/local/Library/Homebrew/build_options.rb:124:in `opposite_of'
/usr/local/Library/Homebrew/build_options.rb:120:in `has_opposite_of?'
/usr/local/Library/Homebrew/build_options.rb:114:in `implicit_options'
/usr/local/Library/Homebrew/extend/ARGV.rb:11:in `map'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/set.rb:195:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/set.rb:195:in `each_key'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/set.rb:195:in `each'
/usr/local/Library/Homebrew/options.rb:66:in `each'
/usr/local/Library/Homebrew/build_options.rb:113:in `map'
/usr/local/Library/Homebrew/build_options.rb:113:in `implicit_options'
/usr/local/Library/Homebrew/dependency.rb:51:in `missing_options'
/usr/local/Library/Homebrew/dependency.rb:47:in `satisfied?'
/usr/local/Library/Homebrew/formula_installer.rb:264:in `necessary_deps'
/usr/local/Library/Homebrew/dependency.rb:90:in `action'
/usr/local/Library/Homebrew/dependency.rb:88:in `catch'
/usr/local/Library/Homebrew/dependency.rb:88:in `action'
/usr/local/Library/Homebrew/dependency.rb:74:in `expand'
/usr/local/Library/Homebrew/extend/ARGV.rb:11:in `map'
/usr/local/Library/Homebrew/dependencies.rb:9:in `each'
/usr/local/Library/Homebrew/dependencies.rb:9:in `each'
/usr/local/Library/Homebrew/dependency.rb:73:in `map'
/usr/local/Library/Homebrew/dependency.rb:73:in `expand'
/usr/local/Library/Homebrew/formula.rb:465:in `recursive_dependencies'
/usr/local/Library/Homebrew/formula_installer.rb:255:in `necessary_deps'
/usr/local/Library/Homebrew/extend/ARGV.rb:185:in `filter_for_dependencies'
/usr/local/Library/Homebrew/formula_installer.rb:254:in `necessary_deps'
/usr/local/Library/Homebrew/formula_installer.rb:275:in `filter_deps'
/usr/local/Library/Homebrew/formula_installer.rb:280:in `effective_deps'
/usr/local/Library/Homebrew/formula_installer.rb:284:in `install_dependencies'
/usr/local/Library/Homebrew/formula_installer.rb:144:in `install'
/usr/local/Library/Homebrew/cmd/install.rb:81:in `install_formula'
/usr/local/Library/Homebrew/cmd/install.rb:24:in `install'
/usr/local/Library/Homebrew/cmd/install.rb:22:in `each'
/usr/local/Library/Homebrew/cmd/install.rb:22:in `install'
/usr/local/Library/brew.rb:95:in `send'
/usr/local/Library/brew.rb:95
@MushroomData
Copy link

$ brew install sqoop
Error: undefined method []' for #<Option: "-c"> Please report this bug: https://github.com/mxcl/homebrew/wiki/troubleshooting /usr/local/Library/Homebrew/options.rb:41:insplit_name'
/usr/local/Library/Homebrew/options.rb:9:in initialize' /usr/local/Library/Homebrew/build_options.rb:135:innew'
/usr/local/Library/Homebrew/build_options.rb:135:in opposite_of' /usr/local/Library/Homebrew/build_options.rb:131:inhas_opposite_of?'
/usr/local/Library/Homebrew/build_options.rb:125:in implicit_options' /usr/local/Library/Homebrew/extend/ARGV.rb:11:inmap'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/set.rb:195:in each' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/set.rb:195:ineach_key'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/set.rb:195:in each' /usr/local/Library/Homebrew/options.rb:66:ineach'
/usr/local/Library/Homebrew/build_options.rb:124:in map' /usr/local/Library/Homebrew/build_options.rb:124:inimplicit_options'
/usr/local/Library/Homebrew/dependency.rb:48:in missing_options' /usr/local/Library/Homebrew/dependency.rb:44:insatisfied?'
/usr/local/Library/Homebrew/formula_installer.rb:226:in necessary_deps' /usr/local/Library/Homebrew/dependency.rb:98:inaction'
/usr/local/Library/Homebrew/dependency.rb:96:in catch' /usr/local/Library/Homebrew/dependency.rb:96:inaction'
/usr/local/Library/Homebrew/dependency.rb:80:in expand' /usr/local/Library/Homebrew/extend/ARGV.rb:11:inmap'
/usr/local/Library/Homebrew/dependencies.rb:9:in each' /usr/local/Library/Homebrew/dependencies.rb:9:ineach'
/usr/local/Library/Homebrew/dependency.rb:79:in map' /usr/local/Library/Homebrew/dependency.rb:79:inexpand'
/usr/local/Library/Homebrew/formula.rb:479:in recursive_dependencies' /usr/local/Library/Homebrew/formula_installer.rb:217:innecessary_deps'
/usr/local/Library/Homebrew/extend/ARGV.rb:185:in filter_for_dependencies' /usr/local/Library/Homebrew/formula_installer.rb:216:innecessary_deps'
/usr/local/Library/Homebrew/formula_installer.rb:237:in filter_deps' /usr/local/Library/Homebrew/formula_installer.rb:242:ininstall_dependencies'
/usr/local/Library/Homebrew/formula_installer.rb:178:in compute_and_install_dependencies' /usr/local/Library/Homebrew/formula_installer.rb:105:ininstall'
/usr/local/Library/Homebrew/cmd/install.rb:110:in install_formula' /usr/local/Library/Homebrew/cmd/install.rb:45:ininstall'
/usr/local/Library/Homebrew/cmd/install.rb:43:in each' /usr/local/Library/Homebrew/cmd/install.rb:43:ininstall'
/usr/local/Library/brew.rb:91:in `send'
/usr/local/Library/brew.rb:91

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment