How do I change my Ruby version using RVM?

前端 未结 13 1161
我寻月下人不归
我寻月下人不归 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:41

    The above solution will only work, if RVM is installed for the current user. A more general solution would use the RVM path variable:

    # The following code loads RVM as user or system install:
    [[ -s "$rvm_path/scripts/rvm" ]] && . "$rvm_path/scripts/rvm"
    

提交回复
热议问题