Note that there are some explanatory texts on larger screens.

plurals
  1. POgem install ruby-debug19 fails
    primarykey
    data
    text
    <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/1083451/debugging-in-ruby-1-9">Debugging in ruby 1.9</a> </p> </blockquote> <p>I am unable to install ruby-debug19. I tried to follow <a href="http://isitruby19.com/linecache19" rel="nofollow noreferrer">http://isitruby19.com/linecache19</a> BUT it didnot help me I also followed the steps in <a href="https://stackoverflow.com/questions/7700828/installing-gems-without-rvm-as-root-with-explicit-version-of-ruby/7781550#7781550">Installing Gems without rvm, as root, with explicit version of ruby</a> that also didnt help</p> <p>======================================</p> <pre><code>&gt; root@vm:/# ruby -v ruby &gt; 1.9.2p290 (2011-07-09 revision 32553) [i686-linux] </code></pre> <p>======================================</p> <pre><code>&gt; root@vm:/# gem -v &gt; 1.8.10 </code></pre> <p>======================================</p> <pre><code>&gt; root@vm:~/# uname -a &gt; Linux vm 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:50:42 UTC 2011 i686 i686 386 GNU/Linux </code></pre> <p>======================================</p> <blockquote> <p><code>root@vm:~# sudo gem install ruby-debug19</code></p> </blockquote> <pre><code> Building native extensions. This could take a while... ERROR: Error installing ruby-debug19: ERROR: Failed to build gem native extension. /usr/local/bin/ruby extconf.rb checking for vm_core.h... no checking for vm_core.h... no *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/local/bin/ruby --with-ruby-dir --without-ruby-dir --with-ruby-include --without-ruby-include=${ruby-dir}/include --with-ruby-lib --without-ruby-lib=${ruby-dir}/lib /usr/local/lib/ruby/1.9.1/net/http.rb:644:in `initialize': Connection timed out - connect(2) (Errno::ETIMEDOUT) from /usr/local/lib/ruby/1.9.1/net/http.rb:644:in `open' from /usr/local/lib/ruby/1.9.1/net/http.rb:644:in `block in connect' from /usr/local/lib/ruby/1.9.1/timeout.rb:44:in `timeout' from /usr/local/lib/ruby/1.9.1/timeout.rb:89:in `timeout' from /usr/local/lib/ruby/1.9.1/net/http.rb:644:in `connect' from /usr/local/lib/ruby/1.9.1/net/http.rb:637:in `do_start' from /usr/local/lib/ruby/1.9.1/net/http.rb:626:in `start' from /usr/local/lib/ruby/1.9.1/net/http.rb:1168:in `request' from /usr/local/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.5/lib/contrib/uri_ext.rb:239:in `block in read' from /usr/local/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.5/lib/contrib/uri_ext.rb:286:in `connect' from /usr/local/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.5/lib/contrib/uri_ext.rb:234:in `read' from /usr/local/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.5/lib/contrib/uri_ext.rb:128:in `download' from /usr/local/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:55:in `block in create_makefile_with_core' from /usr/local/lib/ruby/1.9.1/tempfile.rb:320:in `open' from /usr/local/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:51:in `create_makefile_with_core' from extconf.rb:19:in `&lt;main&gt;' Requesting http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/linecache19-0.5.12 for inspection. Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/linecache19-0.5.12/ext/trace_nums/gem_make.out </code></pre> <p><a href="https://stackoverflow.com/questions/4169169/installing-ruby-debug19-locally">Installing ruby-debug19 locally</a> I got the answer to the question from above link which worked basically put all *.h *.c *.inc files into below folder</p> <pre><code>ruby -rmkmf -e 'puts Config::CONFIG["rubyhdrdir"] + "/" + "ruby-" + RUBY_VERSION.to_s + "-p" + RUBY_PATCHLEVEL.to_s' </code></pre> <p>But i am not happy with this soultion. If i ask a customer to install ruby i can hardly expect to sell this particular solution to the problem.</p> <p>So is there a way to avoid this copying? </p> <p>Can someone please help me. Thanks Su</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload