[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

uninstalling/upgrading Ruby

Alex Nedelcu

7/17/2006 10:38:00 PM

Hi,

I have Ruby 1.8.2 installed on a RHEL 3 server from the tarball, install
with the usual make/make install procedure.
How can I uninstall Ruby so I can install Ruby 1.8.4 ?

Also, can you tell how could I build a RPM package so I don't have to
worry about it in the future ?

Sorry about asking, I'm a newbie when it comes to Linux.

Thanks,

4 Answers

jmg3000

7/18/2006 12:29:00 AM

0

On 7/17/06, Alex Nedelcu <bonefry@gmail.com> wrote:
> Hi,
>
> I have Ruby 1.8.2 installed on a RHEL 3 server from the tarball, install
> with the usual make/make install procedure.
> How can I uninstall Ruby so I can install Ruby 1.8.4 ?

Unfortunately, there's probably no customary "make uninstall". Where
is your version of 1.8.2 installed? You might be able to remove it
manually...

When installing it yourself, you might give Ruby its own install
directory, as described here:
http://wiki.rubygarden.org/Ruby/page/show/Inst... (scroll down
to "Custom Install on GNU/Linux"). This makes for easy removal for
upgrading later on.

> Also, can you tell how could I build a RPM package so I don't have to
> worry about it in the future ?

If you follow the instructions for putting Ruby off in its own
directory, you don't need an rpm.

---John

Erik Veenstra

7/18/2006 7:46:00 AM

0

> I have Ruby 1.8.2 installed on a RHEL 3 server from the
> tarball, install with the usual make/make install procedure.
> How can I uninstall Ruby so I can install Ruby 1.8.4 ?

# ls -ld /usr/local/*/{ruby,irb,erb,testrb,rdoc,ri}
# rm -rf /usr/local/*/{ruby,irb,erb,testrb,rdoc,ri}

Use it at your own risk!

gegroet,
Erik V. - http://www.erikve...


Mat Schaffer

7/18/2006 12:36:00 PM

0

On Jul 17, 2006, at 6:37 PM, Alex Nedelcu wrote:
> Hi,
>
> I have Ruby 1.8.2 installed on a RHEL 3 server from the tarball,
> install with the usual make/make install procedure.
> How can I uninstall Ruby so I can install Ruby 1.8.4 ?
>
> Also, can you tell how could I build a RPM package so I don't have
> to worry about it in the future ?
>
> Sorry about asking, I'm a newbie when it comes to Linux.
>
> Thanks,
>

Chances are good that you can just install 1.8.4. It'll likely
overwrite the old stuff assuming you didn't provide any switches to
the install process.

You can google for how to build RPMs, but it's not easy. The reason
it knows where all the files are is because someone took the time to
list them all in the SPEC file in the RPM. Go for it if you want,
but I'd bet the spray-n-pray method will work fine for you.
-Mat


Justin Collins

7/18/2006 4:30:00 PM

0

Mat Schaffer wrote:
> On Jul 17, 2006, at 6:37 PM, Alex Nedelcu wrote:
>> Hi,
>>
>> I have Ruby 1.8.2 installed on a RHEL 3 server from the tarball,
>> install with the usual make/make install procedure.
>> How can I uninstall Ruby so I can install Ruby 1.8.4 ?
>>
>> Also, can you tell how could I build a RPM package so I don't have to
>> worry about it in the future ?
>>
>> Sorry about asking, I'm a newbie when it comes to Linux.
>>
>> Thanks,
>>
>
> Chances are good that you can just install 1.8.4. It'll likely
> overwrite the old stuff assuming you didn't provide any switches to
> the install process.
>
> You can google for how to build RPMs, but it's not easy. The reason
> it knows where all the files are is because someone took the time to
> list them all in the SPEC file in the RPM. Go for it if you want, but
> I'd bet the spray-n-pray method will work fine for you.
> -Mat
Before you do that, you probably want to see where Ruby is currently:

whereis ruby

Then use ./configure --prefix=/that/prefix

For example:

whereis ruby => /usr/local/bin/ruby

Then use

/configure --prefix=/usr/local/



Hope that helps.

-Justin