2015-01-27 7 views
5

Continuo a ricevere questo errore ogni volta che apro il mio terminale:Attenzione: PATH impostato RVM ruby ​​ma GEM_HOME e/o GEM_PATH non impostato, vedi: https://github.com/wayneeseguin/rvm/issues/3212

Attenzione: PATH impostato RVM ruby ​​ma GEM_HOME e/o GEM_PATH non impostato, vedi: https://github.com/wayneeseguin/rvm/issues/3212

Questo ha cominciato ad accadere dopo che ho installato di recente zsh (oh-my-zsh)

non lo faccio sapere come impostare il percorso per GEM_HOME e/o GEM_PATH.

+1

Avete letto completamente la [documentazione di installazione RVM] (http://rvm.io/rvm/install)? Che dire di [Zsh] (http://rvm.io/integration/zsh/)? –

risposta

25

Sono anche affrontato lo stesso problema, cambiare la seguente riga nel .zshrc,

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

a

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

questo funziona per me.

Grazie

+2

Questa dovrebbe essere la risposta accettata. – Elliot

+0

Ha funzionato per me! –

0

oh-my-zsh & rvm & nvm

stesso problema, mi richiedere diversi giorni. Infine, commento solo le linee che sovrascrivono il PERCORSO e carica rvm e nvm nel mio file .zshrc. Tutti i problemi spariti.

Ecco il mio file .zshrc:


# User configuration 

# export PATH="$PATH:/Users/xxx/.rvm/gems/ruby-2.1.1/bin:/Users/xxx/.rvm/gems/[email protected]/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* 

Spero che sia utile!