Hi I am getting the following error when i tried to install rails in windows using command prompt.... Attempting remote installation of ''rails'' Updating Gem source index for: http://gems.rubyforge.org ERROR: While executing gem ... (Gem::RemoteSourceException) Error fetching remote gem cache: getaddrinfo: no address associated with hostname. There are proxy settings in my institute and i need to set it up from the command prompt? pls explain with an example.. Thanks in Advance.. -- Posted via http://www.ruby-forum.com/.
On 3/27/06, Hari Natarajan <hari_natraj@yahoo.com> wrote:> > There are proxy settings in my institute and i need to set it up from > the command prompt? pls explain with an example.. >Hari, You can tell gem to use a proxy server by (I believe) either setting the HTTP_PROXY environment variable, or by setting the -p (--http-proxy) flag when invoking gem. e.g. $ export HTTP_PROXY=http://myproxy:80/ $ gem install foo or $ gem install --http-proxy http://myproxy:80/ foo ~ j. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060327/cdd2a211/attachment.html
I''m not the best person to answer Windows questions. Haven''t used it for a good long while. (emphasis on the ''good'') But if you know the url for your proxy, you can set up gem to go through it Look here: http://docs.rubygems.org/read/chapter/13 in section 5.10 -sean Hari Natarajan wrote:> Hi > I am getting the following error when i tried to install rails in > windows using command prompt.... > > Attempting remote installation of ''rails'' > Updating Gem source index for: http://gems.rubyforge.org > ERROR: While executing gem ... (Gem::RemoteSourceException) > Error fetching remote gem cache: getaddrinfo: no address associated > with hostname. > > There are proxy settings in my institute and i need to set it up from > the command prompt? pls explain with an example.. > > Thanks in Advance..-- Posted via http://www.ruby-forum.com/.
thanx but i''m using windows and tats the problemm..if it hab been linux i could have installed it earlier itself John Barnette wrote:> On 3/27/06, Hari Natarajan <hari_natraj@yahoo.com> wrote: >> >> There are proxy settings in my institute and i need to set it up from >> the command prompt? pls explain with an example.. >> > > Hari, > > You can tell gem to use a proxy server by (I believe) either setting the > HTTP_PROXY environment variable, or by setting the -p (--http-proxy) > flag > when invoking gem. e.g. > > $ export HTTP_PROXY=http://myproxy:80/ > $ gem install foo > > or > > $ gem install --http-proxy http://myproxy:80/ foo > > > ~ j.-- Posted via http://www.ruby-forum.com/.
Hi, I can''t seem to get gem to install rails on my machine :(. What I see displayed is this: (after running "gem install rails --include-dependencies" ==Upgrading installed gems.. Updating Gem source index for: http://gems.rubyforge.org ERROR: While executing gem ... (Errno::EINVAL) Invalid argument == I''ve tried googling for answers and tried basically everything I could, including disabling my firewall and switching off my anti-virus, attaching "--http-proxy" to the install command, and resetting my winsock (via "netsh winsock reset"). Nothing seems to work :(. I can''t even run "gem update"... I''d really appreciate any help on this matter. Thanks in advance! --------------------------------- Do you Yahoo!? Yahoo! Movies - Search movie info and celeb profiles and photos. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060401/d940fd4f/attachment.html
Hi, In Windows, you can directly set the environment variables in the command prompt. Set the variables HTTP_PROXY, HTTP_PROXY_USER and HTTP_PROXY_PASS, and then execute "gem install rails --remote". This should make it work. Thanks!!!
John Barnette wrote:> On 3/27/06, Hari Natarajan <hari_natraj-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote: >> >> There are proxy settings in my institute and i need to set it up from >> the command prompt? pls explain with an example.. >> > > Hari, > > You can tell gem to use a proxy server by (I believe) either setting the > HTTP_PROXY environment variable, or by setting the -p (--http-proxy) > flag > when invoking gem. e.g. > > $ export HTTP_PROXY=http://myproxy:80/ > $ gem install foo > > or > > $ gem install --http-proxy http://myproxy:80/ foo > > > ~ j.EXCELENTE ME FUNCIONO CON set HTTP_PROXY=http://MIPROXY:8080/ -- 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 -~----------~----~----~----~------~----~------~--~---