ruby – 卸载RVM时出现问题

前端之家收集整理的这篇文章主要介绍了ruby – 卸载RVM时出现问题前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在运行Ubuntu 10.04 Lucid,我可能错误地卸载了RVM,现在它的接缝没有从系统中完全删除.现在我想重新安装,但我遇到了麻烦.

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

  1. # Note that following command lines don't output the version
  2. # (between the word "version" and the word "is") as it should be.
  3.  
  4. $rvm
  5. $rvm -v
  6. > -bash: /usr/local/rvm/scripts/base: No such file or directory
  7. > A RVM version is installed yet 1.10.3 is loaded.
  8. > Please do one of the following:
  9. > * 'rvm reload'
  10. > * open a new shell
  11.  
  12.  
  13. # Even if I use the 'cd' command I have problems...
  14.  
  15. $cd ..
  16. > -bash: /usr/local/rvm/scripts/initialize: No such file or directory
  17. > -bash: /usr/local/rvm/scripts/hook: No such file or directory

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

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

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

UPDATE

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

解决方法

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

参见this.和where is everything installed to?

猜你在找的Ruby相关文章