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

前端 未结 16 991
不思量自难忘°
不思量自难忘° 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:57

    I ended up removing ~/.profile, ~/.bashrc and ~/.zshrc.

    Basically I only kept ~/.bash_profile on my mac. And it works.

    I think in my case, there are:

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

    in these files, and those duplicate settings confused rvm

提交回复
热议问题