IT TIP

Ruby는 이러한 파일을로드 할 수 없습니다-active_support / core_ext / object / blank

itqueen 2021. 1. 9. 11:11
반응형

Ruby는 이러한 파일을로드 할 수 없습니다-active_support / core_ext / object / blank


실행하려고 brew doctor했지만 시스템에 오류가 발생했습니다.

/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in`require ': 해당 파일을로드 할 수 없습니다-active_support / core_ext / 객체 / 공백 (LoadError)

온라인으로 검색하고 "gem install activesupport"를 제안하는 다른 게시물을 찾았지만 다음 오류가 발생했습니다.

ERROR:  Error installing activesupport:
    i18n requires Ruby version >= 2.3.0.

또한 rvm install ruby-2.3.0을 시도했지만 동일한 오류가 다시 발생했습니다.

[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 style하면이 문제가 해결되었습니다.


최신 정보

의견에서 언급했듯이 일부 사람들에게 해결책은 다음과 같습니다.

brew update-reset

같은 문제가있었습니다. 나는 brew update-reset그것을 고치기 위해 달려야 했다.

ReferenceURL : https://stackoverflow.com/questions/54888582/ruby-cannot-load-such-file-active-support-core-ext-object-blank

반응형