homebrew – brew install:undefined方法`desc’

我尝试用自制软件安装一些软件.

但我得到以下内容:

>>>brew install irssi
Error: undefined method `desc' for Formulary::Formulae::Irssi:Class
Please report this bug:
http://git.io/brew-troubleshooting
/nfs/zfs-student-3/users/2013_paris/vmonteco/.brew/Library/Formula/irssi.rb:2:in `<class:Irssi>'
/nfs/zfs-student-3/users/2013_paris/vmonteco/.brew/Library/Formula/irssi.rb:1:in `load_file'
/usr/local/Library/Homebrew/formulary.rb:92:in `module_eval'
/usr/local/Library/Homebrew/formulary.rb:92:in `load_file'
/usr/local/Library/Homebrew/formulary.rb:82:in `klass'
/usr/local/Library/Homebrew/formulary.rb:71:in `get_formula'
/usr/local/Library/Homebrew/formulary.rb:200:in `factory'
/usr/local/Library/Homebrew/extend/ARGV.rb:16:in `block in formulae'
/usr/local/Library/Homebrew/extend/ARGV.rb:16:in `map'
/usr/local/Library/Homebrew/extend/ARGV.rb:16:in `formulae'
/usr/local/Library/Homebrew/cmd/install.rb:42:in `install'
/usr/local/Library/brew.rb:135:in `<main>'

我尝试做brew更新并重试,但我遇到了同样的问题.
我尝试使用brew医生,但我得到了数十(数百?)以下内容:

undefined method `desc' for Formulary::Formulae::<something>::Class

我怎么能解决这个问题?即使是解决方法也没关系.

预先感谢您的帮助!

一个未定义的desc方法表明你的Homebrew已经过时了.建议的解决方案是 update your Homebrew版本:

$brew update -v

使用-v标志将提供额外的输出.运行命令twice,然后再次尝试安装公式.

相关文章