【发布时间】:2011-11-18 06:50:24
【问题描述】:
我正在尝试在新机器上安装 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 rvm.beginrescueend.com/releases/rvm-install-latest )
-
@Nerian: 它开始下载,但是我得到这个错误:bash: line 1: html: No such file or directory bash: line 2: syntax error near unexpected token
<' 'ash: line 2:301 永久移动 -
我稍作修改,但我不断收到相同的警告:bash rvm.beginrescueend.com/releases/rvm-install-latest)
标签: ruby-on-rails ruby warnings rvm