How to completely wipe rubygems along with rails etc


How to completely wipe rubygems along with rails etc



Ok, so I decided I'd be cool and try to use Rails3 that's in beta. Then, things were getting hard to manage so I got rvm. I installed ruby 1.9.2-head in rvm and things were working, and then a computer restart later rails wouldn't start up. So I figured I'd just try running the system ruby and start rails in it. same error. Then, I uninstalled rails3 and got rails: no such file or directory type errors..

So now I'm royally screwed because rails2 is still installed but will not uninstall because of invisible dependencies, along with a lot of other random gems. How do I completely clear out all ruby gems and such so I can start anew?


Cannot press QPushButton in a simple program

1:

Shared objects (.so) static linking and opening other shared object, is the static library code shared between them?
I've recently had to so just this. JBoss 4.0.5 startup takes 15 minutes deploying a single war fileI had built up alot of cruft with my system installed ruby and gems and wanted to clean all this out and move everything over to run under rvm for various projects.. Why the creators of Windows and Linux systems chose different ways to support Unicode?

1. ubuntu: sem_timedwait not waking (C)Clean up old and busted

First thing I did, before messing with rvm (or run rvm system to receive back to the system ruby), was to remove all my gems:. linux dot utility (with xhprof)
gem list | cut -d" " -f1 | xargs gem uninstall -aIx 
WARNING: this will uninstall all ruby gems. Do I need JDK or only JRE?If you installed as root you may want to switch to root and run this.. Methods of sending web-generated config files to servers and restarting services

2. Install new hotness

Now you must run gem list to see what is left.. Time to install rvm, I recomend blowing away your current install and reinstall fresh:.
rm -rf $HOME/.rvm bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) 
Now the real trick is to use gemsets to install rails 3, and this is easy if you follow Waynee Seguin's gist:.
rvm update --head rvm install 1.8.7 rvm --create use 1.8.7@rails3 curl -L http://rvm.beginrescueend.com/gemsets/rails3b3.gems -o rails3b3.gems  rvm gemset import rails3b3.gems 
One difference is I use 1.8.7 since I have had issues with 1.9.2-head and RSpec, although 1.8.7 has been smooth..

2:

You say this you already got Rails 2 and afterwards installed rvm. Try if you must remove Ruby and Rails using the package manager of your system (yum, apt, ...). The error you got is most likely the result a link in any universalplace which still exists, although is pointing to the real installation directory which no longer exists. . For example: /usr/bin/ruby exists and is pointing to /usr/local/lib/ruby/1.9.2/bin/ruby which no longer exists.. Afterwards manually clean out any Ruby and Rails related paths in /usr and its subdirectories..


54 out of 100 based on 39 user ratings 714 reviews

@