Erste "Warnung! PATH ist nicht richtig eingerichtet “, wenn Sie rvm ausführen, verwenden Sie 2.0.0 --default
Oben funktioniert nicht beim ersten Mal, funktioniert beim zweiten Mal.
Versuchen Sie, die Ruby-Version für alle neuen Shell-Fenster auf 2.0.0 zu setzen.
Tun
$ rvm use 2.0.0 --default
gibt
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
Dann mache ich dasselbe
$ rvm use 2.0.0 --default
Jetzt gibt es keinen Fehler, d.h.
$ rvm use 2.0.0 --default
Using /home/durrantm/.rvm/gems/ruby-2.0.0-p247
durrantm.../durrantm$
Aber neue Fenster geben mir immer noch Ruby 1.9.3, nicht 2.0.0
Meine.bashrc
Datei enthält:
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
[[ -s "/home/durrantm/.rvm/scripts/rvm" ]] && . "/home/durrantm/.rvm/scripts/rvm"
Mein .bash_profile hat:
source ~/.profile
case $- in *i*) . ~/.bashrc;; esac
Versuchen
rvm get stable
scheint zu funktionieren, aber am Ende zeigt eine Menge grüner Ausgabe:
Could not update RVM, get some help at #rvm IRC channel at freenode servers.
Ein neues Terminalfenster mitrvm list rubies
zeigt dies:
$ 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