ऊपर पहली बार काम नहीं करता है, 2 बार काम करता है।
किसी भी नई शेल विंडो के लिए रूबी संस्करण 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$
लेकिन नई खिड़कियां मुझे अभी भी रूबी 1.9.3 दे रही हैं, 2.0.0 को नहीं
मेरी .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
~/.bashrc,~/.bash_profileचल रहा है,rvm get stable --auto-dotfilesफिर से जाँच~/.bashrc,~/.bash_profileहै, और~/.profileकई बार ... क्या यह उत्तर अंत में यह तय! भागा:rvm resetऔर यह चेतावनी से छुटकारा मिल गया! (IMHO ... आरवीएम रास्ते में सबसे पहले होने के बारे में बहुत ही बारीक है ... अगर मैं अपने रास्ते में कुछ और सेट करता हूं तो मुझे पता है कि मैं क्या कर रहा हूं)