加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby – 卸载RVM时出现问题

发布时间:2020-12-16 19:19:16 所属栏目:百科 来源:网络整理
导读:我正在运行Ubuntu 10.04 Lucid,我可能错误地卸载了RVM,现在它的接缝没有从系统中完全删除.现在我想重新安装,但我遇到了麻烦. 当我尝试执行某些命令行时,会发生奇怪的输出: # Note that following command lines don't output the version# (between the wor
我正在运行Ubuntu 10.04 Lucid,我可能错误地卸载了RVM,现在它的接缝没有从系统中完全删除.现在我想重新安装,但我遇到了麻烦.

当我尝试执行某些命令行时,会发生奇怪的输出:

# Note that following command lines don't output the version
# (between the word "version" and the word "is") as it should be.

$rvm
$rvm -v
> -bash: /usr/local/rvm/scripts/base: No such file or directory
> A RVM version  is installed yet 1.10.3 is loaded.
>  Please do one of the following:
>   * 'rvm reload'
>   * open a new shell


# Even if I use the 'cd' command I have problems...

$cd ..
> -bash: /usr/local/rvm/scripts/initialize: No such file or directory
> -bash: /usr/local/rvm/scripts/hook: No such file or directory

这可能意味着即使Ruby接口也在运行,也无法正确删除RVM:

$which ruby
/usr/local/bin/ruby
$ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux]

那么,我可以做些什么来彻底删除/卸载RVM?

UPDATE

我解决了部分问题(或者,也许是所有问题):那些(那些)与Phusion Passenger有关,它仍在加载与RVM管理的Ruby版本相关的旧路径.

解决方法

RVM installs everything into ~/.rvm. To remove RVM from your system run 'rm -rf ~/.rvm'.

参见this.和where is everything installed to?

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读