Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Ruby uninstall and fresh install

Reply
Thread Tools

Ruby uninstall and fresh install

 
 
Shreyas Satish
Guest
Posts: n/a
 
      04-07-2010
Everything was working fine , until we decided to upgrade ruby to 1.8.7
from 1.8.6, and thats when all hell broke loose. When we compiled Ruby
1.8.7 from source it got installed into /usr/local/bin and Ruby 1.8.6
stayed in /usr/bin. Currently, we've uninstalled ruby 1.8.6 and by some
stroke we deleted the ruby 1.8.7 files from /usr/local.

when we try "which ruby" it points to /usr/local. If anybody could help
us out what we need to do get back on track , we would be very
grateful.and also any idea how we can uninstall ruby from /usr/local. we
tried yum remove ruby , which removed ruby from /usr/bin.Thanks and
Cheers !
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Brian Candler
Guest
Posts: n/a
 
      04-07-2010
Shreyas Satish wrote:
> when we try "which ruby" it points to /usr/local.


In some shells, "rehash" will do what you want, but otherwise just
logout and login again.

> and also any idea how we can uninstall ruby from /usr/local.


Just remove the files. For example, use

ls -lrt /usr/local/bin

to see which files were installed in that directory with the same
timestamp and are probably parts of ruby, then delete them: e.g.

rm /usr/local/bin/{ruby,erb,irb,testrb}

Then check under the rest of /usr/local:

ls -lrtR /usr/local

Probably you will need:

rm -rf /usr/local/lib/ruby

rm -rf /usr/local/lib/libruby*

Maybe a few stragglers in /usr/local/man, /usr/local/share/doc etc
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
'make uninstall' - manual uninstall DBD::Oracle; fix perllocal.pod Am Nym Perl Misc 4 05-21-2012 01:58 PM
Smart Client Install/Uninstall broken - Not able to Uninstall Rahul ASP .Net Web Services 0 04-24-2008 10:59 AM
Preferable to do fresh install of v1.5? S.Rodgers Firefox 2 12-12-2005 12:20 AM
Is there a way to save my programs and still do a fresh install of winxp . Chuck S Computer Support 1 01-06-2004 01:50 PM
BSOD on WinXP Fresh Install Anonymous Computer Support 1 07-06-2003 08:18 PM



Advertisments