RVM在升级Rubies时发出警告

时间:2013-11-22 18:34:52

标签: ruby rvm

我正在尝试通过ruby在我的系统(OSX 10.9)上升级RVM。当我通过RVM upgrade开始升级过程时,收到以下警告:

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文件配置不正确。

如何更正此警告?

1 个答案:

答案 0 :(得分:0)

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

要执行此操作(仅限您的用户个人资料),请将以下行添加到〜/ .bash_profile:

  1. PATH = / Users / compname / .rvm / gems / ruby​​-2.0.0-p0 / bin:$ PATH
  2. export PATH