# SocketError when trying to install Rails with RubyGems

**URL:** <https://www.ruby-forum.com/t/socketerror-when-trying-to-install-rails-with-rubygems/98501>\
**Category:** Rails\
**Created:** [July 15, 2006, 3:29am UTC](https://www.ruby-forum.com/t/socketerror-when-trying-to-install-rails-with-rubygems/98501 "2006-07-15T03:29:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sri\_Kandan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@Sri\_Kandan](https://www.ruby-forum.com/u/Sri_Kandan)\
**Post date:** [July 15, 2006, 3:29am UTC](https://www.ruby-forum.com/t/socketerror-when-trying-to-install-rails-with-rubygems/98501/1 "2006-07-15T03:29:28Z")

</div>

I downloaded RubyGems 0.9.0 and successfully extracted and built it by  
running “sudo setup.rb”.

Then I try to install Rails via this command:  
“sudo gem install rails --include-dependencies”

But I get this error everytime:

ERROR: While executing gem … (SocketError)  
getaddrinfo: no address associated with nodename

Can someone point me in the right direction?

Thanks much.  
Sri

---

<div class="post-metadata">

**Author:** ![Sri\_Kandan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@Sri\_Kandan](https://www.ruby-forum.com/u/Sri_Kandan)\
**Post date:** [July 15, 2006, 3:30am UTC](https://www.ruby-forum.com/t/socketerror-when-trying-to-install-rails-with-rubygems/98501/2 "2006-07-15T03:30:33Z")

</div>

this is on Mac OS X…Tiger…with XCode 2.2

---

<div class="post-metadata">

**Author:** ![Sri\_Kandan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@Sri\_Kandan](https://www.ruby-forum.com/u/Sri_Kandan)\
**Post date:** [July 16, 2006, 12:04am UTC](https://www.ruby-forum.com/t/socketerror-when-trying-to-install-rails-with-rubygems/98501/3 "2006-07-16T00:04:53Z")

</div>

Is this the right forum? Or is the Ruby one more appropriate?

---

<div class="post-metadata">

**Author:** ![Sri\_Kandan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@Sri\_Kandan](https://www.ruby-forum.com/u/Sri_Kandan)\
**Post date:** [July 19, 2006, 7:30am UTC](https://www.ruby-forum.com/t/socketerror-when-trying-to-install-rails-with-rubygems/98501/4 "2006-07-19T07:30:56Z")

</div>

Sri \<srikandan@…\> writes:

> Is this the right forum? Or is the Ruby one more appropriate?

I’m wondering the same thing … 'cause I have the same problem 🙂

Let me know if you find a solution.
