Why doesn't installing Ruby with rbenv?

I followed this guide: http://samsoff.es/posts/how-to-install-ruby-193

I typed rbenv install 1.9.3-p125in the console.

Ruby installs OK, but when I start ruby -vit still says version 1.8.7.

What needs to be changed for its work?

+3
source share
4 answers

The solution was to add eval "$(rbenv init -)"bash_login to my file.

+3
source

You need to switch to the new version in one of three ways:

  • temporarily: rbenv shell 1.9.3-p125install the .rbenv version file in
  • current directory: rbenv local 1.9.3-p125set default value
  • for your user: rbenv global 1.9.3-p125
+1
source

rbenv, ruby-build.

+1

, rbenv

$exec $SHEL
  $ ruby ​​-v

ruby ​​1.9.3p194 (2012-04-20 35410) [i686-linux]

0

All Articles