Ruby 卸载RVM时遇到的问题
我运行的是Ubuntu10.04Lucid,卸载RVM可能是错误的,现在它还没有完全从系统中删除。现在我想再次安装,但我有麻烦了 当我尝试执行一些命令行时,会产生奇怪的输出:Ruby 卸载RVM时遇到的问题,ruby,rubygems,rvm,uninstallation,Ruby,Rubygems,Rvm,Uninstallation,我运行的是Ubuntu10.04Lucid,卸载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/lo
# 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 seams也在运行,RVM也没有正确移除:
$ which ruby
/usr/local/bin/ruby
$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux]
因此,我能做些什么来完全删除/卸载RVM?
更新 我解决了部分问题(或者,可能是所有问题):这些问题与Phusion Passenger有关,Phusion Passenger仍在加载与RVM管理的Ruby版本相关的旧路径
RVM installs everything into ~/.rvm. To remove RVM from your system run 'rm -rf ~/.rvm'.
参考。和首先尝试
echo$rvm_path
-如果显示任何内容-rm-rf
it
第二:
sudo rm -rf /ust/local/rvm /etc/rvmrc /etc/profile.d/rvm.sh ~/.rvm*
下一步检查ls-l/usr/local/bin | grep rvm
这将显示指向rvm-rm-rf
的链接
以及最后一个
哪个rvm
-如果它显示任何内容,请尝试检查此路径并至少删除此文件。来自rvm帮助
:
implode - (seppuku) removes the rvm installation completely.
This means everything in $rvm_path (~/.rvm || /usr/local/rvm).
This does not touch your profiles. However, this means that you
must manually clean up your profiles and remove the lines which source RVM.
根据$PATH
判断,您还可以(或者)删除以下所有文件和目录:
/usr/local/rvm
/etc/rvmrc
/etc/profile.d/rvm.sh
环境:路径:“/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/usr/games:/usr/local/rvm/bin”
。现在,如何卸下RVM?RVM安装不正确。尝试重新启动系统并重新安装rvm。如果您将您的rvm列表和rvm信息放在此处,将有所帮助。+1表示/etc/rvmrc,我必须注销并登录用户,以使cd
消息(请参见OP)消失。