How do I uninstall Ruby on Rails and do a clean install?
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!
Uninstall Ruby on Rails, Ruby and RVM
You still have the system installed Ruby. Try to remove it from the package manager.
Try to get the path of your Ruby with:
which ruby
and if you use an RPM distribution you can see the package by issuing:
rpm -qf /path/to/ruby
or
dpkg-query -S /path/to/ruby
In case of a deb packages.
How to uninstall Ruby from /usr/local?
It's not a good idea to uninstall 1.8.6 if it's in /usr/bin
. That is owned by the OS and is expected to be there.
If you put /usr/local/bin
in your PATH before /usr/bin
then things you have installed in /usr/local/bin
will be found before any with the same name in /usr/bin
, effectively overwriting or updating them, without actually doing so. You can still reach them by explicitly using /usr/bin
in your #! interpreter invocation line at the top of your code.
@Anurag recommended using RVM, which I'll second. I use it to manage 1.8.7 and 1.9.1 in addition to the OS's 1.8.6.
Remove older versions of Ruby (on Windows)
This isn't the answer you're looking for, but hopefully will help you in the future. You can use Pik on Windows (as opposed to RVM on Linux/Mac) to manage multiple concurrent versions of Ruby on the same development environment.
http://github.com/vertiginous/pik/
Related Topics
Resque Multiple Workers in Development Mode
Can't Convert Fixnum to String During Rake Db:Create
Rails: Your User Account Isn't Allowed to Install to the System Rubygems
Starting or Restarting Unicorn with Capistrano 3.X
Generate a Migration File from Schema.Rb
Rails 4.2 - Sidekiq Not Sending Emails in Development
Get Substring After the First = Symbol in Ruby
How to Generate the First N Prime Numbers
Ruby Method Like 'Self' That Refers to Instance
Package Ruby to a Standalone MAC Os X Application
Rails Generate Has_Many Association
How to Sort a Hash by Value in Descending Order and Output a Hash in Ruby
Rails Console Running Incredibly Slowly When Editing Text
Ruby on Rails, Two Models in One Form
Instance and Class Variables in Rails Controller
Library Not Loaded: /Usr/Local/Opt/Readline/Lib/Libreadline.6.Dylib (Loaderror)