# Can't install Rails 2.1

**URL:** <https://www.ruby-forum.com/t/cant-install-rails-2-1/139825>\
**Category:** Rails\
**Created:** [June 7, 2008, 6:37pm UTC](https://www.ruby-forum.com/t/cant-install-rails-2-1/139825 "2008-06-07T18:37:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sp00nyg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/edb3f5/32.png) [@sp00nyg](https://www.ruby-forum.com/u/sp00nyg)\
**Post date:** [June 7, 2008, 6:37pm UTC](https://www.ruby-forum.com/t/cant-install-rails-2-1/139825/1 "2008-06-07T18:37:23Z")

</div>

I wanted to make use of the new Rails 2.1 features for my app. I have  
everything running and mostly tested in development, but I can’t get  
Rails 2.1 (from 2.0.2) installed on my test/staging environment. My  
test env is a 256M slice at SliceHost. My production envs are 512M  
and 1G slices, but they installed just fine. All envs are CentOS 5.1.

The test server output is:

> sudo gem update rails  
> Bulk updating Gem source index for: [http://gems.rubyforge.org/](http://gems.rubyforge.org/)  
> Updating metadata for 182 gems from [http://gems.github.com/](http://gems.github.com/)  
> …  
> complete  
> Bulk updating Gem source index for: [http://gems.rubyforge.org/](http://gems.rubyforge.org/)

After that, it hangs up. I just let it run for several hours thinking  
that swapping was slowing it down. Top shows gem still running and  
using up \>200M of Res memory. I also tried removing all the rails  
gems (activeresource, etc.) and did a gem install rails, but I get the  
same problem.

The gem version is 1.1.1.

Anyone successfully installed rails 2.1 on a smaller environment? Any  
suggestions on what I might have to do to get this installed?

---

<div class="post-metadata">

**Author:** ![sp00nyg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/edb3f5/32.png) [@sp00nyg](https://www.ruby-forum.com/u/sp00nyg)\
**Post date:** [June 7, 2008, 8:42pm UTC](https://www.ruby-forum.com/t/cant-install-rails-2-1/139825/2 "2008-06-07T20:42:41Z")

</div>

On 7 Jun 2008, at 17:36, gobigdave wrote:

> Bulk updating Gem source index for: [http://gems.rubyforge.org/](http://gems.rubyforge.org/)  
> Updating metadata for 182 gems from [http://gems.github.com/](http://gems.github.com/)  
> …  
> complete  
> Bulk updating Gem source index for: [http://gems.rubyforge.org/](http://gems.rubyforge.org/)

That bit of gems can be a bit memory hungy. I think there is an  
option which controls the size of the chunks it uses while bulk  
updating, which should reduce usage.  
If not, just downloading the gem files, copying onto the slice and  
just installing from those should work.

Fred

---

<div class="post-metadata">

**Author:** ![sp00nyg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/edb3f5/32.png) [@sp00nyg](https://www.ruby-forum.com/u/sp00nyg)\
**Post date:** [June 8, 2008, 4:50am UTC](https://www.ruby-forum.com/t/cant-install-rails-2-1/139825/3 "2008-06-08T04:50:26Z")

</div>

I tried everything in the slicehost forum, but the only thing I could  
get to work was to downgrade gem from 1.1.1 to 1.0.1. Once I did that,  
I was able to do the install as long as I didn’t install the docs as  
well.

Thanks for your help.

-Dave

On Jun 7, 3:06 pm, Matthew R. Jacobs \<rails-mailing-l…@andreas-

---

<div class="post-metadata">

**Author:** ![sp00nyg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/edb3f5/32.png) [@sp00nyg](https://www.ruby-forum.com/u/sp00nyg)\
**Post date:** [June 7, 2008, 9:06pm UTC](https://www.ruby-forum.com/t/cant-install-rails-2-1/139825/4 "2008-06-07T21:06:17Z")

</div>

Dave D. wrote:

> I wanted to make use of the new Rails 2.1 features for my app. I have  
> everything running and mostly tested in development, but I can’t get  
> Rails 2.1 (from 2.0.2) installed on my test/staging environment. My  
> test env is a 256M slice at SliceHost. My production envs are 512M  
> and 1G slices, but they installed just fine. All envs are CentOS 5.1.

Yeah,  
this is down to gems using too much ram for a 256mb slice.  
had the same problem myself, also with slicehost.

luckily there’s a solution involving killing the gems source list and  
stuff.

see:  
[http://forum.slicehost.com/comments.php?DiscussionID=672](http://forum.slicehost.com/comments.php?DiscussionID=672)
