更新RVM以升级到ruby 2.0.0时出现问题

时间:2013-11-30 17:43:07

标签: ruby rvm

我正在尝试升级到ruby 2.0.0,我遇到了更新rvm的问题:

这是我第一次尝试更新为ruby-2.0.0 [-p353]的错误:

Error running 'requirements_smf_update_system ruby-2.0.0[-p353]',
please read /usr/local/rvm/log/1385828966_ruby-2.0.0[-p353]/update_system.log
Requirements installation failed with status: 1.

所以我试过了:

rvm get stable --auto-dotfiles

并收到以下警告:

Can not update 'scripts/extras/completion.zsh/_rvm', it's a conflict between Zsh 
and multiuser installation, prefix the command with 'rvmsudo' to update this file.

但它警告安装已完成。我跑的时候:

rvm usge:

我收到了这个警告:

Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-1.9.3-p194/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-1.9.3-p194'

我要走了一圈。我想读:

/usr/local/rvm/log/1385828966_ruby-2.0.0[-p353]/update_system.log

但我不知道在哪里找到它。我一定是用多用户而不是单个用户意外设置了rvm,但我不能确定,因为我习惯于设置教程。 有没有人有任何想法?
提前致谢。

1 个答案:

答案 0 :(得分:1)

ruby-2.0.0[-p353]中,括号[]表示可选,因此您可以写:

rvm install ruby-2.0.0

OR:

rvm install ruby-2.0.0-p353