gpt4 book ai didi

homebrew - brew 安装: undefined method `desc'

转载 作者:行者123 更新时间:2023-12-02 18:58:42 25 4
gpt4 key购买 nike

我尝试用 Homebrew 软件安装一些软件。

但我得到以下信息:

>>>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 update 并重试,但遇到了同样的问题。我尝试使用brew doctor,但我得到了以下几十个(数百个?):

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

我该如何解决这个问题?即使有解决方法也可以。

预先感谢您的帮助!

最佳答案

未定义的 desc 方法表明您的 Homebrew 已过时。推荐的解决方案是 update your Homebrew版本:

$ brew update -v

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

关于homebrew - brew 安装: undefined method `desc' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31272069/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com