如何卸载Ruby on Rails并进行全新安装? [英] How do I uninstall Ruby on Rails and do a clean install?

查看:268
本文介绍了如何卸载Ruby on Rails并进行全新安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在关注Rails教程.我在RVM上遇到版本问题,并且收到很多错误.我想从Ruby,Rails,Gemfiles等的干净版本开始.

I'm following a Rails tutorial. I'm having version problems with RVM and am getting lots of errors. I would like to start over with a clean version of Ruby, Rails, Gemfiles, etc.

有人可以给我一些有关如何卸载我的Ruby-on-Rails环境的简短说明吗?

Can anyone give me some brief instructions on how to uninstall my Ruby-on-Rails environment?

推荐答案

尝试一下:

rvm get head
rvm reset
rvm remove ... # take the output of rvm list and do rvm remove for each item in the list
rvm cleanup
rvm repair
rvm notes # make sure that you've got all the dependencies mentioned in the output from this command
rvm install ... # reinstall your rubies

这可能是矫kill过正,但是它应该使您接近已知的良好配置.如果没有,请尝试:

This is likely overkill, but it should get you close to a known-good configuration. If it doesn't, try:

rvm implode

这将完全删除RVM,您可以从头开始.

That will completely remove RVM and you can start over from scratch.

如果这些都不起作用,或者您仍然感到困惑,请在此处粘贴一些错误消息,并详细说明您的操作系统和配置详细信息.

If none of this works or you are still confused, paste some of the error messages here and tell more about your operating system and configuration details.

祝你好运!

这篇关于如何卸载Ruby on Rails并进行全新安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆