I am looking for an easy way to install ruby 2.1+ under CentOS 6.5.
Unfortunately yum repository for CentOS 6.5 has Version: 1.8.7.352
Any suggestions?
Sent: Wednesday, September 03, 2014 at 7:19 AM
From: gvim [email protected]
To: “Ruby users” [email protected]
Subject: Re: Q: set output grows huge after ruby installation
On 03/09/2014 10:06, Eric W. wrote:
I didn’t look at your env (don’t feel like unzipping), but that’s how
RVM works (by taking over your shell). RVM is not required for Ruby.
Exactly the reason I booted out RVM when I first started using Ruby. No
tool should be allowed to take such liberties.
I’m quite happy using ruby-build either as-is or as an rbenv plugin.
rbenv can be used in a way that doesn’t infect your shell environment at
all and is quite nice. Clean and sane.
I’m quite happy using ruby-build either as-is or as an rbenv plugin. rbenv can
be used in a way that doesn’t infect your shell environment at all and is quite
nice. Clean and sane.
Another option is to install Ruby manually - i.e., ./configure
–prefix=/opt/rubies/ruby-2.1.2 && make && sudo make install - and then
point chruby to those directories. Good stuff!
For what it’s worth, I install my various rubies side-by-side thanks to configure --program-suffix=2.1 etc. So sysruby is the default 1.9.3
that
comes with Ubuntu, but I can trivially invoke ruby2.0, ruby2.1, or
ruby-trunk (i.e. 2.2) whenever I want.
I also don’t tend to rely on shebangs.
The only issue is gem management (having to install the same gem in all
four environments). AIUI that’s not solved by using RVM anyway.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.