Saya mencoba menjalankan brew doctor
tetapi sistem muncul kesalahan
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `memerlukan ': tidak dapat memuat file seperti itu - active_support / core_ext / objek / kosong (LoadError)
Mencari online dan posting lain menyarankan untuk hanya "gem install activesupport" tapi kemudian saya mengalami kesalahan:
ERROR: Error installing activesupport:
i18n requires Ruby version >= 2.3.0.
Saya juga mencoba menginstal rvm ruby-2.3.0 tetapi kesalahan yang sama muncul lagi
[2019-02-26 10:07:41] requirements_osx_brew_libs_install
requirements_osx_brew_libs_install () {
brew install "$@" --force || {
\typeset ret=$?;
requirements_osx_brew_libs_error "installation";
return $ret
} } current path: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib
PATH=/Users/{user_name}/.aw/pex_resources/scripts/binaries:/usr/local/sbin:/Users/fengjiao/.rbenv/shims:/Users/{user_name}/.nvm/v0.10.32/bin:/Users/fengjiao/bin:/usr/local/sbin:/usr/local/bin:/Users/{user_name}/.rbenv/shims:/Users/{user_name}/.nvm/v0.10.32/bin:/Users/{user_name}/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/munki:/opt/X11/bin:/Users/fengjiao/gocode/bin:/Users/{user_name}/.rvm/bin
command(10): requirements_osx_brew_libs_install autoconf automake
libtool pkg-config coreutils libyaml readline libksba openssl@1.1
++ brew install autoconf automake libtool pkg-config coreutils libyaml readline libksba openssl@1.1 --force
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in
`require': cannot load such file --
active_support/core_ext/object/blank (LoadError) from
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in
`require' from /usr/local/Homebrew/Library/Homebrew/global.rb:10:in
`<top (required)>' from
/usr/local/Homebrew/Library/Homebrew/brew.rb:21:in `require_relative'
from /usr/local/Homebrew/Library/Homebrew/brew.rb:21:in `<main>'
++ typeset ret=1
++ requirements_osx_brew_libs_error installation
++ rvm_warn 'There were package installation errors, make sure to read the log.
Try `brew tap --repair` and make sure `brew doctor` looks reasonable.
brew cleanup
brew cleanup
. Hanya sebelum ini,brew update
kata memberi diperbarui komit:6db1c7383
.brew update-reset
memperbaiki masalahnya.brew update-reset
Punya masalah yang sama. Saya harus lari
brew update-reset
untuk memperbaikinya.sumber
Dalam kasus saya, saya harus memaksa homebrew / linuxbrew menggunakan ruby portabelnya sendiri untuk memperbaikinya.
Saya menjalankan ArchLinux dengan ruby 2.7.0 terpasang, setelah saya beralih ke ruby portabel homebrew dengan
export HOMEBREW_FORCE_VENDOR_RUBY=1
seperti yang dijelaskan di halaman manual dan terbitanbrew update
, homebrew otomatis mengunduh ruby portabel 2.6.3, dan semuanya kembali normal.Saya pikir akar masalahnya mungkin homebrew yang tidak kompatibel dengan versi ruby yang lebih tinggi.
sumber