Ruby: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上运行rvm 1.6.9

最佳答案 他们是警告,而不是错误.我在我的ubuntu linux机箱上有类似的机箱(但在另一台机箱上没有,使用相同的RVM版本).所以,它与OSX没有密切关系.

您的RVM安装应该仍然有效.

点赞