【问题标题】:Why am I getting warnings when I'm trying to install RVM?为什么我在尝试安装 RVM 时会收到警告?
【发布时间】: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 &lt;' 'ash: line 2: 301 永久移动
  • 我稍作修改,但我不断收到相同的警告:bash rvm.beginrescueend.com/releases/rvm-install-latest)

标签: ruby-on-rails ruby warnings rvm


【解决方案1】:

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

【讨论】:

  • 嗨,我现在开始工作了。正如你所说,我运行了 rvm notes,发现 Snow Leopard install dvd 中的 xcode 有错误。我试图从 developer.apple.com 安装 xcode,但不删除旧版本,但后来我得到了同样的警告。然后我做了一个干净的操作系统安装(可能是矫枉过正),从安装 dvd 中跳过了 xcode,从 developer.apple.com(和 git 等)下载了它,现在它可以工作了。在安装之前卸载旧的 xcode 版本可能就足够了,但无论如何,谢谢!
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-10-28
  • 1970-01-01
  • 1970-01-01
  • 2021-07-30
  • 2010-10-27
  • 1970-01-01
相关资源
最近更新 更多