[ruby-core:63493] [ruby-trunk - Bug #9690] Better orror message for config.guess downloading

From: usa@...
Date: 2014-07-02 07:02:02 UTC
List: ruby-core #63493
Issue #9690 has been updated by Usaku NAKAMURA.

Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN to 2.0.0: DONTNEED, 2.1:=
 UNKNOWN

----------------------------------------
Bug #9690: Better orror message for config.guess downloading
https://bugs.ruby-lang.org/issues/9690#change-47536

* Author: Martin D=C3=BCrst
* Status: Closed
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* Category: build
* Target version: current: 2.2.0
* ruby -v: ruby 2.0.0p353 (this is baseruby)
* Backport: 2.0.0: DONTNEED, 2.1: UNKNOWN
----------------------------------------
I recently tried to compile Ruby on a new machine and got the error below:

Trying again today, it suddenly worked, but I think it would be great if th=
ere were a better error message. "getaddrinfo: Name or service not known (S=
ocketError)" doesn't even say what it tried to download. Knowing what it tr=
ied to download could easily help to try download it by hand, see if the sy=
stem is actually connected to the outside, and so on.

>>>>
Downloading config.guess.../usr/share/ruby/net/http.rb:878:in `initialize':=
 getaddrinfo: Name or service not known (SocketError)
        from /usr/share/ruby/net/http.rb:878:in `open'
        from /usr/share/ruby/net/http.rb:878:in `block in connect'
        from /usr/share/ruby/timeout.rb:52:in `timeout'
        from /usr/share/ruby/net/http.rb:877:in `connect'
        from /usr/share/ruby/net/http.rb:862:in `do_start'
        from /usr/share/ruby/net/http.rb:851:in `start'
        from /usr/share/ruby/open-uri.rb:313:in `open_http'
        from /usr/share/ruby/open-uri.rb:708:in `buffer_open'
        from /usr/share/ruby/open-uri.rb:210:in `block in open_loop'
        from /usr/share/ruby/open-uri.rb:208:in `catch'
        from /usr/share/ruby/open-uri.rb:208:in `open_loop'
        from /usr/share/ruby/open-uri.rb:149:in `open_uri'
        from /usr/share/ruby/open-uri.rb:688:in `open'
        from /usr/share/ruby/open-uri.rb:696:in `read'
        from /home/duerst/ruby/tool/config_files.rb:5:in `download'
        from get-config_files:5:in `block in <main>'
        from get-config_files:3:in `each'
        from get-config_files:3:in `<main>'
checking build system type... /bin/sh: tool/config.guess: No such file or d=
irectory
configure: error: cannot guess build type; you must specify one
>>>>





--=20
https://bugs.ruby-lang.org/

In This Thread

Prev Next