# System hangs while running gem install rails

**URL:** <https://www.ruby-forum.com/t/system-hangs-while-running-gem-install-rails/118928>\
**Category:** Rails\
**Created:** [November 1, 2007, 12:25pm UTC](https://www.ruby-forum.com/t/system-hangs-while-running-gem-install-rails/118928 "2007-11-01T12:25:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b9bd4f/32.png) [@ram](https://www.ruby-forum.com/u/ram)\
**Post date:** [November 1, 2007, 12:25pm UTC](https://www.ruby-forum.com/t/system-hangs-while-running-gem-install-rails/118928/1 "2007-11-01T12:25:16Z")

</div>

Hi,

My system hangs when I start “gem install rails --remote” command in  
cli.  
It is throwing message like “Bulk updating Gem source index for:  
[http://gems.rubyforge.org](http://gems.rubyforge.org)” and then hangs.

When I see FAQ 3.2 in 3rd chapter ([http://docs.rubygems.org/read/](http://docs.rubygems.org/read/)  
chapter/19), it is not answered. Even am facing the same issue.

Could you help me to resolve this issue?

Thanks

---

<div class="post-metadata">

**Author:** ![ram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b9bd4f/32.png) [@ram](https://www.ruby-forum.com/u/ram)\
**Post date:** [November 1, 2007, 4:18pm UTC](https://www.ruby-forum.com/t/system-hangs-while-running-gem-install-rails/118928/2 "2007-11-01T16:18:15Z")

</div>

I don’t think it is hanging. I believe it is doing something.

I had the same experience, and just waited. The whole gem rails install  
does finish.

Andrew

---

<div class="post-metadata">

**Author:** ![ram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b9bd4f/32.png) [@ram](https://www.ruby-forum.com/u/ram)\
**Post date:** [November 2, 2007, 8:35am UTC](https://www.ruby-forum.com/t/system-hangs-while-running-gem-install-rails/118928/3 "2007-11-02T08:35:47Z")

</div>

Thanks Andrew,

Today I have tried again running the same command but no positive  
result. I had waited for about 1 Hr.

Let me brief you what I have done

1. Installed “ruby186-25”
2. Openned the command prompt.
3. Ran “gem install rails -r”

Am I missing any?

Ram

---

<div class="post-metadata">

**Author:** ![ram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b9bd4f/32.png) [@ram](https://www.ruby-forum.com/u/ram)\
**Post date:** [November 2, 2007, 4:46pm UTC](https://www.ruby-forum.com/t/system-hangs-while-running-gem-install-rails/118928/4 "2007-11-02T16:46:25Z")

</div>

I would recommend you to first turn off all the processes that ur not  
using @ that pt of time…and then do the installation…i think that  
will work

---

<div class="post-metadata">

**Author:** ![ram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b9bd4f/32.png) [@ram](https://www.ruby-forum.com/u/ram)\
**Post date:** [November 2, 2007, 9:16am UTC](https://www.ruby-forum.com/t/system-hangs-while-running-gem-install-rails/118928/5 "2007-11-02T09:16:11Z")

</div>

Thanks Andrew,

Today I have tried again running the same command but no positive  
result. I had waited for about 1 Hr.

Let me brief you what I have done

1. Installed “ruby186-25”
2. Openned the command prompt.
3. Ran “gem install rails -r”

Am I missing any?

Ram

---

<div class="post-metadata">

**Author:** ![ram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b9bd4f/32.png) [@ram](https://www.ruby-forum.com/u/ram)\
**Post date:** [November 2, 2007, 5:56pm UTC](https://www.ruby-forum.com/t/system-hangs-while-running-gem-install-rails/118928/6 "2007-11-02T17:56:32Z")

</div>

Got the solution in another way.  
Just downloaded the Rails package and copied to c drive.  
Ran the server script and now i can open the default page at  
127.0.0.0:3000

Thanks  
Ram

---

<div class="post-metadata">

**Author:** ![ram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b9bd4f/32.png) [@ram](https://www.ruby-forum.com/u/ram)\
**Post date:** [November 8, 2007, 3:51pm UTC](https://www.ruby-forum.com/t/system-hangs-while-running-gem-install-rails/118928/7 "2007-11-08T15:51:35Z")

</div>

Hi,

I thought the problem was solved but not. I can open the firsrt page  
[http://127.0.0.1:3000](http://127.0.0.1:3000), but when I create new controller and try to  
access that page it is giving Routing Error no route found to  
match…

am summarizing what i did

1. Installed ruby - ruby186-25.
2. Not able to succed the command “gems installs rails --remote OR –  
include-dependencies”
3. Then I downloaded the rails package - rails-1.2.5.
4. Error was coming when stating the default server WEBrick with the  
command “ruby script/server” from the file environment.rb at line 8 as  
\<%= '# ’ if freeze %\>RAILS\_GEM\_VERSION = ‘\<%= Rails::VERSION::STRING  
%\>’ unless defined? RAILS\_GEM\_VERSION.
5. The error was unexpected, “\<” at the very beginning. Then I removed  
the \< and ran the server, it was fine.
6. Then I created one controller “ruby script/generate controller  
MyTest” and it was success.
7. When I try to open [http://127.0.0.1:3000](http://127.0.0.1:3000):MyTest, throws Routing  
Error.

Could you help me to fix this error?
