Ruby:RVM安装错误“无法提供..."; [英] Ruby: RVM Install Error "Could not source..."

查看:143
本文介绍了Ruby:RVM安装错误“无法提供...";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

重新安装RVM时会产生以下错误:

A reinstall of RVM produced the following errors when done:

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的行为变得奇怪(报告它没有列出的宝石),所以我跑了:

I reinstalled after I wrestled with trying to get RVM to work with Textmate and RVM behavior became strange (reporting it didn't have gemsets it would list) so I ran:

rvm implode

...,然后手动删除可执行文件.然后,我严格按照来自首页的单个用户说明进行运行.

... and then manually removed the executable. Then I ran the install again by scrupulously following the single user instructions from the home site.

发现错误后,我调查了路径,发现~/.rvm/scripts/~/.rvm/src/rvm/scripts/中的许多显然应该可执行的文件没有执行权限.

After I spotted the errors, I investigated the paths and found that many files in ~/.rvm/scripts/ and ~/.rvm/src/rvm/scripts/ which obviously should be executable did not have execute permissions.

RVM根本不会运行,因此我在两个目录中的所有文件上都设置了可执行位,这似乎有固定的问题. (至少到目前为止).

RVM would not run at all so I set the executable bit on all the files in the two directories and that seems to have fixed things. (So far at least.)

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

Googling, it seems that other people have hit this problem but there seems to be no explanation or resolution. I would like to find out if this is a known issue and whether I should reinstall yet again.

我正在MacOS X 10.6.7上运行rvm 1.6.9

I'm running rvm 1.6.9 on MacOS X 10.6.7

推荐答案

它们是警告,不是错误.我在ubuntu linux机器上安装了类似的产品(但在另一个具有相同RVM版本的机器上).因此,它与OSX没有严格的关系.

they are warnings, not errors. I've got similar ones on my ubuntu linux box (but not on another, with same RVM version). so, it's not strctly related to OSX.

您的RVM安装仍然可以正常工作.

your RVM installation should work anyway.

这篇关于Ruby:RVM安装错误“无法提供...";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆