How do I uninstall Ruby on Rails and do a clean install?

匆匆过客 提交于 2019-12-03 05:06:56

问题


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.

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


回答1:


Try this:

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

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

rvm implode

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.

Good luck!



来源:https://stackoverflow.com/questions/4581776/how-do-i-uninstall-ruby-on-rails-and-do-a-clean-install

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!