2016-07-01 12 views
1

私はBREW設定を得るのに助けが必要です。私は醸造とルビーの再インストールを試みましたが、私は物事を悪化させているように感じます。Brew - そのようなファイルを読み込むことができません - ruby​​gems.rb(LoadError)

いくつかの情報: OS XエルキャピタンV.

$ ruby -v 
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15.5.0] 

$ which -a ruby 
/usr/local/bin/ruby 
/usr/bin/ruby 

私は更新しよう10.11.5醸造:

$ brew update 
<internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb (LoadError) 
    from <internal:gem_prelude>:1:in `<compiled>' 
Error: Git must be installed and in your PATH! 

私がインストールしようとルビー:

$ rvm install ruby 
Searching for binary rubies, this might take some time. 
No binary rubies available for: osx/10.11/x86_64/ruby-2.3.0. 
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. 
Checking requirements for osx. 
<internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb (LoadError) 
    from <internal:gem_prelude>:1:in `<compiled>' 

Installing requirements for osx. 
Updating system....... 
Error running 'requirements_osx_brew_update_system ruby-2.3.0', 
showing last 15 lines of /Users/Ben/.rvm/log/1467344813_ruby-2.3.0/update_system.log 
    https://github.com/Homebrew/homebrew/wiki/Common-Issues 
and make sure `brew update` works before continuing.' 
++ rvm_pretty_print stderr 
++ case "${rvm_pretty_print_flag:=auto}" in 
++ case "${TERM:-dumb}" in 
++ case "$1" in 
++ [[ -t 2 ]] 
++ return 1 
++ printf %b 'Failed to update Homebrew, follow instructions here: 
    https://github.com/Homebrew/homebrew/wiki/Common-Issues 
and make sure `brew update` works before continuing.\n' 
Failed to update Homebrew, follow instructions here: 
    https://github.com/Homebrew/homebrew/wiki/Common-Issues 
and make sure `brew update` works before continuing. 
++ return 1 
Requirements installation failed with status: 1. 

私は試しました:https://stackoverflow.com/a/24789161/4459422

この問題を解決するために必要なその他の情報を教えてください。よろしくお願いします。

+1

に更新されたバージョン2.0を使用していました。 – Nirupa

答えて

1

はルビーを再インストールして試してみて、そうするために、次のコマンドを入力:

rvm fix-permissions 

rvm reinstall 2.3.1 
+0

私は '$ rvm uninstall 2.3.1を入手しました ruby​​-2.3.1 - #already gone' そして、上記のインストールと同じ出力 – iMacHumphries

+0

同じ出力、本当に助けてくれてありがとう! – iMacHumphries

-1

あなたが実際にOSXに付属することをシステムルビーとbrewをインストールすることができます。 RVMからRubyをインストールしてBREWをインストールする必要はありません。

これはbtwのOSXのバージョンですか?そして、どのバージョンのルビーがシステムルビーですか?またbrew doctorを試してください。

+0

これをコメントとして投稿してください。 – Nirupa

+0

醸造医は同じ出力を与える。 OS XエルキャピタンV. 10.11.5。 – iMacHumphries

+0

まず、システムのルビーを使用していることを確認する 'rvm use system'を試してください。さらに、PATHとシェルからrvmを削除してください。これは、あなたがBREWをインストールした後にいつでもインストールできるからです。 –

0

このコマンドは、私をめちゃくちゃ:https://stackoverflow.com/a/24789161/4459422

sudo ln -s /System/Library/Frameworks/Ruby.framework/Versions/1.8 
/System/Library/Frameworks/Ruby.framework/Versions/Current 

から私はので、私はあなたがルビーを再インストールしてみてくださいべきだと思い

sudo ln -s /System/Library/Frameworks/Ruby.framework/Versions/2.0 
    /System/Library/Frameworks/Ruby.framework/Versions/Current 
関連する問題