2011-05-22 157 views
3

我试图在新机器上安装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" 

我检查和“抱怨”文件确实存在,所以我想这是一个权限的事情。任何提示如何解决这个问题将不胜感激。

+0

如果你尝试这样做会发生什么?:bash <<(curl http://rvm.beginrescueend.com/releases/rvm-install-latest) – Nerian 2011-05-22 13:59:51

+0

@Nerian:它开始下载,但后来我得到这个错误:bash :线路1:HTML:没有这样的文件或目录 击:第2行:附近意外的标记语法错误'<“ ”灰:第2行:' 301永久移动 Anders 2011-05-22 15:47:18

+0

我修改了它稍微但我不断收到相同的警告:bash <<(curl -s https://rvm.beginrescueend.com/releases/rvm-install-latest) – Anders 2011-05-22 15:57:45

回答

3

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

+0

嗨,我现在开始工作。我按照你的说法运行了rvm笔记,并发现Snow Leopard安装DVD中的xcode有bug。我试图从developer.apple.com安装xcode,删除旧版本,但后来我得到了相同的警告。然后我做了一个干净的操作系统安装(可能矫枉过正),从安装DVD中跳过xcode从developer.apple.com(和git等)下载它,现在它工作。在安装之前卸载旧的xcode版本可能就足够了,但无论如何,谢谢! – Anders 2011-05-23 07:18:14

相关问题