# Gem install can not work in Cygwin Ruby1.9?

**URL:** <https://www.ruby-forum.com/t/gem-install-can-not-work-in-cygwin-ruby1-9/124205>\
**Category:** Ruby\
**Created:** [December 26, 2007, 1:40pm UTC](https://www.ruby-forum.com/t/gem-install-can-not-work-in-cygwin-ruby1-9/124205 "2007-12-26T13:40:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phoenix520](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/6f9a4e/32.png) [@phoenix520](https://www.ruby-forum.com/u/phoenix520)\
**Post date:** [December 26, 2007, 1:40pm UTC](https://www.ruby-forum.com/t/gem-install-can-not-work-in-cygwin-ruby1-9/124205/1 "2007-12-26T13:40:34Z")

</div>

$ ruby -v  
ruby 1.9.0 (2007-12-25 revision 14709) [i386-cygwin]

‘gem install \*\*’ will raise Timeout::Error forever in Cygwin Ruby1.9!

ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)  
execution expired (Timeout::Error)  
getting size of [http://gems.rubyforge.org/Marshal.4.8](http://gems.rubyforge.org/Marshal.4.8)

However,I can get ‘[http://gems.rubyforge.org/Marshal.4.8](http://gems.rubyforge.org/Marshal.4.8)’ quickly use  
some code in irb:  
irb(main):001:0\> require ‘net/http’  
=\> true  
irb(main):002:0\> http = Net::HTTP.new(‘[gems.rubyforge.org](http://gems.rubyforge.org)’,80)  
=\> #\<Net::HTTP [gems.rubyforge.org:80](http://gems.rubyforge.org:80) open=false\>  
irb(main):003:0\> request = Net::HTTP::Head.new(‘/Marshal.4.8’)  
=\> #\<Net::HTTP::Head HEAD\>  
irb(main):004:0\> resp = http.request request  
=\> #\<Net::HTTPOK 200 OK readbody=true\>

‘gem install \*\*’ will work fine both in my windows Ruby1.9 and in Ubuntu  
Ruby1.9,and they are all compiled from the same source.  
I have try more than 20 times,and ‘gem install \*\*’ will raise  
Timeout::Error forever,how can I resolve it?
