# Working RubyGems on Windows

**URL:** <https://rubytalk.org/t/working-rubygems-on-windows/41084>\
**Category:** ruby-talk\
**Created:** [1 October 2007 17:43 UTC](https://rubytalk.org/t/working-rubygems-on-windows/41084 "2007-10-01T17:43:26Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![7rans](https://avatars.discourse-cdn.com/v4/letter/7/a8b319/32.png) [@7rans](https://rubytalk.org/u/7rans)\
**Post date:** [1 October 2007 17:43 UTC](https://rubytalk.org/t/working-rubygems-on-windows/41084/1 "2007-10-01T17:43:26Z")

</div>

I really need to get RubyGems working on Windows. Versions 0.9.2,  
0.9.4 and current trunk all fail. Can someone recommend a solution. Is  
there an old version that I can install that's sure to work?

Thanks,  
T.

---

<div class="post-metadata">

**Author:** ![Dejan\_Dimic](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@Dejan\_Dimic](https://rubytalk.org/u/Dejan_Dimic)\
**Post date:** [1 October 2007 18:40 UTC](https://rubytalk.org/t/working-rubygems-on-windows/41084/2 "2007-10-01T18:40:10Z")

</div>

I use it all the time on XP

C:\\>ruby -v  
ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32]

C:\\>gem -v  
0.9.4

You should describe your issue a little more.

---

<div class="post-metadata">

**Author:** ![Eric\_Hodel1](https://avatars.discourse-cdn.com/v4/letter/e/a9adbd/32.png) [@Eric\_Hodel1](https://rubytalk.org/u/Eric_Hodel1)\
**Post date:** [1 October 2007 21:07 UTC](https://rubytalk.org/t/working-rubygems-on-windows/41084/3 "2007-10-01T21:07:11Z")

</div>

I spent many hours with Curt Hibbs getting the one-click installer's RubyGems working correctly. We were both satisfied by it when the last one-click shipped.

> **···**
>
> On Oct 1, 2007, at 10:43 , Trans wrote:
> 
> > I really need to get RubyGems working on Windows. Versions 0.9.2,  
> > 0.9.4 and current trunk all fail. Can someone recommend a solution. Is  
> > there an old version that I can install that's sure to work?
> 
> --  
> Poor workers blame their tools. Good workers build better tools. The  
> best workers get their tools to do the work for them. -- Syndicate Wars

---

<div class="post-metadata">

**Author:** ![7rans](https://avatars.discourse-cdn.com/v4/letter/7/a8b319/32.png) [@7rans](https://rubytalk.org/u/7rans)\
**Post date:** [1 October 2007 20:56 UTC](https://rubytalk.org/t/working-rubygems-on-windows/41084/4 "2007-10-01T20:56:15Z")

</div>

I described it in the "OneClickInstaller/RubyGems" thread. But I'll  
reiterate:

With 0.9.4...

&nbsp;&nbsp;C:\Documents and Settings\Milton\My Documents\Tom\>gem install  
&nbsp;&nbsp;rubyscript2exe ERROR: While executing gem ...  
(Gem::RemoteFetcher::FetchError)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;getaddrinfo: no address associated with hostname.(SocketError)

&nbsp;&nbsp;C:\Documents and Settings\Milton\My Documents\Tom\>gem install  
rubyscript2exe -no-http-proxy  
&nbsp;&nbsp;ERROR: While executing gem ... (NoMethodError)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;undefined method `=' for #\<Gem::ConfigFile:0x2e2ebc0\>

With trunk:

&nbsp;&nbsp;C:\Documents and Settings\Milton\My Documents\Tom\>gem install  
rubyscript2exe  
&nbsp;&nbsp;c:/ruby/bin/gem.bat:19: uninitialized constant Gem::GemRunner  
(NameError)

T.

> **···**
>
> On Oct 1, 11:40 am, dima \<dejan.di...@gmail.com\> wrote:
> 
> > I use it all the time on XP
> > 
> > C:\\>ruby -v  
> > ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32]
> > 
> > C:\\>gem -v  
> > 0.9.4
> > 
> > You should describe your issue a little more.

---

<div class="post-metadata">

**Author:** ![7rans](https://avatars.discourse-cdn.com/v4/letter/7/a8b319/32.png) [@7rans](https://rubytalk.org/u/7rans)\
**Post date:** [2 October 2007 15:03 UTC](https://rubytalk.org/t/working-rubygems-on-windows/41084/5 "2007-10-02T15:03:03Z")

</div>

I don't know what to tell you then. It's not working for me. I just  
removed everything and tried again. I downloaded the OneClickInstaller  
from ruby-lang.org ([http://rubyforge.org/frs/download.php/18566/](http://rubyforge.org/frs/download.php/18566/)  
ruby186-25.exe). Installed it. And then did:

&nbsp;&nbsp;C:\Documents and Settings\Milton\My Documents\Tom\>gem install  
rubyscript2exe  
&nbsp;&nbsp;ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;getaddrinfo: no address associated with hostname.(SocketError)

&nbsp;&nbsp;C:\Documents and Settings\Milton\My Documents\Tom\>gem install  
rubyscript2exe --no-http-proxy  
&nbsp;&nbsp;ERROR: While executing gem ... (NoMethodError)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;undefined method `=' for #\<Gem::ConfigFile:0x2df7864\>

&nbsp;&nbsp;C:\Documents and Settings\Milton\My Documents\Tom\>gem --version  
&nbsp;&nbsp;0.9.2

T.

> **···**
>
> On Oct 1, 5:07 pm, Eric Hodel \<drbr...@segment7.net\> wrote:
> 
> > On Oct 1, 2007, at 10:43 , Trans wrote:
> > 
> > \> I really need to get RubyGems working on Windows. Versions 0.9.2,  
> > \> 0.9.4 and current trunk all fail. Can someone recommend a solution. Is  
> > \> there an old version that I can install that's sure to work?
> > 
> > I spent many hours with Curt Hibbs getting the one-click installer's  
> > RubyGems working correctly. We were both satisfied by it when the  
> > last one-click shipped.

---

<div class="post-metadata">

**Author:** ![Kevin\_Williams](https://avatars.discourse-cdn.com/v4/letter/k/f0a364/32.png) [@Kevin\_Williams](https://rubytalk.org/u/Kevin_Williams)\
**Post date:** [2 October 2007 02:54 UTC](https://rubytalk.org/t/working-rubygems-on-windows/41084/6 "2007-10-02T02:54:46Z")

</div>

Trans wrote:

> With 0.9.4...
> 
> &nbsp;&nbsp;C:\Documents and Settings\Milton\My Documents\Tom\>gem install  
> &nbsp;&nbsp;rubyscript2exe ERROR: While executing gem ...  
> (Gem::RemoteFetcher::FetchError)  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;getaddrinfo: no address associated with hostname.(SocketError)
> 
> &nbsp;&nbsp;C:\Documents and Settings\Milton\My Documents\Tom\>gem install  
> rubyscript2exe -no-http-proxy  
> &nbsp;&nbsp;ERROR: While executing gem ... (NoMethodError)  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;undefined method `=' for #\<Gem::ConfigFile:0x2e2ebc0\>
> 
> With trunk:
> 
> &nbsp;&nbsp;C:\Documents and Settings\Milton\My Documents\Tom\>gem install  
> rubyscript2exe  
> &nbsp;&nbsp;c:/ruby/bin/gem.bat:19: uninitialized constant Gem::GemRunner  
> (NameError)
> 
> T.

Something must be wrong with your Ruby or RubyGems install. I just  
install the 1.8.6-25 one-click-installer in a virtual of XP and  
everything worked fine. Here are the steps I followed.

Add c:\ruby\bin to the beginning of my PATH.

c:\\> gem up --system

(ran that twice)

c:\\>gem pristine --all  
ERROR: While executing gem ... (Zlib::BufError)  
&nbsp;&nbsp;&nbsp;&nbsp;buffer error

(followed the fix here:  
[http://www.nabble.com/Zlib::BufError-t4011137.html\](http://www.nabble.com/Zlib::BufError-t4011137.html%5C))

c:\\>gem pristine --all

(install ruby-1.8.6-p110-i386-mswin32.zip into c:\ruby)

c:\\>gem up -y (updates lots of win32 stuff)

C:\\>ruby -v  
ruby 1.8.6 (2007-09-23 patchlevel 110) [i386-mswin32]

C:\\>gem -v  
0.9.4

One last thing - I avoid using paths with spaces. You might double-check  
that your PATH and all the \*.BAT files in c:\ruby\bin do \*NOT\* have any  
paths with spaces. It works better for me - might help you.

Good luck.

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Eric\_Hodel1](https://avatars.discourse-cdn.com/v4/letter/e/a9adbd/32.png) [@Eric\_Hodel1](https://rubytalk.org/u/Eric_Hodel1)\
**Post date:** [2 October 2007 16:22 UTC](https://rubytalk.org/t/working-rubygems-on-windows/41084/7 "2007-10-02T16:22:31Z")

</div>

> > > I really need to get RubyGems working on Windows. Versions 0.9.2,  
> > > 0.9.4 and current trunk all fail. Can someone recommend a solution. Is  
> > > there an old version that I can install that's sure to work?
> > 
> > I spent many hours with Curt Hibbs getting the one-click installer's  
> > RubyGems working correctly. We were both satisfied by it when the  
> > last one-click shipped.
> 
> I don't know what to tell you then. It's not working for me. I just  
> removed everything and tried again. I downloaded the OneClickInstaller  
> from ruby-lang.org ([http://rubyforge.org/frs/download.php/18566/](http://rubyforge.org/frs/download.php/18566/)  
> ruby186-25.exe). Installed it. And then did:
> 
> &nbsp;&nbsp;C:\Documents and Settings\Milton\My Documents\Tom\>gem install  
> rubyscript2exe  
> &nbsp;&nbsp;ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;getaddrinfo: no address associated with hostname.(SocketError)

I can not fix your inability to resolve the address of a hostname with any change to RubyGems. I gave you a command to run that would give me what you were trying to connect to in [ruby-talk:271292], and you never responded with the output.

> &nbsp;&nbsp;C:\Documents and Settings\Milton\My Documents\Tom\>gem install  
> rubyscript2exe --no-http-proxy  
> &nbsp;&nbsp;ERROR: While executing gem ... (NoMethodError)  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;undefined method `=' for #\<Gem::ConfigFile:0x2df7864\>
> 
> &nbsp;&nbsp;C:\Documents and Settings\Milton\My Documents\Tom\>gem --version  
> &nbsp;&nbsp;0.9.2

I asked you if you were using a proxy server in [ruby-talk:271292] and you never answered that question either.

I have tried to help you, but you have not responded to my requests for information. Go back to [ruby-talk:271292] and reply to that email with the information I've requested. I can not help you without it.

> **···**
>
> On Oct 2, 2007, at 08:03 , Trans wrote:
> 
> > On Oct 1, 5:07 pm, Eric Hodel \<drbr...@segment7.net\> wrote:
> > 
> > > On Oct 1, 2007, at 10:43 , Trans wrote:
> 
> --  
> Poor workers blame their tools. Good workers build better tools. The  
> best workers get their tools to do the work for them. -- Syndicate Wars

---

<div class="post-metadata">

**Author:** ![7rans](https://avatars.discourse-cdn.com/v4/letter/7/a8b319/32.png) [@7rans](https://rubytalk.org/u/7rans)\
**Post date:** [2 October 2007 15:14 UTC](https://rubytalk.org/t/working-rubygems-on-windows/41084/8 "2007-10-02T15:14:29Z")

</div>

> Trans wrote:  
> \> With 0.9.4...
> 
> \> C:\Documents and Settings\Milton\My Documents\Tom\>gem install  
> \> rubyscript2exe ERROR: While executing gem ...  
> \> (Gem::RemoteFetcher::FetchError)  
> \> getaddrinfo: no address associated with hostname.(SocketError)
> 
> \> C:\Documents and Settings\Milton\My Documents\Tom\>gem install  
> \> rubyscript2exe -no-http-proxy  
> \> ERROR: While executing gem ... (NoMethodError)  
> \> undefined method `=' for #\<Gem::ConfigFile:0x2e2ebc0\>
> 
> \> With trunk:
> 
> \> C:\Documents and Settings\Milton\My Documents\Tom\>gem install  
> \> rubyscript2exe  
> \> c:/ruby/bin/gem.bat:19: uninitialized constant Gem::GemRunner  
> \> (NameError)
> 
> \> T.
> 
> Something must be wrong with your Ruby or RubyGems install. I just  
> install the 1.8.6-25 one-click-installer in a virtual of XP and  
> everything worked fine. Here are the steps I followed.
> 
> Add c:\ruby\bin to the beginning of my PATH.
> 
> c:\\> gem up --system
> 
> (ran that twice)

I can't get this far b/c of:

&nbsp;&nbsp;C:\Documents and Settings\Milton\My Documents\Tom\>gem up --system  
&nbsp;&nbsp;Updating RubyGems...  
&nbsp;&nbsp;ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)  
&nbsp;&nbsp;&nbsp;&nbsp;getaddrinfo: no address associated with hostname.(SocketError)

&nbsp;&nbsp;C:\Documents and Settings\Milton\My Documents\Tom\>gem up --system --  
no-http-proxy  
&nbsp;&nbsp;ERROR: While executing gem ... (NoMethodError)  
&nbsp;&nbsp;&nbsp;&nbsp;undefined method `=' for #\<Gem::ConfigFile:0x2df78f0\>

> From what I gather this is a Firewall issue. But I have yet to find

anyone with a solution, though the problem mentioned enough (just do a  
Google search on it). Most cases it's people trying to install Rails,  
so they just end up manually installing Rails instead. If it is a  
Firewall issue shouldn't be a simple a matter of opening up the right  
port? What port is it?

T.

> **···**
>
> On Oct 1, 10:54 pm, Kevin Williams \<kev...@gmail.com\> wrote:

---

<div class="post-metadata">

**Author:** ![7rans](https://avatars.discourse-cdn.com/v4/letter/7/a8b319/32.png) [@7rans](https://rubytalk.org/u/7rans)\
**Post date:** [2 October 2007 16:42 UTC](https://rubytalk.org/t/working-rubygems-on-windows/41084/9 "2007-10-02T16:42:09Z")

</div>

Sorry. At the time I thought we had gotten past the proxy problem. I  
replied as requested.

T.

> **···**
>
> On Oct 2, 9:22 am, Eric Hodel \<drbr...@segment7.net\> wrote:
> 
> > On Oct 2, 2007, at 08:03 , Trans wrote:
> > 
> > \> On Oct 1, 5:07 pm, Eric Hodel \<drbr...@segment7.net\> wrote:  
> > \>\> On Oct 1, 2007, at 10:43 , Trans wrote:  
> > \>\>\> I really need to get RubyGems working on Windows. Versions 0.9.2,  
> > \>\>\> 0.9.4 and current trunk all fail. Can someone recommend a  
> > \>\>\> solution. Is  
> > \>\>\> there an old version that I can install that's sure to work?
> > 
> > \>\> I spent many hours with Curt Hibbs getting the one-click installer's  
> > \>\> RubyGems working correctly. We were both satisfied by it when the  
> > \>\> last one-click shipped.
> > 
> > \> I don't know what to tell you then. It's not working for me. I just  
> > \> removed everything and tried again. I downloaded the OneClickInstaller  
> > \> from ruby-lang.org ([http://rubyforge.org/frs/download.php/18566/](http://rubyforge.org/frs/download.php/18566/)  
> > \> ruby186-25.exe). Installed it. And then did:
> > 
> > \> C:\Documents and Settings\Milton\My Documents\Tom\>gem install  
> > \> rubyscript2exe  
> > \> ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)  
> > \> getaddrinfo: no address associated with hostname.(SocketError)
> > 
> > I can not fix your inability to resolve the address of a hostname  
> > with any change to RubyGems. I gave you a command to run that would  
> > give me what you were trying to connect to in [ruby-talk:271292], and  
> > you never responded with the output.
> > 
> > \> C:\Documents and Settings\Milton\My Documents\Tom\>gem install  
> > \> rubyscript2exe --no-http-proxy  
> > \> ERROR: While executing gem ... (NoMethodError)  
> > \> undefined method `=' for #\<Gem::ConfigFile:0x2df7864\>
> > 
> > \> C:\Documents and Settings\Milton\My Documents\Tom\>gem --version  
> > \> 0.9.2
> > 
> > I asked you if you were using a proxy server in [ruby-talk:271292]  
> > and you never answered that question either.
> > 
> > I have tried to help you, but you have not responded to my requests  
> > for information. Go back to [ruby-talk:271292] and reply to that  
> > email with the information I've requested. I can not help you  
> > without it.
