I followed the instructions and here is the output.
vagrant@vagrant-ubuntu-trusty-64:~$ rbenv install 2.3.0
Downloading ruby-2.3.0.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.0.tar.bz2
Installing ruby-2.3.0...
Installed ruby-2.3.0 to /home/vagrant/.rbenv/versions/2.3.0
vagrant@vagrant-ubuntu-trusty-64:~$ ruby -v
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
vagrant@vagrant-ubuntu-trusty-64:~$ rbenv local 2.3.0
vagrant@vagrant-ubuntu-trusty-64:~$ ruby -v
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
vagrant@vagrant-ubuntu-trusty-64:~$ rbenv which ruby
/home/vagrant/.rbenv/versions/2.3.0/bin/ruby
vagrant@vagrant-ubuntu-trusty-64:~$ ruby -v
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
as you could see, the ruby is not 2.3.0 but 1.9.3[system]
eventually, I notice my .bashrc
export PATH="$HOME/.rbenv/bin:$PATH"
and according to the README, the path should contain '~/.rbenv/shims'. Therefore, I add it to the PATH in .bashrc
export PATH="$HOME/.rbenv/bin:~/.rbenv/shims:$PATH"
and rbenv is working again.
Therefore, I suggest to revise Installation/Step2 to export the path as above. Thank you.
Reactions are currently unavailable
I followed the instructions and here is the output.
as you could see, the ruby is not 2.3.0 but 1.9.3[system]
eventually, I notice my .bashrc
and according to the README, the path should contain '~/.rbenv/shims'. Therefore, I add it to the PATH in .bashrc
and rbenv is working again.
Therefore, I suggest to revise Installation/Step2 to export the path as above. Thank you.