# Gem update

**URL:** <https://www.ruby-forum.com/t/gem-update/142797>\
**Category:** Ruby\
**Created:** [July 11, 2008, 4:56pm UTC](https://www.ruby-forum.com/t/gem-update/142797 "2008-07-11T16:56:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![phdjlc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e19b73/32.png) [@phdjlc](https://www.ruby-forum.com/u/phdjlc)\
**Post date:** [July 11, 2008, 4:56pm UTC](https://www.ruby-forum.com/t/gem-update/142797/1 "2008-07-11T16:56:50Z")

</div>

Hi,

I’m behind a firewall. How can I update ruby modules?

If I try to do a

> gem update --system

I get the following error:

ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)  
getaddrinfo: no address associated with hostname.(SocketError)

PS: Windows XP SP3 - Ruby 1.8.6

Thanks!

---

<div class="post-metadata">

**Author:** ![phdjlc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e19b73/32.png) [@phdjlc](https://www.ruby-forum.com/u/phdjlc)\
**Post date:** [July 11, 2008, 5:21pm UTC](https://www.ruby-forum.com/t/gem-update/142797/2 "2008-07-11T17:21:51Z")

</div>

On Fri, Jul 11, 2008 at 8:52 AM, JosÃ© Cruz [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)  
> getaddrinfo: no address associated with hostname.(SocketError)
> 
> PS: Windows XP SP3 - Ruby 1.8.6
> 
> ## Thanks!
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

Can you ping [http://gems.rubyforge.org](http://gems.rubyforge.org)?

–  
“Hey brother Christian with your high and mighty errand, Your actions  
speak  
so loud, I can’t hear a word you’re saying.”

-Greg Graffin (Bad Religion)

---

<div class="post-metadata">

**Author:** ![phdjlc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e19b73/32.png) [@phdjlc](https://www.ruby-forum.com/u/phdjlc)\
**Post date:** [July 11, 2008, 5:38pm UTC](https://www.ruby-forum.com/t/gem-update/142797/3 "2008-07-11T17:38:42Z")

</div>

No!

Glen H. wrote:

> On Fri, Jul 11, 2008 at 8:52 AM, JosÃ© Cruz [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> wrote:
> 
> > ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)  
> > getaddrinfo: no address associated with hostname.(SocketError)
> > 
> > PS: Windows XP SP3 - Ruby 1.8.6
> > 
> > ## Thanks!
> > 
> > Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> Can you ping [http://gems.rubyforge.org](http://gems.rubyforge.org)?
> 
> –  
> “Hey brother Christian with your high and mighty errand, Your actions  
> speak  
> so loud, I can’t hear a word you’re saying.”
> 
> -Greg Graffin (Bad Religion)

---

<div class="post-metadata">

**Author:** ![phdjlc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e19b73/32.png) [@phdjlc](https://www.ruby-forum.com/u/phdjlc)\
**Post date:** [July 11, 2008, 7:06pm UTC](https://www.ruby-forum.com/t/gem-update/142797/4 "2008-07-11T19:06:07Z")

</div>

JosÃ© Cruz wrote:

> Hi,
> 
> I’m behind a firewall. How can I update ruby modules?
> 
> If I try to do a
> 
> > gem update --system
> 
> I get the following error:
> 
> ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)  
> getaddrinfo: no address associated with hostname.(SocketError)
> 
> PS: Windows XP SP3 - Ruby 1.8.6
> 
> Thanks!

Hi,

if its a proxy problem u can try to set an environment variable in  
windows  
via   
HTTP\_PROXY = [http://usr:pwd@myproxy](http://usr:pwd@myproxy):port

it worked for me 😉

---

<div class="post-metadata">

**Author:** ![phdjlc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e19b73/32.png) [@phdjlc](https://www.ruby-forum.com/u/phdjlc)\
**Post date:** [July 11, 2008, 6:07pm UTC](https://www.ruby-forum.com/t/gem-update/142797/5 "2008-07-11T18:07:40Z")

</div>

On Fri, Jul 11, 2008 at 9:34 AM, JosÃ© Cruz [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > > 
> > 
> > –  
> > “Hey brother Christian with your high and mighty errand, Your actions  
> > speak  
> > so loud, I can’t hear a word you’re saying.”
> > 
> > -Greg Graffin (Bad Religion)
> 
> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

Sounds like it is either your firewall or DNS/Routing problems then. In  
other words it’s more of a system/network problem than a ruby one. You  
could try downloading and installing it manually if you can get to the  
gem  
to download it.

[http://www.ghostonthird.com/2007/12/17/manually-downloading-and-installing-gems/](http://www.ghostonthird.com/2007/12/17/manually-downloading-and-installing-gems/)

–  
“Hey brother Christian with your high and mighty errand, Your actions  
speak  
so loud, I can’t hear a word you’re saying.”

-Greg Graffin (Bad Religion)
