我正在运行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呢?
更新
我解决了部分问题(或者说是所有问题):那个(或那些)问题与Phusion Passenger有关,它仍在加载由RVM管理的旧路径相关的Ruby版本。
/etc/rvmrc
,我不得不注销并重新登录用户以消除cd
消息(请参见原始帖子)。 - Niloct