Q: set output grows huge after ruby installation

Bash’s set command used to display name and value of each shell variable
grows
from: set-before-ruby.txt
to: set-after-ruby.txt

(Please refer to attachment set-output.zip)

After ruby installation using:

curl -L get.rvm.io | bash -s stable --ruby
source /etc/profile.d/rvm.sh
rvm get head
rvm install ruby --latest
ruby -v

Miguel B. [email protected] wrote:

After ruby installation using:

curl -L get.rvm.io | bash -s stable --ruby
source /etc/profile.d/rvm.sh
rvm get head
rvm install ruby --latest
ruby -v

Is this normal?

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.

I just use normal the autotools install method (works for most autconf
packages, not just ruby):

./configure --prefix=$WHEREVER_I_WANT && make && make install

And set PATH in my shell appropriately…

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.

gvim

Subject: Re: Q: set output grows huge after ruby installation
Date: mer 03 set 14 03:42:54 +0200

Quoting Miguel B. ([email protected]):

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

I am not familiar with CentOS, but is compilation not an option?
Source is to be found at

http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz

Carlo

On Wed, Sep 3, 2014 at 6:42 AM, Miguel B. [email protected]
wrote:

I have learned the hard way to stay away from RVM :slight_smile:

FWIW, lots of people are very happily using RVM to manage their
multiple rubies.

So you have more environment vars set - what is the concern?
(and no, I didn’t unzip your file either)

But if you’re really scared off of RVM, then compile it from source
yourself. Done.

Thanks Eric W. and gvim for you replies,

I have learned the hard way to stay away from RVM :slight_smile:

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.

gvim

make =)

On 14-09-03, 6:42, Miguel B. wrote:

Thanks Eric W. and gvim for you replies,

I have learned the hard way to stay away from RVM :slight_smile:

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?

rbenv and chruby depend on these tools for installing all the different
ruby versions, you could use them directly too if you like:

Andrew V.

On Sep 3, 2014, at 9:31, Andrew V. [email protected] wrote:

rbenv and chruby depend on these tools for installing all the different ruby
versions, you could use them directly too if you like:

GitHub - rbenv/ruby-build: Compile and install Ruby

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.

On Sep 3, 2014, at 5:17 PM, Ryan D. [email protected] wrote:

On Sep 3, 2014, at 9:31, Andrew V. [email protected] wrote:

rbenv and chruby depend on these tools for installing all the different ruby
versions, you could use them directly too if you like:

GitHub - rbenv/ruby-build: Compile and install Ruby

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.