Homebrew / homebrew-cask

🍻 A CLI workflow for the administration of macOS applications distributed as binaries
https://brew.sh
BSD 2-Clause "Simplified" License
20.88k stars 10.7k forks source link

Error with brew cask install fiji #8601

Closed nerduno closed 9 years ago

nerduno commented 9 years ago

When attempting to install fiji using brew cask install fiji, I receive the following error:

brew cask install fiji ==> Downloading http://jenkins.imagej.net/job/Stable-Fiji-MacOSX/lastSuccessfulBuild/artifact/fiji-macosx.dmg

100.0%

Error: undefined method extname' for 0:Fixnum Please report this bug: https://github.com/caskroom/homebrew-cask/issues /usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/container/criteria.rb:43:inextension' /usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/container/pkg.rb:3:in me?' /usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/container.rb:50:inblock in for_path' /usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/container.rb:48:in each' /usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/container.rb:48:infind' /usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/container.rb:48:in for_path' /usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/installer.rb:83:inextract_primary_container' /usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/installer.rb:50:in install' /usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/cli/install.rb:20:inblock in install_casks' /usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/cli/install.rb:17:in each' /usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/cli/install.rb:17:ininstall_casks' /usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/cli/install.rb:6:in run' /usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/cli.rb:81:inrun_command' /usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/cli.rb:121: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:inrequire' /usr/local/Library/brew.rb:59:in require?' /usr/local/Library/brew.rb:142:in

'

tapeinosyne commented 9 years ago

Hello @nerduno. You are encountering #7946, which affects outdated versions of brew-cask. Upgrading should fix the issue:

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

If it does not, let me know.