Hi all,
I was a client site today on another project and we started talking
about
RoR. I wanted to show it in action, so I downloaded the one-click Ruby
installer for Windows and then tried to do “gem install Rails
-include-dependencies”. After a time-out period I received the
following
error:
ERROR: While executing gem.(Gem::RemoteSourceException)
Error fetching remote gem cache: getaddrinfo: no address associated
with
hostname
That brings me to question 1 (and 1a, I guess): Their site operates
behind a
proxy. Is that the issue here? What port does gems use, anyway?
From the RoR web site I found that I could download the Rails distribution.
I did so and unzipped it, but - I’m embarrassed to admit this - I didn’t
know what to do from there. So, question 2 (and 2a): how could I have
installed Rails from the zip file? Was it already installed and I
didn’t
realize it?
Ultimately, I went to RubyForge and downloaded the latest gems for
actionmailer, actionpack, actionwebservice, activerecord, activesupport,
rails (natch), and rake. Then I used gem to install them all locally.
I
even downloaded RadRails, since of course the Eclipse update link didn’t
work either.
So, finally, question 3 (and even 3a and 3b): how much of this grand
kludge
was actually necessary? How should I plan to handle this sort of
problem in
the future? And what was going on that I missed?
(By the way, before anyone suggests InstantRails - which admittedly
rocks -
I tried that. When I downloaded it, during the copy operation from a
temp
directory to C:\ the lovely Windows OS said that my disk was either
write-protected or full, neither of which was true. I downloaded and
unzipped other files both before and after that.)
Thanks for any help,
Ken K.
P.S. Eventually it all worked and the client was very impressed.
–
Kenneth A. Kousen, Ph.D.
President
Kousen IT, Inc.