I want to use ruby 2.3.4 for my rails application which I have installed using rvm on Ubuntu 16.04.
after using command rvm list.
rvm rubies =* ruby-2.3.4 [ x86_64 ] # => - current # =* - current && default # * - default
but when i use ruby -v I get.
ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux]
so I used rvm --default use 2.3.4.
which does change the version to 2.3.4 when I check using ruby -v but when I restart the terminal or system it changes back to 2.5.0
I want to know how to include 2.5.0 into rvm or remove it.
Check that .bash_profile contains below lines:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
Check .bashrc, .zshrc, .mkshrc file contains below lines at end of file:
export PATH="$PATH:$HOME/.rvm/bin"
if not then,
First Run below command then follow link to install rvm:
rm -rf ~/.rvm
RVM Install
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With