Homebrew / legacy-homebrew

💀 The former home of Homebrew/homebrew (deprecated)
https://brew.sh
26.97k stars 11.35k forks source link

sqoop failed to build on 10.8 #22862

Closed WattsInABox closed 10 years ago

WattsInABox commented 11 years ago

I moved macports as suggested in brew doctor and got the same failure.

https://gist.github.com/billywatson/6719217

adamv commented 11 years ago

We need the verbose output brew install -v sqoop.

Though in this case perhaps the debugging output would be helpful too: brew install -vd sqoop

You still appear to have MacPorts in your path, though, and that might cause problems later.

I'd also recommend doing a brew update and updating to Xcode 5.1 (or is it 5.0.1?) as well.

WattsInABox commented 11 years ago
$ brew install -vd 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.
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/sqoop.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/hadoop.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/hbase.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/hive.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/zookeeper.rb
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/options.rb:19: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:99:in `action'
/usr/local/Library/Homebrew/dependency.rb:97:in `catch'
/usr/local/Library/Homebrew/dependency.rb:97:in `action'
/usr/local/Library/Homebrew/dependency.rb:83: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:82:in `map'
/usr/local/Library/Homebrew/dependency.rb:82: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
jontonsoup commented 10 years ago

I had the same problem. Solved it by removing all the dependancies and reinstlling. Here is my output for further reference:

/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/sqoop.rb /usr/local/Library/brew.rb: loading /usr/local/Library/Formula/hadoop.rb /usr/local/Library/brew.rb: loading /usr/local/Library/Formula/hbase.rb /usr/local/Library/brew.rb: loading /usr/local/Library/Formula/hive.rb /usr/local/Library/brew.rb: loading /usr/local/Library/Formula/zookeeper.rb /usr/local/Library/brew.rb: loading /usr/local/Library/Formula/ant.rb 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/options.rb:19: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:219:in necessary_deps' /usr/local/Library/Homebrew/dependency.rb:96:inaction' /usr/local/Library/Homebrew/dependency.rb:94:in catch' /usr/local/Library/Homebrew/dependency.rb:94: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:481:in recursive_dependencies' /usr/local/Library/Homebrew/formula_installer.rb:210:innecessary_deps' /usr/local/Library/Homebrew/extend/ARGV.rb:185:in filter_for_dependencies' /usr/local/Library/Homebrew/formula_installer.rb:209:innecessary_deps' /usr/local/Library/Homebrew/formula_installer.rb:230:in filter_deps' /usr/local/Library/Homebrew/formula_installer.rb:235:ineffective_deps' /usr/local/Library/Homebrew/formula_installer.rb:239:in install_dependencies' /usr/local/Library/Homebrew/formula_installer.rb:105:ininstall' /usr/local/Library/Homebrew/cmd/install.rb:97:in install_formula' /usr/local/Library/Homebrew/cmd/install.rb:32:ininstall' /usr/local/Library/Homebrew/cmd/install.rb:30:in each' /usr/local/Library/Homebrew/cmd/install.rb:30:ininstall' /usr/local/Library/brew.rb:91:in `send' /usr/local/Library/brew.rb:91