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 Kousen P.S. Eventually it all worked and the client was very impressed. :-) -- Kenneth A. Kousen, Ph.D. President Kousen IT, Inc. <http://www.kousenit.com> http://www.kousenit.com <mailto:ken.kousen@kousenit.com> ken.kousen@kousenit.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060202/78c952d7/attachment-0001.html
On Feb 1, 2006, at 5:53 PM, Ken Kousen wrote:> 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 Kousen > > > > P.S. Eventually it all worked and the client was very impressed. J > > > > -- > > Kenneth A. Kousen, Ph.D. > > President > > Kousen IT, Inc. > > http://www.kousenit.com > > ken.kousen@kousenit.com > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails$ gem help install ... -p, --[no-]http-proxy [URL] Use HTTP proxy for remote operations ... Or you can set the HTTP_PROXY environment variable. Gem expects an URL with protocol. E.g., http://proxy.company.com:8080
You know, I only looked at "gem help install" about a dozen times and never saw the -p option. Sigh. Live and learn, I guess. Thanks for the info. Ken -- Kenneth A. Kousen, Ph.D. President Kousen IT, Inc. http://www.kousenit.com ken.kousen@kousenit.com -----Original Message----- From: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Scott Willson Sent: Wednesday, February 01, 2006 10:53 PM To: rails@lists.rubyonrails.org Subject: Re: [Rails] Installation behind a proxy On Feb 1, 2006, at 5:53 PM, Ken Kousen wrote:> 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 Kousen > > > > P.S. Eventually it all worked and the client was very impressed. J > > > > -- > > Kenneth A. Kousen, Ph.D. > > President > > Kousen IT, Inc. > > http://www.kousenit.com > > ken.kousen@kousenit.com > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails$ gem help install ... -p, --[no-]http-proxy [URL] Use HTTP proxy for remote operations ... Or you can set the HTTP_PROXY environment variable. Gem expects an URL with protocol. E.g., http://proxy.company.com:8080_______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails