Ci-dessus ne fonctionne pas la première fois, les œuvres 2ème fois.
Essayez de mettre de version de ruby 2.0.0 pour tout nouveau shell de windows.
Faire
$ rvm use 2.0.0 --default
donne
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
Puis faire de même
$ rvm use 2.0.0 --default
maintenant donne pas d'erreur, c'est à dire
$ rvm use 2.0.0 --default
Using /home/durrantm/.rvm/gems/ruby-2.0.0-p247
durrantm.../durrantm$
mais les nouvelles fenêtres sont encore de me donner ruby 1.9.3, pas 2.0.0
Mon .bashrc
fichier:
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
[[ -s "/home/durrantm/.rvm/scripts/rvm" ]] && . "/home/durrantm/.rvm/scripts/rvm"
Mon .bash_profile a:
source ~/.profile
case $- in *i*) . ~/.bashrc;; esac
Essayer
rvm get stable
semble fonctionner, mais à la fin de beaucoup de vert sortie affiche:
Could not update RVM, get some help at #rvm IRC channel at freenode servers.
Un nouveau terminal de windows avec rvm list rubies
montre ceci:
$ 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