Is there anything you have to do after installing the Windows
OneClickInstaller? I did so and then tried to use RubyGems with now
success. First I tried:
gem install rubyscript2exe
but got
getaddrinfo: no address associated with hostname.(SocketError)
Is there anything you have to do after installing the Windows
OneClickInstaller? I did so and then tried to use RubyGems with now
success. First I tried:
gem install rubyscript2exe
but got
getaddrinfo: no address associated with hostname.(SocketError)
This tells me that you weren’t attached to the internet, or were
having problems with DNS.
While there could be a corner I’ve missed, I don’t believe that
RubyGems prints out just an exception message and nothing else.
Please paste the full command output.
So I download the latest 0.9.4 version of RubyGems
Last I checked the one click installer shipped with 0.9.4. gem env
will give you the version of RubyGems you have installed.
getaddrinfo: no address associated with hostname.(SocketError)
Last I checked the one click installer shipped with 0.9.4. gem env
will give you the version of RubyGems you have installed.
I downloaded what was on ruby-lang.org and it install RubyGems 0.9.2;
I was able to upgrade to 0.9.4 manually --I ran setup.rb a second time
and somehow it resolved the problem there. However, I still get the
same errors trying to use RubyGems. This is the exact CLI text:
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 -n
o-http-proxy
ERROR: While executing gem … (NoMethodError)
undefined method `[]=’ for #Gem::ConfigFile:0x2e2ebc0
On Sep 26, 2007, at 19:25 , M. Edward (Ed) Borasky wrote:
Are you behind a firewall? I’m not sure RubyGems is sneaky enough to
deal with proxy servers.
RubyGems has dealt with proxy servers for ages.
Yes, but there’s a special place in Heck reserved for the guy who
designed the NTLM proxy servers :). I have to use “aps”, which is
written in (gasp) Python when I’m behind one of those, and mess with
“http_proxy” environment variables. Can’t RubyGems do that directly?
Just ask me, “what’s your NTLM password” and go get gems? Apparently
not. Then again, neither can ActiveState’s Perl Package Manager.
getaddrinfo: no address associated with hostname.(SocketError)
Last I checked the one click installer shipped with 0.9.4. gem env
getaddrinfo: no address associated with hostname.(SocketError)
Check gem sources to see what hosts you are attempting to attach
to. If you are having problems with DNS, no changes to RubyGems are
going to fix your DNS.
C:\Documents and Settings\Milton\My Documents\Tom>gem install
rubyscript2exe -n
o-http-proxy
ERROR: While executing gem … (NoMethodError)
undefined method `[]=’ for #Gem::ConfigFile:0x2e2ebc0
This is a bug that has been fixed.
Are you using a proxy server? If you are and you set --no-http-
proxy, you probably won’t be able to connect.
written in (gasp) Python when I’m behind one of those, and mess
I’ve patched on my PC and posted on the ticket how I did it. The link
is http://rubyforge.org/tracker/?
func=detail&atid=575&aid=12887&group_id=126
install a gem.cmd, but either it wasn’t, or gem.bat gets picked over
gem.cmd automatically.
The install failed, and you don’t have /path/to/ruby/site_ruby/
/rubygems/gem_runner.rb
There is some other bug in gem_runner that gave a syntax error, so
svn up and try again.
Something else is wrong with your machine.
Hmmm… okay, since I upgraded from 0.9.2 (from OneClickInstaller) to
0.9.4 using setup.rb and then the same with trunk I’m assuming the
first reason you mention. I’'d delete the whole shebang and try
reinstalling.
gem.bat cannot work with RubyGems, as it is too old. RubyGems should
install a gem.cmd, but either it wasn’t, or gem.bat gets picked over
gem.cmd automatically.
The install failed, and you don’t have /path/to/ruby/site_ruby/
/rubygems/gem_runner.rb
There is some other bug in gem_runner that gave a syntax error, so
svn up and try again.
install a gem.cmd, but either it wasn’t, or gem.bat gets picked over
gem.cmd automatically.
The install failed, and you don’t have /path/to/ruby/site_ruby/
/rubygems/gem_runner.rb
There is some other bug in gem_runner that gave a syntax error, so
svn up and try again.
Something else is wrong with your machine.
Hmmm… okay, since I upgraded from 0.9.2 (from OneClickInstaller) to
0.9.4 using setup.rb and then the same with trunk I’m assuming the
first reason you mention. I’'d delete the whole shebang and try
reinstalling.
T.
One-Click-Installer (OCI) encapsulates the gem gemwhich and the other
rubygems scripts into .cmd files (and remove the plain scripts).
When you install rubygems from source (setup.rb) it creates the gem
scripts and also the stubs .bat ← note the different extension from
.cmd.
On XP/2000 platforms, .cmd is preferred over .bat files, so the old
script get run instead of the new one.
Just remove the .cmd files that match existing .bat from Ruby\bin and
guess that could work for you.
(In case you solved the no-connection-to-internet shown before)
gem install rubyscript2exe
Please paste the full command output.
rubyscript2exe -n
o-http-proxy
ERROR: While executing gem … (NoMethodError)
undefined method `[]=’ for #Gem::ConfigFile:0x2e2ebc0
This is a bug that has been fixed.
Are you using a proxy server? If you are and you set --no-http-
proxy, you probably won’t be able to connect.
No.
However, I deactivated the Firewalls (turns out there were two on this
machine Microsoft’s and Norton’s) and then it worked. So it’s
definitely a Firewall issue.
T.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.