# Failed to install Ruby on Rails

**URL:** <https://www.ruby-forum.com/t/failed-to-install-ruby-on-rails/146350>\
**Category:** Rails\
**Created:** [August 20, 2008, 8:41am UTC](https://www.ruby-forum.com/t/failed-to-install-ruby-on-rails/146350 "2008-08-20T08:41:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lcyeap](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/9fc348/32.png) [@lcyeap](https://www.ruby-forum.com/u/lcyeap)\
**Post date:** [August 20, 2008, 8:41am UTC](https://www.ruby-forum.com/t/failed-to-install-ruby-on-rails/146350/1 "2008-08-20T08:41:55Z")

</div>

Greetings,

I am facing problem when installing the rails 2.1.0. i have saved the  
gem file in the bin folder, but it always come out with the error saying  
that rails require rake 0.8.1. I try to download the rake gem file, but  
also failed to install it. i have tried the command " gem install rails  
–include-dependencies" but error pop up saying that target machine  
refused to activate it.

May i know is there any other way for me to install rails?

Thanks a lot.

---

<div class="post-metadata">

**Author:** ![lcyeap](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/9fc348/32.png) [@lcyeap](https://www.ruby-forum.com/u/lcyeap)\
**Post date:** [August 20, 2008, 8:54am UTC](https://www.ruby-forum.com/t/failed-to-install-ruby-on-rails/146350/2 "2008-08-20T08:54:50Z")

</div>

Could you copy and paste the exact error please?

---

<div class="post-metadata">

**Author:** ![lcyeap](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/9fc348/32.png) [@lcyeap](https://www.ruby-forum.com/u/lcyeap)\
**Post date:** [August 20, 2008, 9:01am UTC](https://www.ruby-forum.com/t/failed-to-install-ruby-on-rails/146350/3 "2008-08-20T09:01:15Z")

</div>

Ryan B. wrote:

> Could you copy and paste the exact error please?

Sorry for not being clear.  
Below are the errors that i see.

1. when using command ‘gem install rails’  
ERROR: While executing gem … (RuntimeError)  
Error instaling rails:  
rails requires rake \>= 0.8.1

2. when using command ‘gem install rails --include-dependencies  
–remote’  
ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)  
No connection could be made because the target machine actively  
refused it.

- connect(2)(Errno::ECONNREFUSED)

1. when istalling rake ‘gem install --remote rake’  
ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)  
No connection could be made because the target machine actively  
refused it.

- connect(2)(Errno::ECONNREFUSED)

thanks again…

---

<div class="post-metadata">

**Author:** ![lcyeap](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/9fc348/32.png) [@lcyeap](https://www.ruby-forum.com/u/lcyeap)\
**Post date:** [August 20, 2008, 10:31am UTC](https://www.ruby-forum.com/t/failed-to-install-ruby-on-rails/146350/4 "2008-08-20T10:31:50Z")

</div>

Ryan B. wrote:

> What does “gem sources” give you?

This is what i get…

\*\*\* CURRENT SOURCES \*\*\*

ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)  
No connection could be made because the target machine actively  
refused it.

- connect(2)(Errno::ECONNREFUSED)

May i know is that anything that i miss out and have not save yet?  
Previously I am using the ruby 1.8.6. one click installer to istall the  
ruby and gem.  
Thanks.

---

<div class="post-metadata">

**Author:** ![lcyeap](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/9fc348/32.png) [@lcyeap](https://www.ruby-forum.com/u/lcyeap)\
**Post date:** [August 20, 2008, 9:11am UTC](https://www.ruby-forum.com/t/failed-to-install-ruby-on-rails/146350/5 "2008-08-20T09:11:16Z")

</div>

What does “gem sources” give you?
