How do I upgrade RVM when the official way doesn't work?

后端 未结 1 1998
离开以前
离开以前 2021-01-15 04:08

Namaste!

Wanting to check out the shiny new Rails 5.0, I bumped into an error saying I need to upgrade my Ruby version to a minimum 2.0.0 (my current version being

1条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-15 04:39

    Install RVM from scratch

    1) First remove the current version, see: https://stackoverflow.com/a/3558763/1076207

    # use sudo at your own discretion
    rvm implode --force
    gem uninstall rvm
    rm -rf ~/.rvm
    
    # open file
    vim ~/.bash_profile
    # remove lines:
    # [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
    # close file
    

    2) Follow the directions on the RVM install page: https://rvm.io/rvm/install

    0 讨论(0)
提交回复
热议问题