Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
gem install can not work in Cygwin Ruby1.9?
Wu Junchen
12/26/2007 12:41:00 PM
$ 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/M...
However,I can get '
http://gems.rubyforge.org/M...
' 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',80)
=> #<Net::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?
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
gem install can not work in Cygwin Ruby1.9?
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password