Whettingstone
Posts: 12
Joined: Mon Nov 04, 2013 7:15 am

Remove Ruby compiled from source

Fri Oct 03, 2014 5:38 am

I installed Ruby a while ago and compiled it from source. I decided to run 1.9.3.

Now I decided to run 2.1 instead and found a script to compile that from source (this: https://gist.github.com/blacktm/8302741) but I'm unsure if I need to remove 1.9.3 first.

How do I do this? Do I need to do it or will 1.9.3 get replaced?

User avatar
r3d4
Posts: 982
Joined: Sat Jul 30, 2011 8:21 am
Location: ./

Re: Remove Ruby compiled from source

Fri Oct 03, 2014 8:27 am

the script you linked to has this

Code: Select all

# Set Ruby 2.1 as the global default
rbenv global 2.1.1
it looks like this will try to set the updated ruby as default , allthough its not obvious how exactly that happens ( you could try and look at the source of the 'rbenv' to find out ...)

you could just try it and see :)

*i dont realy use ruby mutch or build the source at all ;)
Real life is, to most, a long second-best, a perpetual compromise between the ideal and the possible.
-
Meanwhile, the sysadmin who accidentally nuked the data reckons "its best not run anything more with sudo today"
-
what about spike milligan?

PeterWAWood
Posts: 12
Joined: Thu Jul 03, 2014 4:40 am

Re: Remove Ruby compiled from source

Mon Oct 20, 2014 10:57 am

The script that you linked to will install rbenv, a method to manage multiple versions on Ruby . There is no need to remove the existing version of Ruby prior to installing first.

Return to “Other programming languages”