I am trying to use rubygems to install rails but I am behind a proxy that requires authentication. I am trying to use the following: gem install rails --include-dependencies -p (I have HTTP_PROXY set to ''http://myurl:8080'' I get the following error ERROR: While executing gem ... (Gem::RemoteSource Exception) HTTP Response 407 I need to authenticate on the proxy server with a username/pass but cannot find any documentation showing how to pass this to the proxy. Any ideas? Dave -- Dave Thompson http://dathompson.blogspot.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Klodus Klodus
2007-Nov-30 21:05 UTC
Re: [RAILS]Using Gems through proxy with authentication
Try this: HTTP_PROXY=''http://user:pass@proxy_url:port'' klodus Dave Thompson wrote:> I am trying to use rubygems to install rails but I am behind a proxy > that requires authentication. > > I am trying to use the following: > > gem install rails --include-dependencies -p (I have HTTP_PROXY set > to ''http://myurl:8080'' > > I get the following error > > ERROR: While executing gem ... (Gem::RemoteSource Exception) > HTTP Response 407 > > I need to authenticate on the proxy server with a username/pass but > cannot find any documentation showing how to pass this to the proxy. > > Any ideas? > > Dave > > -- > Dave Thompson > http://dathompson.blogspot.com-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---