Warning: PATH is installed on ruby ​​RVM, but GEM_HOME and / or GEM_PATH are not installed, see https://github.com/wayneeseguin/rvm/issues/3212

I constantly get this error every time I open a terminal:

Warning: PATH is installed in ruby ​​RVM, but GEM_HOME and / or GEM_PATH are not installed, see https://github.com/wayneeseguin/rvm/issues/3212

It started after I recently installed zsh (oh-my-zsh)

I do not know how to set the path to GEM_HOME and / or GEM_PATH.

+5
source share
2 answers

I also ran into the same problem by changing the following line in .zshrc,

export PATH="/usr/local/heroku/bin: .........." 

to

 export PATH="$PATH:/usr/local/heroku/bin: .........." 

it works for me.

thanks

+25
source

oh-my-zsh and rvm and nvm

Same problem, take me a few days. Finally, I just comment out the lines overriding PATH and load rvm and nvm into a .zshrc file. All problems are gone.

Here is my .zshrc file:

 # User configuration # export PATH="$PATH:/Users/xxx/.rvm/gems/ruby-2.1.1/bin:/Users/xxx/.rvm/gems/ ruby-2.1.1@global /bin:/Users/xxx/.rvm/rubies/ruby-2.1.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/xxx/.rvm/bin" # export MANPATH="/usr/local/man:$MANPATH" source $ZSH/oh-my-zsh.sh export NVM_DIR="/Users/xxx/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* 

Hope this is helpful!

0
source

Source: https://habr.com/ru/post/1211972/


All Articles