2011-05-17 83 views
4

完成后RVM的重装产生以下错误:红宝石:RVM安装错误“无法源......”

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

我重新安装后,我试图让RVM与TextMate的和RVM工作搏斗行为变得很奇怪(报告没有gemsets它会列出)所以我跑:

rvm implode 

...然后手动删除可执行文件。然后我跑了通过严格遵循single user instructions from the home site.

我发现错误后重新安装,我调查的路径,发现~/.rvm/scripts/~/.rvm/src/rvm/scripts/许多文件,显然不应该是可执行文件并没有执行权限。

RVM根本无法运行,所以我在两个目录中的所有文件上设置了可执行位,并且似乎有固定的东西。 (至少到目前为止)。

使用谷歌搜索,似乎其他人已经遇到了这个问题,但似乎没有解释或解决方案。我想知道这是否是已知问题,以及是否应该再次重新安装。

我在MacOS X 10.6.7

+0

今天我在Gentoo系统这个问题。我认为它是因为RVM足够让你通过Git安装;我敢打赌,在那里有一个不好的承诺。也许它使用标签;我不知道。安装过程很荒谬。 – alternative 2011-05-17 23:42:53

+0

在我的任何安装中,我都没有看到这个,但我没有必要做一个干净的安装一​​段时间,只有更新,这可能会掩盖问题。我建议从作者处反弹。您可以使用'rvm -v'找到他的联系信息。 – 2011-05-18 00:30:01

+1

“安装过程很荒谬。”怎么会这样?我运行bash命令并安装。 – 2011-05-18 00:31:45

回答

0

运行RVM 1.6.9他们警告,没有错误。我在我的Ubuntu的Linux机器上有类似的(但不是在另一个版本上,具有相同的RVM版本)。所以,这与OSX并不紧密相关。

无论如何,您的RVM安装应该工作。

+3

在我的书中,警告只是尚未发生的错误。但后来,我学会了在老派C编程,所以我很偏执。 ;-)我重新安装了rvm,现在看起来很好。 – TechZen 2011-06-03 18:06:43

+0

FWIW,我偶然发现了这个错误,并且实例没有工作。版本文件在安装稳定版本时安装,当直接安装不稳定版本时,该文件未创建。 – Smar 2017-07-26 12:21:16

1

是的。如果你已经安装了系统,它肯定会寻找系统配置......和一些硬编码的用户脚本。这很奇怪。

快速修复: LN -nfs在/ usr /本地/ RVM /Users/developer/.rvm

0

它看起来像所有你需要的是创建一个丢失的文件。

在你的终端类型:

touch /Users/developer/.rvm/scripts/version

touch /Users/developer/.rvm/scripts/base