Re: [RubyInstaller] Cannot install ruby-debug for ruby 1.9.3 on Win7 64 bit

184 views
Skip to first unread message

Luis Lavena

unread,
May 10, 2013, 9:43:23 AM5/10/13
to rubyin...@googlegroups.com
Hello,

Please see answers inline below...

On Fri, May 10, 2013 at 7:11 AM, Dat Nguyen <ngatr...@gmail.com> wrote:
Hi All,

1.I installed ruby 1.9.3 for win7 successfully
2. I extract DevKit 3.4.5.2 an install successfully
3.But when i run C:\Ruby193\gem install ruby-debug-base193 --http-proxy=http://10.10.10.10:8080/ but not complete
The log showed :


First point: you're behind a proxy. Remember this later on.
 
Second point: you're using ruby-debug-base193, that gem I'm not familiar with, only ruby-debug-base. The author of that gem:


Has no provided any link to the source code so we can see the differences between this and ruby-debug-base.

C:\Ruby193>gem install ruby-debug-base193 --http-proxy=http://10.10.10.10:8080/
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing ruby-debug-base193:
        ERROR: Failed to build gem native extension.

        C:/Ruby193/bin/ruby.exe extconf.rb
checking for vm_core.h... no
C:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.5/lib/ruby_core_source.
rb:39: Use RbConfig instead of obsolete and deprecated Config.
checking for vm_core.h... no

ruby_core_source, a gem dependency, will attempt to download Ruby source code:
 
C:/Ruby193/lib/ruby/1.9.1/net/http.rb:762:in `initialize': A connection attempt
failed because the connected party did not properly respond after a period of ti
me, or established connection failed because connected host has failed to respon
d. - connect(2) (Errno::ETIMEDOUT)
        from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:762:in `open'


And it is failing because you're behind a proxy.

The code in ruby_core_source is not aware that you're behind a proxy, simply because the code is not considering that scenario.

In theory, if you setup HTTP_PROXY environment variable prior calling gem install, Net::HTTP (used by ruby_core_source) should work.

Please note that I'm guessing based on some documentation, it might not work, in which case you should report to ruby_core_source author that he should add support/detection for HTTP_PROXY environment variable.

The repository is here:
-- 
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry
Reply all
Reply to author
Forward
0 new messages