Getting “Warning! PATH is not properly set up” when doing rvm use 2.0.0 --default

前端 未结 16 1023
不思量自难忘°
不思量自难忘° 2020-12-02 04:35

Above doesn\'t work first time, works 2nd time.

Try to set ruby version to 2.0.0 for any new shell windows.

Doing

$ rvm use 2.0.0 --default
<         


        
16条回答
  •  一向
    一向 (楼主)
    2020-12-02 04:53

    The answer was to put this:

    [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" 
    # Load RVM into a shell session *as a function*
    

    **at the BOTTOM** (last line - important!) of my .bashrc file. I had it in my .bash_profile file (I am on Ubuntu) and that only partially worked leading to the confusing errors.

提交回复
热议问题