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

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

    I have found this command to be very usefull. It solve my case. So if anyone is having the same issue, give this a try: rvm get stable --auto-dotfiles

    0 讨论(0)
  • 2020-12-02 05:07

    Maybe is not the best way to resolve this, but I added this line at the botton of my .zshrc (it will work in .bashrc too!)

    export PATH="$GEM_HOME/bin:$PATH"
    
    0 讨论(0)
  • 2020-12-02 05:07

    You can add

    rvm_silence_path_mismatch_check_flag=1
    

    to your ~/.rvmrc file. That's what the warning message now suggests.

    0 讨论(0)
  • 2020-12-02 05:09

    I tried Michael Durrant's solution and it didn't work for me. but I ran rvm get stable --auto-dotfiles and it began working as desired.

    Hope it helps

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