Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hashcat Error: undefined method `each' for "unar":String #6158

Closed
philpraxis opened this issue Sep 12, 2014 · 4 comments · Fixed by #6166
Closed

hashcat Error: undefined method `each' for "unar":String #6158

philpraxis opened this issue Sep 12, 2014 · 4 comments · Fixed by #6166

Comments

@philpraxis
Copy link

$ brew cask install hashcat
==> Installing Formula dependencies from Homebrew
Error: undefined method `each' for "unar":String
Please report this bug:
    https://github.com/caskroom/homebrew-cask/issues
/usr/local/Cellar/brew-cask/0.41.0/rubylib/cask/installer.rb:102:in `formula_dependencies'
/usr/local/Cellar/brew-cask/0.41.0/rubylib/cask/installer.rb:45:in `install'
/usr/local/Cellar/brew-cask/0.41.0/rubylib/cask/cli/install.rb:20:in `block in install_casks'
/usr/local/Cellar/brew-cask/0.41.0/rubylib/cask/cli/install.rb:17:in `each'
/usr/local/Cellar/brew-cask/0.41.0/rubylib/cask/cli/install.rb:17:in `install_casks'
/usr/local/Cellar/brew-cask/0.41.0/rubylib/cask/cli/install.rb:6:in `run'
/usr/local/Cellar/brew-cask/0.41.0/rubylib/cask/cli.rb:80:in `run_command'
/usr/local/Cellar/brew-cask/0.41.0/rubylib/cask/cli.rb:120:in `process'
/usr/local/bin/brew-cask.rb:42:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/local/Library/brew.rb:59:in `require?'
/usr/local/Library/brew.rb:137:in `<main>'
$ ruby -v
ruby 2.0.0p451 (2014-02-24 revision 45167) [universal.x86_64-darwin13]
$ uname -a
Darwin mb 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun  3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64
$ brew cask doctor
==> OS X Version:
10.9.4
==> Hardware Architecture:
intel-64
==> Ruby Version:
2.0.0-p451
==> Ruby Path:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
==> Homebrew Version:
0.9.5
==> Homebrew Executable Path:
/usr/local/bin/brew
==> Homebrew Cellar Path:
/usr/local/Cellar
==> Homebrew Repository Path:
/usr/local
==> Homebrew Origin:
https://github.com/Homebrew/homebrew
==> Homebrew-cask Version:
0.41.0
==> Homebrew-cask Install Location:
/usr/local/Cellar/brew-cask/0.41.0
==> Homebrew-cask Cached Downloads:
/Library/Caches/Homebrew
/Library/Caches/Homebrew/Casks
0 files
0.00 megs
==> Homebrew-cask Default Tap Path:
/usr/local/Library/Taps/caskroom/homebrew-cask
==> Homebrew-cask Alternate Cask Taps:
<NONE>
==> Homebrew-cask Default Tap Cask Count:
1865
==> Contents of $LOAD_PATH:
/usr/local/Cellar/brew-cask/0.41.0/rubylib
/usr/local/Library/Homebrew
/Library/Ruby/Site/2.0.0
/Library/Ruby/Site/2.0.0/x86_64-darwin13
/Library/Ruby/Site/2.0.0/universal-darwin13
/Library/Ruby/Site
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0/x86_64-darwin13
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0/universal-darwin13
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/x86_64-darwin13
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13
==> Contents of $RUBYLIB Environment Variable:
<NONE>
==> Contents of $RUBYOPT Environment Variable:
<NONE>
==> Contents of $RUBYPATH Environment Variable:
<NONE>
==> Contents of $RBENV_VERSION Environment Variable:
<NONE>
==> Contents of $CHRUBY_VERSION Environment Variable:
<NONE>
==> Contents of $GEM_HOME Environment Variable:
<NONE>
==> Contents of $GEM_PATH Environment Variable:
<NONE>
==> Contents of $BUNDLE_PATH Environment Variable:
<NONE>
==> Contents of $PATH Environment Variable:
PATH="/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/Current/bin:/Library/Frameworks/Python.framework/Versions/Current/bin:/opt/local/bin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/MacGPG2/bin:/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/build:/usr/local/build/w3af:/bin:/opt/local/bin:/opt/local/sbin:/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin:/Applications/Wireshark.app/Contents/Resources/bin::/usr/local/Library/Contributions/cmd"
==> Contents of $SHELL Environment Variable:
SHELL="/bin/bash"
==> Contents of Locale Environment Variables:
LANG="en_US.UTF-8"
==> Running As Privileged User:
No
@philpraxis
Copy link
Author

$ brew install unar
Warning: unar-1.8.1 already installed

@rolandwalker
Copy link
Contributor

Thanks! That's a bug I should have caught in #6138, but the test coverage is only on the syntax; this is deeper.

We will have to amend the code a cut a bugfix release, which will probably have to wait until tomorrow.

As a workaround, you can use a URL for a previous version of the Cask:

$ brew cask install 'https://raw.githubusercontent.com/caskroom/homebrew-cask/6f6a22fa07bad2ae7d047f41942137f99db20863/Casks/hashcat.rb'

@rolandwalker rolandwalker self-assigned this Sep 12, 2014
rolandwalker added a commit to rolandwalker/homebrew-cask that referenced this issue Sep 13, 2014
@rolandwalker
Copy link
Contributor

This should be fixed in Release v0.41.1. Let us know if the problem persists after:

$ brew update && brew upgrade brew-cask && brew cleanup && brew cask cleanup

@philpraxis
Copy link
Author

Worked! Thanks a million!

2014-09-13 20:10:05 $ brew cask install hashcat
==> Installing Formula dependencies from Homebrew
unar ... already installed
==> Downloading https://hashcat.net/files/hashcat-0.47.7z
######################################################################## 100.0%
==> Symlinking Binary 'hashcat-cli64.app' to '/usr/local/bin/hashcat'
🍺  hashcat installed to '/opt/homebrew-cask/Caskroom/hashcat/0.47' (171 files, 13M)
2014-09-13 20:10:38 $

@Homebrew Homebrew locked and limited conversation to collaborators May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants