上記は初めては機能しませんが、2回目は機能します。
新しいシェル ウィンドウでは、Ruby のバージョンを 2.0.0 に設定してみてください。
やっている
$ rvm use 2.0.0 --default
与える
Warning! PATH is not properly set up, '/home/durrantm/.rvm/gems/ruby-1.9.3-p125/
bin' is not at first place,
usually this is caused by shell initialization files - check them for '
PATH=...' entries,
it might also help to re-add RVM to your dotfiles: 'rvm get stable --au
to-dotfiles',
to fix temporarily in this shell session run: 'rvm use ruby-1.9.3-p125'
.
Using /home/durrantm/.rvm/gems/ruby-2.0.0-p247
それから同じことをする
$ rvm use 2.0.0 --default
エラーが発生しなくなりました。
$ rvm use 2.0.0 --default
Using /home/durrantm/.rvm/gems/ruby-2.0.0-p247
durrantm.../durrantm$
しかし、新しいウィンドウはまだ 2.0.0 ではなく、Ruby 1.9.3 を提供しています。
私の.bashrc
ファイルには次のものがあります:
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
[[ -s "/home/durrantm/.rvm/scripts/rvm" ]] && . "/home/durrantm/.rvm/scripts/rvm"
私の .bash_profile には次のものがあります。
source ~/.profile
case $- in *i*) . ~/.bashrc;; esac
しようとしている
rvm get stable
動作しているように見えますが、多くの緑色の出力の最後に次のように表示されます:
Could not update RVM, get some help at #rvm IRC channel at freenode servers.
新しいターミナル ウィンドウにrvm list rubies
は次のように表示されます。
$ rvm list rubies
Warning! PATH is not properly set up, '/home/durrantm/.rvm/gems/ruby-1.9.3-p125/bin' is not at first place,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
to fix temporarily in this shell session run: 'rvm use ruby-1.9.3-p125'.
rvm rubies
=> ruby-1.9.3-p125 [ x86_64 ]
ruby-1.9.3-p194 [ x86_64 ]
* ruby-2.0.0-p247 [ x86_64 ]
# => - current
# =* - current && default
# * - default