我试图在新机器上安装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"
我检查和“抱怨”文件确实存在,所以我想这是一个权限的事情。任何提示如何解决这个问题将不胜感激。
如果你尝试这样做会发生什么?:bash <<(curl http://rvm.beginrescueend.com/releases/rvm-install-latest) – Nerian 2011-05-22 13:59:51
@Nerian:它开始下载,但后来我得到这个错误:bash :线路1:HTML:没有这样的文件或目录 击:第2行:附近意外的标记语法错误'<“ ”灰:第2行:'
我修改了它稍微但我不断收到相同的警告:bash <<(curl -s https://rvm.beginrescueend.com/releases/rvm-install-latest) – Anders 2011-05-22 15:57:45