Received Warning message “Path set to RVM” after updating ruby version using rvm

后端 未结 7 1887
南旧
南旧 2021-01-30 01:54

Recently I tried to update my ruby version due to a warning message (see below).

Now I get the following warning message when I start my iterm2:

Warning:         


        
相关标签:
7条回答
  • 2021-01-30 02:04

    Adding to @ymin's solution. For me, who ran rvm list and did not have a current ruby selected, needs to manually select a ruby ie. rvm use ruby-2.1.x, then fix zshrc path and run rvm get stable.

    0 讨论(0)
  • 2021-01-30 02:04

    As of Dec 19, 2014, sudo rvm shows these PATH warnings when the root user's default shell is not supported.

    In this case of running sudo rvm the solution is to use rvmsudo.

    0 讨论(0)
  • 2021-01-30 02:09

    same issue here, add code below into ~/.zshrc works for me.

    export GEM_HOME="$GEM_HOME:$HOME/.rvm/bin"
    export GEM_PATH="$GEM_PATH:$HOME/.rvm/bin"
    

    And then source ~/.zshrc.

    0 讨论(0)
  • 2021-01-30 02:22

    After adding [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" to the top of ~/.zshrc rather than the bottom I can confirm this has solved the issue for me.

    0 讨论(0)
  • 2021-01-30 02:23

    I had same issue with oh-my-zsh While installing rvm with option --rails, there was this warning:

    This solution works for me: Open .zshrc file, and find PATH line

    change

    export PATH=/path/to/something

    into

    export PATH="$PATH:/path/to/something"

    save it and do source ~/.zshrc, Then it worked.

    0 讨论(0)
  • 2021-01-30 02:27

    If you find a line after User configuration in the ~/.zshrc file like this:

    #export PATH="/Users/robinwen/.rvm/gems/ruby-1.9.3-p551@robin/bin:/Users/robinwen/.rvm/gems/ruby-1.9.3-p551@global/bin:/Users/robinwen/.rvm/rubies/ruby-1.9.3-p551/bin:/Users/robinwen/.rvm/bin:/usr/local/git/bin:/sw/bin:/usr/local/bin:/usr/local:/usr/local/sbin:/usr/local/mysql/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin/"

    You should comment this line, and add following line:

    export PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting

    Good luck!

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