How do I change my Ruby version using RVM?

前端 未结 13 1179
我寻月下人不归
我寻月下人不归 2020-12-02 04:49

I am not able to switch the current Ruby version:

➜  ~  rvm list

rvm rubies

   ruby-1.9.2-p290 [ x86_64 ]
   ruby-1.9.3-p0 [ x86_64 ]

➜  ~  rvm use ruby-1         


        
13条回答
  •  感动是毒
    2020-12-02 05:42

    To add all RVM functionality to your .bash_profile you should use following command:

    echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
    

    After that you should reload the current shell or open a new terminal session and type the following command to reload .bash_profile:

    source .bash_profile
    

提交回复
热议问题