我已经更新到macOS ventura,ES(v7.17.4(出现了一些问题,所以我卸载了它,现在当我试图重新安装它时,遇到了以下错误。
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/specification_policy.rb:4:in '<top (required)>': superclass mismatch for class SpecificationPolicy (TypeError)
from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in 'require'
from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in 'require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/specification.rb:16:in '<top (required)>'
from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in `require'
from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in `require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:1365:in '<module:Gem>'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:116:in '<top (required)>'
from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in 'require'
from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in 'require'
from /usr/local/Homebrew/Library/Homebrew/utils/gems.rb:47:in 'setup_gem_environment!'
from /usr/local/Homebrew/Library/Homebrew/standalone/load_path.rb:13:in '<top (required)>'
from /usr/local/Homebrew/Library/Homebrew/startup.rb:6:in 'require_relative'
from /usr/local/Homebrew/Library/Homebrew/startup.rb:6:in '<top (required)>'
from /usr/local/Homebrew/Library/Homebrew/global.rb:4:in 'require_relative'
from /usr/local/Homebrew/Library/Homebrew/global.rb:4:in '<top (required)>'
from /usr/local/Homebrew/Library/Homebrew/build.rb:11:in 'require_relative'
from /usr/local/Homebrew/Library/Homebrew/build.rb:11:in '<main>'
Error: Failure while executing; `/usr/bin/sandbox-exec -f /private/tmp/homebrew20221031-58137-1t7tz3a.sb nice /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -W1 -- /usr/local/Homebrew/Library/Homebrew/build.rb /usr/local/Homebrew/Library/Taps/elastic/homebrew-tap/Formula/elasticsearch-full.rb --debug` exited with 1.
/usr/local/Homebrew/Library/Homebrew/sandbox.rb:157:in 'exec'
/usr/local/Homebrew/Library/Homebrew/formula_installer.rb:917:in 'block in build'
/usr/local/Homebrew/Library/Homebrew/utils/fork.rb:45:in 'block (3 levels) in safe_fork'
/usr/local/Homebrew/Library/Homebrew/utils/fork.rb:37:in 'fork'
/usr/local/Homebrew/Library/Homebrew/utils/fork.rb:37:in 'block (2 levels) in safe_fork'
/usr/local/Homebrew/Library/Homebrew/utils/fork.rb:34:in 'open'
/usr/local/Homebrew/Library/Homebrew/utils/fork.rb:34:in 'block in safe_fork'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tmpdir.rb:93:in 'mktmpdir'
/usr/local/Homebrew/Library/Homebrew/utils/fork.rb:33:in 'safe_fork'
/usr/local/Homebrew/Library/Homebrew/formula_installer.rb:905:in 'build'
/usr/local/Homebrew/Library/Homebrew/formula_installer.rb:450:in 'install'
/usr/local/Homebrew/Library/Homebrew/upgrade.rb:203:in 'install_formula'
/usr/local/Homebrew/Library/Homebrew/install.rb:350:in 'install_formula'
/usr/local/Homebrew/Library/Homebrew/install.rb:340:in 'block in install_formulae'
/usr/local/Homebrew/Library/Homebrew/install.rb:339:in 'each'
/usr/local/Homebrew/Library/Homebrew/install.rb:339:in 'install_formulae'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:233:in 'install'
/usr/local/Homebrew/Library/Homebrew/brew.rb:95:in '<main>'
尝试了几个解决方案,在互联网上随处可见。
请参阅我在类SpecificationPolicy的超类不匹配处的回答,我做了什么来帮助我克服看起来相同的错误