rvm环境负载

时间:2012-02-11 12:21:59

标签: ruby-on-rails linux rvm zsh

我需要写什么来修复我的环境? (当我将[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"放入.zshenv文件的顶部并且.zshrc文件没有发生时

-> % rails
zsh: correct 'rails' to 'tail' [nyae]? %
sky7@hi7sky [03:09:14] [~] 
-> % rvm reload
RVM reloaded!
sky7@hi7sky [03:09:17] [~] 
-> % rails --version
Rails 3.2.1

我该如何解决? THX

更多信息:

$ diff before_reload_env after_reload_env 
15c15
< PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/var/lib/gems/1.8/bin:/home/sky7/.rvm/bin
---
> PATH=/home/sky7/.rvm/gems/ruby-1.9.3-head@edge/bin:/home/sky7/.rvm/gems/ruby-1.9.3-head@global/bin:/home/sky7/.rvm/rubies/ruby-1.9.3-head/bin:/home/sky7/.rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/var/lib/gems/1.8/bin:/home/sky7/.rvm/bin
82a83,85
> rvm_ruby_string=ruby-1.9.3-head
> rvm_env_string=ruby-1.9.3-head@edge
> __rvm_env_loaded=-1

2 个答案:

答案 0 :(得分:1)

修复初始化文件使用:

rvm get head --auto

然后请务必阅读:

答案 1 :(得分:0)

您是否尝试重装外壳? source ~/.zshrc。如果这不起作用,请尝试打开一个新的终端选项卡或窗口,看看你的rvm环境现在是否已加载。