我不得不在今天下午重新安裝RVM,並且仍然在努力解決以下問題 - 當我加載一個新的終端窗口(iTerm2 Build 1.0.0.20130624
和zsh 4.3.9 (i386-apple-darwin10.0)
)時,rvm'忘記'我的寶石數據。我沒有正確使用rvm - '忘記'新會話信息
這是一個相當普遍的問題,但我試過的一切都沒有奏效。我已經做了this(省略create
作爲寶石已經取得):
rvm use --default [email protected]<gemset_name>
和this明顯,因爲我使用ZSH不起作用:
Command: /bin/bash --login
於是我試圖this ,專門爲ZSH,但沒有工作,要麼 - 在打開的iTerm我得到了以下錯誤:
## exec failed ##
argpath=/usr/local/bin/zsh error=No such file or directory
我改變了我的命令ň的iTerm喜好
~/.zlogin -l
,因爲我已經添加到了.zlogin
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
也沒有工作,引發此錯誤:
## exec failed ##
argpath=/Users/<username>/.zlogin error=Permission denied
所以我換了「登錄shell '返回到iTerm首選項中的""
(所以它會加載沒有錯誤),並在命令行中嘗試這樣做:
$ source $HOME/.rvm/scripts/rvm
這給了我
source: no such file or directory: /Users/<username>/.rvm/scripts/rvm
所以現在我真的很困惑。爲什麼我的~
目錄中沒有.rvm?
最後,這裏有rvm info
後重新開放的iTerm結果:
system:
system:
uname: "Darwin <users>-MacBook-Pro.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386"
system: "osx/10.6/i386"
bash: "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)"
zsh: "/bin/zsh => zsh 4.3.9 (i386-apple-darwin10.0)"
rvm:
version: "rvm 1.21.16() by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]"
updated: "3 hours 33 minutes 38 seconds ago"
path: "/usr/local/rvm"
homes:
gem: "not set"
ruby: "/usr/local/rvm/rubies/ruby-2.0.0-p247"
binaries:
ruby: "/usr/local/rvm/rubies/ruby-2.0.0-p247/bin/ruby"
irb: "/usr/local/rvm/rubies/ruby-2.0.0-p247/bin/irb"
gem: "/usr/local/rvm/rubies/ruby-2.0.0-p247/bin/gem"
rake: "/usr/local/rvm/gems/[email protected]/bin/rake"
environment:
PATH: "/usr/local/rvm/gems/[email protected]<gemset>/bin:/usr/local/rvm/gems/[email protected]/bin:/usr/local/rvm/rubies/ruby-2.0.0-p247/bin:/usr/local/rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin:/Users/<username>/.rvm/bin"
GEM_HOME: ""
GEM_PATH: ""
MY_RUBY_HOME: "/usr/local/rvm/rubies/ruby-2.0.0-p247"
IRBRC: "/usr/local/rvm/rubies/ruby-2.0.0-p247/.irbrc"
RUBYOPT: ""
gemset: ""
那拉要求混淆我多,其實 - 是說我應該在更新rvm之前完全刪除PATH ='行?另外,如果我有一個系統安裝,另一種選擇是什麼? – dax
添加一個可選的指令切換到用戶安裝 – mpapis
偉大的工作 - 我卸載的系統版本和安裝RVM用戶。 – dax