2013-11-22 41 views
1

我正尝试通过RVM在我的系统(OSX 10.9)上升级ruby。由于我通过启动升级过程:RVM upgrade,我收到以下警告:RVM在升级红宝石时发出警告

Warning! PATH is not properly set up, '/Users/compname/.rvm/gems/ruby-2.0.0-p0/bin' is not at first place, 
     usually this is caused by shell initialization files - check them for 'PATH=...' entries, 
     it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles', 
     to fix temporarily in this shell session run: 'rvm use ruby-2.0.0-p0'. 

这一警告使我想到我的dot文件没有正确配置。

如何更正此警告?

+0

确保阅读邮件,通常它只是一个简单的PATH =覆盖rvm设置的'PATH' – mpapis

回答

0

看起来你需要“/Users/compname/.rvm/gems/ruby-2.0.0-p0/bin”添加到您的$ PATH环境变量:)

要做到这一点的开始(仅适用于用户配置文件),添加以下几行到〜/ .bash_profile:

  1. PATH = /用户/ COMPNAME/.rvm /宝石/红宝石2.0.0-P0 /斌:$ PATH
  2. export PATH