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.9 #24833

Closed ghost closed 10 years ago

ghost commented 10 years ago

got the following exception.

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:222: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:481:in recursive_dependencies' /usr/local/Library/Homebrew/formula_installer.rb:213:innecessary_deps' /usr/local/Library/Homebrew/extend/ARGV.rb:185:in filter_for_dependencies' /usr/local/Library/Homebrew/formula_installer.rb:212:innecessary_deps' /usr/local/Library/Homebrew/formula_installer.rb:233:in filter_deps' /usr/local/Library/Homebrew/formula_installer.rb:238:ineffective_deps' /usr/local/Library/Homebrew/formula_installer.rb:244:in install_dependencies' /usr/local/Library/Homebrew/formula_installer.rb:106: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

brew doctor Your system is ready to brew. brew --config HOMEBREW_VERSION: 0.9.5 ORIGIN: https://github.com/mxcl/homebrew HEAD: b3163e9509073940b156d479bb08eb5720697aa5 HOMEBREW_PREFIX: /usr/local HOMEBREW_CELLAR: /usr/local/Cellar CPU: quad-core 64-bit haswell OS X: 10.9-x86_64 Xcode: 5.0.2 CLT: 5.0.1.0.1.1382131676 Clang: 5.0 build 500 X11: N/A System Ruby: 1.8.7-358 Perl: /usr/bin/perl Python: /usr/bin/python Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby

brew install -v foo 2>&1 Error: No available formula for foo Searching taps...

asparagui commented 10 years ago

1.4.2 is 404, fwiw.

sqoop-1.4.4 is failing w/ the above as well.

adamv commented 10 years ago

In brew install -v foo 2>&1, the foo should be replaced with the name of the software you're trying to install.

adamv commented 10 years ago

Something about having zookeeper as a dep is causing the option parser to fail.

jacknagel commented 10 years ago

zookeeper really should not have a single character option.

jacknagel commented 10 years ago

that's not the bug, but still.

adamv commented 10 years ago

Unrelated warning installing hive:

==> Installing sqoop dependency: hive
==> Downloading http://www.apache.org/dyn/closer.cgi?path=hive/hive-0.12.0/hive-0.12.0-bin.tar.gz
Already downloaded: /Library/Caches/Homebrew/hive-0.12.0.tar.gz
tar xf /Library/Caches/Homebrew/hive-0.12.0.tar.gz
Warning: tried to install empty array to /Users/adamv/homebrew/Cellar/hive/0.12.0/libexec
==> Cleaning
adamv commented 10 years ago

I removed zookeeper and now I can reinstall sqoop 1.4.4 without a problem. Not sure how I had zookeeper installed previously (or why).

jacknagel commented 10 years ago

I can reproduce with brew install sqoop, but only if zookeeper is already installed; if it gets installed as a dep in the same process then it works.

adamv commented 10 years ago

Yeah, just found that out as well.

jacknagel commented 10 years ago

It's happening when loading the options from zookeeper's tab in Dependency#missing_options.

jacknagel commented 10 years ago

Happening here: https://github.com/mxcl/homebrew/blob/cc51108677b7b14e35b601942444c93d39d6d9e4/Library/Homebrew/build_options.rb#L135

option is already an Option.

jacknagel commented 10 years ago

This code got snuck in fd03aa527d1a4a44f202a9841b6b4e05ee6065b6, so I'm not really surprised.

jacknagel commented 10 years ago

Fixed in db8431f (and 389514831940645ed1470f73c0167bd2423158af)