2017-03-29 4 views
0

Ich hatte eine funktionierende RVM-Installation auf meinem MacOS-Rechner. Nach dem neuesten Upgrade auf Sierra begann ich diesen Fehler zu sehen, wenn ich RVM versuchen zu laufen:Falscher RVM-Standort in PATH mit neuem Benutzer auf macOS

cat: /Users/flast/.rvm/VERSION: No such file or directory 
Warning! PATH is not properly set up, '/Users/flast/.rvm/gems/ruby-2.0.0-p195/bin' is not at first place. 
     Usually this is caused by shell initialization files. Search for 'PATH=...' entries. 
     You can also re-add RVM to your profile by running: 'rvm get stable --auto-dotfiles'. 
     To fix it temporarily in this shell session run: 'rvm use ruby-2.0.0-p195'. 
     To ignore this error add rvm_silence_path_mismatch_check_flag=1 to your ~/.rvmrc file. 
-bash: /Users/flast/.rvm/scripts/base: No such file or directory 
-bash: /Users/flast/.rvm/scripts/help: No such file or directory 

Es gibt keine solche Datei oder das Verzeichnis als Benutzer „flast“ hat für eine Weile nicht existiert und es ist jetzt " erste.letzte ". Aber in meinem $ PATH ist es immer noch fordern „flast“

Hier ist, was in meinem PATH ist:

/usr/local/sbin 
/Library/Frameworks/Python.framework/Versions/3.5/bin 
/Users/flast/.rvm/gems/ruby-2.0.0-p195/bin 
/Users/flast/.rvm/gems/[email protected]/bin 
/Users/flast/.rvm/rubies/ruby-2.0.0-p195/bin 
/Users/flast/.rvm/bin 
/usr/local/bin 
/usr/bin 
/bin 
/usr/sbin 
/sbin 
/opt/X11/bin 
/usr/local/share/dotnet 
/usr/local/git/bin 
/Applications/Postgres.app/Contents/Versions/9.4/bin 
/Users/first.last/.rvm/bin 

Ich weiß nicht, wie die alten Einträge aus der Liste meiner PATH dauerhaft zu entfernen, und sogar Wenn ich meinen PATH für die aktuelle Sitzung manuell zurücksetze, erhalte ich immer noch den obigen Fehler, wenn ich RVM ausführe, auch wenn der alte Benutzerpfad in der PATH-Datei nicht vorhanden ist.

Hier ist ~/.bashrc

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

hier ist ~/.bash_profile

export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.4/bin 
[[ -s "/Users/first.last/.rvm/scripts/rvm" ]] && source "/Users/first.last/.rvm/scripts/rvm" 

# Setting PATH for Python 3.5 
# The orginal version is saved in .bash_profile.pysave 
PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}" 
export PATH 
export PATH="/usr/local/sbin:$PATH" 

Was mache ich falsch hier? Was muss getan werden, damit RVM weiß, wo es hinschauen muss?

+0

Überprüfen Sie auch '~/.profile' –

+0

Es gibt keine Datei bei ~/.profile – nick

+0

Offensichtlich _ _omething_ setzt den Pfad zu' flast'. ~/.bashrc, ~/.bash_profile und ~/.profile sind die wahrscheinlichsten Kandidaten. Welche Shell verwendest du? Was sagen "rvm info" und "gem env"? –

Antwort

0

der Pfad Stellt sich heraus, wurde durch

RVM in /Users/first.last/.rvm/environments gesetzt wird

Die erste Zeile in jeder der Umgebungsdateien wird

export PATH; PATH="/Users/flast/.rvm" ...yada yada 

dass I und Changed Immer noch die PATH-Warnung, aber RVM und alle enthaltenen Edelsteine ​​funktionieren wie erwartet.