Working RubyGems on Windows

T

Trans

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.
 
D

dima

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.
 
T

Trans

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.

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

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.
 
E

Eric Hodel

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.
 
K

Kevin Williams

Trans said:
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)

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

(followed the fix here:
http://www.nabble.com/Zlib::BufError-t4011137.html)

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.
 
T

Trans

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/
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)

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

T.
 
T

Trans

Trans said:
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)

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:

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

C:\Documents and Settings\Milton\My Documents\Tom>gem up --system --
no-http-proxy
ERROR: While executing gem ... (NoMethodError)
undefined method `[]=' for # said:
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.
 
E

Eric Hodel

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/
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.
 
T

Trans

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/
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.

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

T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
474,266
Messages
2,571,342
Members
48,018
Latest member
DelilahDen

Latest Threads

Top