# Q: set output grows huge after ruby installation

**URL:** <https://www.ruby-forum.com/t/q-set-output-grows-huge-after-ruby-installation/231858>\
**Category:** Ruby\
**Created:** [September 3, 2014, 5:45am UTC](https://www.ruby-forum.com/t/q-set-output-grows-huge-after-ruby-installation/231858 "2014-09-03T05:45:42Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [September 3, 2014, 5:45am UTC](https://www.ruby-forum.com/t/q-set-output-grows-huge-after-ruby-installation/231858/1 "2014-09-03T05:45:42Z")

</div>

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](http://get.rvm.io) | bash -s stable --ruby  
source /etc/profile.d/rvm.sh  
rvm get head  
rvm install ruby --latest  
ruby -v

---

<div class="post-metadata">

**Author:** ![mbernilla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ba8739/32.png) [@mbernilla](https://www.ruby-forum.com/u/mbernilla)\
**Post date:** [September 3, 2014, 11:07am UTC](https://www.ruby-forum.com/t/q-set-output-grows-huge-after-ruby-installation/231858/2 "2014-09-03T11:07:35Z")

</div>

Miguel B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ## After ruby installation using:
> 
> ## curl -L [get.rvm.io](http://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…

---

<div class="post-metadata">

**Author:** ![mbernilla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ba8739/32.png) [@mbernilla](https://www.ruby-forum.com/u/mbernilla)\
**Post date:** [September 3, 2014, 2:20pm UTC](https://www.ruby-forum.com/t/q-set-output-grows-huge-after-ruby-installation/231858/3 "2014-09-03T14:20:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mbernilla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ba8739/32.png) [@mbernilla](https://www.ruby-forum.com/u/mbernilla)\
**Post date:** [September 3, 2014, 3:51pm UTC](https://www.ruby-forum.com/t/q-set-output-grows-huge-after-ruby-installation/231858/4 "2014-09-03T15:51:37Z")

</div>

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

Quoting Miguel B. ([removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)):

> 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](http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz)

Carlo

---

<div class="post-metadata">

**Author:** ![mbernilla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ba8739/32.png) [@mbernilla](https://www.ruby-forum.com/u/mbernilla)\
**Post date:** [September 3, 2014, 4:44pm UTC](https://www.ruby-forum.com/t/q-set-output-grows-huge-after-ruby-installation/231858/5 "2014-09-03T16:44:41Z")

</div>

On Wed, Sep 3, 2014 at 6:42 AM, Miguel B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I have learned the hard way to stay away from RVM 🙂

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.

---

<div class="post-metadata">

**Author:** ![mbernilla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ba8739/32.png) [@mbernilla](https://www.ruby-forum.com/u/mbernilla)\
**Post date:** [September 3, 2014, 3:43pm UTC](https://www.ruby-forum.com/t/q-set-output-grows-huge-after-ruby-installation/231858/6 "2014-09-03T15:43:41Z")

</div>

Thanks Eric W. and gvim for you replies,

I have learned the hard way to stay away from RVM 🙂

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 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
To: “Ruby users” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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

---

<div class="post-metadata">

**Author:** ![mbernilla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ba8739/32.png) [@mbernilla](https://www.ruby-forum.com/u/mbernilla)\
**Post date:** [September 3, 2014, 5:04pm UTC](https://www.ruby-forum.com/t/q-set-output-grows-huge-after-ruby-installation/231858/7 "2014-09-03T17:04:50Z")

</div>

make =)

---

<div class="post-metadata">

**Author:** ![mbernilla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ba8739/32.png) [@mbernilla](https://www.ruby-forum.com/u/mbernilla)\
**Post date:** [September 3, 2014, 6:33pm UTC](https://www.ruby-forum.com/t/q-set-output-grows-huge-after-ruby-installation/231858/8 "2014-09-03T18:33:13Z")

</div>

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 🙂
> 
> 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:

> **[GitHub - rbenv/ruby-build: A tool to download, compile, and install Ruby on...](https://github.com/rbenv/ruby-build)**
>
> A tool to download, compile, and install Ruby on Unix-like systems.

> **[GitHub - postmodern/ruby-install: Installs Ruby, JRuby, TruffleRuby, or mruby](https://github.com/postmodern/ruby-install)**
>
> Installs Ruby, JRuby, TruffleRuby, or mruby

Andrew V.

---

<div class="post-metadata">

**Author:** ![mbernilla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ba8739/32.png) [@mbernilla](https://www.ruby-forum.com/u/mbernilla)\
**Post date:** [September 3, 2014, 11:18pm UTC](https://www.ruby-forum.com/t/q-set-output-grows-huge-after-ruby-installation/231858/9 "2014-09-03T23:18:22Z")

</div>

On Sep 3, 2014, at 9:31, Andrew V. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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: A tool to download, compile, and install Ruby on Unix-like systems. · GitHub](https://github.com/sstephenson/ruby-build)

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.

---

<div class="post-metadata">

**Author:** ![mbernilla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ba8739/32.png) [@mbernilla](https://www.ruby-forum.com/u/mbernilla)\
**Post date:** [September 4, 2014, 3:11am UTC](https://www.ruby-forum.com/t/q-set-output-grows-huge-after-ruby-installation/231858/10 "2014-09-04T03:11:51Z")

</div>

On Sep 3, 2014, at 5:17 PM, Ryan D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> On Sep 3, 2014, at 9:31, Andrew V. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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: A tool to download, compile, and install Ruby on Unix-like systems. · GitHub](https://github.com/sstephenson/ruby-build)
> 
> 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!

---

<div class="post-metadata">

**Author:** ![mbernilla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ba8739/32.png) [@mbernilla](https://www.ruby-forum.com/u/mbernilla)\
**Post date:** [September 4, 2014, 2:04am UTC](https://www.ruby-forum.com/t/q-set-output-grows-huge-after-ruby-installation/231858/11 "2014-09-04T02:04:24Z")

</div>

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.
