Uninstalling Ruby 1.8.7 Help

This is a discussion on Uninstalling Ruby 1.8.7 Help within the RUBY forums in Programming Languages category; Hi Guys, I have run into a bind, and need to manually uninstall Ruby 1.8.7 from /usr/local, but I'm not sure exactly what to delete. Im running OS X Leopard and installed Ruby there so to not overwrite my system Ruby installation but now 1.8.7 doesn't see any installed gems or anything and I think I may have screwed it up while I was installing it :/ So my question is, what exactly do I remove? I know /usr/local/bin/ruby, /usr/local/bin/irb need to go, but I'm unsure about /usr/local/lib/ruby* Any help is greatly appreciated! -- Posted via http://www.ruby-forum.com/ ....

Go Back   Application Development Forum > Programming Languages > RUBY

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-26-2008, 03:49 AM
Chris Brand
Guest
 
Default Uninstalling Ruby 1.8.7 Help

Hi Guys,

I have run into a bind, and need to manually uninstall Ruby 1.8.7 from
/usr/local, but I'm not sure exactly what to delete.

Im running OS X Leopard and installed Ruby there so to not overwrite my
system Ruby installation but now 1.8.7 doesn't see any installed gems or
anything and I think I may have screwed it up while I was installing it
:/

So my question is, what exactly do I remove? I know
/usr/local/bin/ruby, /usr/local/bin/irb need to go, but I'm unsure about
/usr/local/lib/ruby*

Any help is greatly appreciated!
--
Posted via http://www.ruby-forum.com/.

Reply With Quote
  #2  
Old 08-26-2008, 01:39 PM
matt neuburg
Guest
 
Default Re: Uninstalling Ruby 1.8.7 Help

Chris Brand <brandch@gmail.com> wrote:

> Hi Guys,
>
> I have run into a bind, and need to manually uninstall Ruby 1.8.7 from
> /usr/local, but I'm not sure exactly what to delete.
>
> Im running OS X Leopard and installed Ruby there so to not overwrite my
> system Ruby installation but now 1.8.7 doesn't see any installed gems or
> anything and I think I may have screwed it up while I was installing it
> :/
>
> So my question is, what exactly do I remove? I know
> /usr/local/bin/ruby, /usr/local/bin/irb need to go, but I'm unsure about
> /usr/local/lib/ruby*
>
> Any help is greatly appreciated!


(1) You are on Leopard. You have Time Machine. Next time, just do a
snapshot before installing. Then to roll back you can just, uh, roll
back!

(2) If it is in /usr/local it is NOT part of the default ruby
installation and deleting it can do no harm thereto.

(3) Before uninstalling you might ask yourself what went wrong - or
whether, indeed, anything did go wrong. Did you do a new install of
rubygems into the right place? There's a good article here on installing
a second ruby on Leopard:

http://hivelogic.com/articles/2008/0...-rails-leopard

m.
--
matt neuburg, phd = matt@tidbits.com, http://www.tidbits.com/matt/
Leopard - http://www.takecontrolbooks.com/leop...stomizing.html
AppleScript - http://www.amazon.com/gp/product/0596102119
Read TidBITS! It's free and smart. http://www.tidbits.com
Reply With Quote
  #3  
Old 08-26-2008, 02:18 PM
Gaspard Bucher
Guest
 
Default Re: Uninstalling Ruby 1.8.7 Help

[Note: parts of this message were removed to make it a legal post.]

Just a side note.

I had to reinstall all ruby and dependencies. I chose the macports
route and it went like a breeze:

# sudo port install ruby
# sudo port install rb-rubygems
# sudo gem install ...

Everything lives in /opt/local and if I want, I can just "rm -rf /opt/
local" and it's all gone.

Just add "/opt/local/bin" to the beginning of your path
export PATH=/opt/local/bin:/opt/local/sbin:$PATH

Gaspard
> Hi Guys,
>
> I have run into a bind, and need to manually uninstall Ruby 1.8.7 from
> /usr/local, but I'm not sure exactly what to delete.
>
> Im running OS X Leopard and installed Ruby there so to not overwrite
> my
> system Ruby installation but now 1.8.7 doesn't see any installed
> gems or
> anything and I think I may have screwed it up while I was installing
> it
> :/
>
> So my question is, what exactly do I remove? I know
> /usr/local/bin/ruby, /usr/local/bin/irb need to go, but I'm unsure
> about
> /usr/local/lib/ruby*
>
> Any help is greatly appreciated!
> --
> Posted via http://www.ruby-forum.com/.
>



Reply With Quote
  #4  
Old 08-26-2008, 04:14 PM
Chris Brand
Guest
 
Default Re: Uninstalling Ruby 1.8.7 Help

Thanks for the responses, I actually picked through it this morning, and
got it taken care of.

I did install ruby gems after installing 1.8.7, and subsequently
installed gems with that version; nothing was working

Thanks for that link about installing a second version of ruby on Leo!
I'm going to go that route because I already have 'git' and a few other
things installed to /opt/local via macports that I wouldn't want to
erase if something went wrong .

[ Chris ]

--
Posted via http://www.ruby-forum.com/.

Reply With Quote
  #5  
Old 08-27-2008, 07:04 PM
Bernard Kenik
Guest
 
Default Re: Uninstalling Ruby 1.8.7 Help

Chris Brand wrote:
> Thanks for the responses, I actually picked through it this morning, and
> got it taken care of.
>
> I did install ruby gems after installing 1.8.7, and subsequently
> installed gems with that version; nothing was working
>
> Thanks for that link about installing a second version of ruby on Leo!
> I'm going to go that route because I already have 'git' and a few other
> things installed to /opt/local via macports that I wouldn't want to
> erase if something went wrong .
>
> [ Chris ]


The one thing you must do, is to modify your $PATH, /usr/local/bin
must appear prior to /usr/bin.
Refer to the hivelogic link mentioned by Matt Neuberg

--
Posted via http://www.ruby-forum.com/.

Reply With Quote
  #6  
Old 08-27-2008, 07:42 PM
Chris Brand
Guest
 
Default Re: Uninstalling Ruby 1.8.7 Help

Bernard Kenik wrote:
> Chris Brand wrote:
>> Thanks for the responses, I actually picked through it this morning, and
>> got it taken care of.
>>
>> I did install ruby gems after installing 1.8.7, and subsequently
>> installed gems with that version; nothing was working
>>
>> Thanks for that link about installing a second version of ruby on Leo!
>> I'm going to go that route because I already have 'git' and a few other
>> things installed to /opt/local via macports that I wouldn't want to
>> erase if something went wrong .
>>
>> [ Chris ]

>
> The one thing you must do, is to modify your $PATH, /usr/local/bin
> must appear prior to /usr/bin.
> Refer to the hivelogic link mentioned by Matt Neuberg


/usr/local/bin already appears prior to /usr/bin in my $PATH because I
have Python installed in /usr/local/bin also.

Thank's for the tip though.

-C
--
Posted via http://www.ruby-forum.com/.

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 08:50 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.