On Oct 12, 2005, at 6:16 PM, Panks wrote:
> I recently found about this wonderful framework and trying to develop
> a web
> application on rails... I used One click windows installer to install
> ruby
> and rails then as the guidelines suggested I tried to run "gem
update"
> from
> a command line but that just hangs ...I tried to ping rubyforge.org
> from my
> command line ..but that timeout..my browser has no problem in
> coonecting to
> rubyforge.org.
>
> Does anyone else ran into this problem ? I appreicate any insights.
>
> Just so you know..I am behind a corporate firewall...I dont know if
> that is
> a problem...?
Panks,
It sounds like you''re behind a proxy. gem includes an argument for
specifying your proxy with:
gem <commands> --http-proxy=http://www.myproxy.com
where <commands> is any valid command for gem, such as update or
install rails.
If your proxy is windows based (ISA is evil), you''ll need to
authenticate through NTLM for the above to work. I''ve had success
using the apserver local proxy [1], which requires python to run (ah,
sweet open-source dependency goodness). It''s fairly easy to set up and
only requires a bit of configuration.
You can also find more information about using gem through a proxy on
the wiki[2], under the heading: Running gem install when you are behind
a proxy.
- Stephen
[1] http://apserver.sourceforge.net/
[2] http://wiki.rubyonrails.com/rails/pages/GemRails