我在尝试安装RVM时为什么会收到警告?

时间:2011-05-22 10:38:09

标签: ruby-on-rails ruby warnings rvm

我正在尝试在新机器上安装RVM。我以前做过,然后就好了。但现在我不断收到这些错误:

WARNING:
      Could not source '/Users/anders/.rvm/scripts/base' as file does not exist.
      RVM will likely not work as expected.
WARNING:
      Could not source '/Users/anders/.rvm/scripts/version' as file does not exist.
      RVM will likely not work as expected.
WARNING:
      Could not source '/Users/anders/.rvm/scripts/selector' as file does not exist.
      RVM will likely not work as expected.
WARNING:
      Could not source '/Users/anders/.rvm/scripts/cd' as file does not exist.
      RVM will likely not work as expected.
WARNING:
      Could not source '/Users/anders.rvm/scripts/cli' as file does not exist.
      RVM will likely not work as expected.
WARNING:
      Could not source '/Users/anders/.rvm/scripts/override_gem' as file does not exist.
      RVM will likely not work as expected.
cat: /Users/anders/.rvm/VERSION: No such file or directory
/Users/anders/.rvm/src/rvm/scripts/rvm: line 133: __rvm_conditionally_add_bin_path:      
command not found

我按照https://rvm.beginrescueend.com/rvm/install/上的步骤操作,但它不起作用。

我用过:

bash < <(curl -s https://rvm.beginrescueend.com/install/rvm) 

安装时,我不是以root身份运行,也不是使用sudo

我还将其添加到我的.bash_profile文件中:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"

我检查了“抱怨”文件确实存在,所以我猜这是一个许可的事情。任何有关如何解决这个问题的提示将不胜感激。

1 个答案:

答案 0 :(得分:3)

运行rvm notes并检查输出。确保已安装操作系统依赖项。