ruby-on-rails - 从 UBUNTU 14.0.4 LTS 卸载 Ruby 时出错

标签 ruby-on-rails ruby ubuntu ubuntu-14.04 uninstallation

我在安装 Ruby 时犯了一些错误,现在我尝试卸载它 ( How to remove ruby from ubuntu ),但出现以下错误。我尝试使用 sudo apt-get purge ruby​​ 但仍然无法卸载。它显示 ruby​​ 尚未安装,但我检查并确认它安装在位置 /usr/local/bin/ruby 中。请帮我从我的机器上卸载 Ruby 和 RVM。

$ ruby -v
ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]

$ sudo apt-get purge ruby 1.8.7
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libhdf5-mpich2-1.8.7' for regex '1.8.7'
Note, selecting 'libhdf5-1.8.7' for regex '1.8.7'
Note, selecting 'libghc-utility-ht-prof-0.0.5.1-87764' for regex '1.8.7'
Note, selecting 'libhdf5-openmpi-1.8.7' for regex '1.8.7'
Note, selecting 'libhdf5-serial-1.8.7' for regex '1.8.7'
Note, selecting 'libghc-utility-ht-dev-0.0.5.1-87764' for regex '1.8.7'
Note, selecting 'libghc-utility-ht-dev' instead of 'libghc-utility-ht-dev-0.0.5.1-87764'
Note, selecting 'libghc-utility-ht-prof' instead of 'libghc-utility-ht-prof-0.0.5.1-87764'
Package 'libhdf5-1.8.7' is not installed, so not removed
Package 'libhdf5-serial-1.8.7' is not installed, so not removed
Package 'libhdf5-mpich2-1.8.7' is not installed, so not removed
Package 'libhdf5-openmpi-1.8.7' is not installed, so not removed
Package 'ruby' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 567 not upgraded.

最佳答案

如果您使用的是rvm,那么您可以使用以下命令卸载ruby 1.8.7

rvm unistall 1.8.7

然后使用命令卸载rvm

rvm implode

关于ruby-on-rails - 从 UBUNTU 14.0.4 LTS 卸载 Ruby 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30775815/

相关文章:

ruby-on-rails - 如何通过seed.rb 添加Friendly-id slug?

linux - upstart - chdir 不识别变量

Apache 配置问题

linux - 如何使用 | 获取多个信息grep?

ruby - 加载错误 : cannot load such file -- directory/file_name

arrays - 添加多维数组的值

ruby-on-rails - Rails 参数到数组

css - rails : Can't add CSS class from variable in link_to

ruby-on-rails - Rails Devise 和 ActiveAdmin 单模型路由

ruby-on-rails - 如果下一个不存在,Ruby 数组重复值,