将OSX升级到Catalina后,zsh出现问题

时间:2019-11-11 23:35:10

标签: homebrew macos-catalina

将Mac升级到Catalina之后,我将shell从bash更改为zsh,当我尝试运行brew doctor或brew cleanup时,我收到加载错误:

无法加载此类文件-active_support / core_ext / object / blank(LoadError)

由于外壳的变化,我也有其他异常。我已经更新了.zprofile,以反映使用bash时.bash_profile中的内容。

通过任何方式我都可以正常启动并重新运行,我可以采取哪些步骤来确保zsh像bash一样运行?

brew doctor

dc@PandaMacPro ~ % brew cleanup
Traceback (most recent call last):
    4: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in `<main>'
    3: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in `require_relative'
    2: from /usr/local/Homebrew/Library/Homebrew/global.rb:13:in `<top (required)>'
    1: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- active_support/core_ext/object/blank (LoadError)

2 个答案:

答案 0 :(得分:4)

根据建议here,命令brew update-reset是否解决了您的问题?对我有用。

答案 1 :(得分:0)

只需brew link --overwrite nmap就可以解决

zsh: bad CPU type in executable: nmap

相关问题