在本地安装ruby-debug19
发布时间:2020-12-17 01:51:30 所属栏目:百科 来源:网络整理
导读:我目前在 Windows XP 32位机器上运行 Ruby 1.9.2p0.自从我们升级到Ruby 1.9以来,我无法进行任何形式的调试.我被告知你需要新的ruby-debug19 gem才能让事情运行起来.问题是,我公司的代理阻止了gem依赖管理器连接外部存储库.没关系,我会自己下载gem并在本地安
我目前在
Windows XP 32位机器上运行
Ruby 1.9.2p0.自从我们升级到Ruby 1.9以来,我无法进行任何形式的调试.我被告知你需要新的ruby-debug19 gem才能让事情运行起来.问题是,我公司的代理阻止了gem依赖管理器连接外部存储库.没关系,我会自己下载gem并在本地安装.结果:
ERROR: Error installing ruby-debug19-0.11.6.gem: ERROR: Failed to build gem native extension. C:/Ruby192/bin/ruby.exe extconf.rb --with-ruby-include=C:Ruby192include 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=C:/Ruby192/bin/ruby --with-ruby-dir --without-ruby-dir --with-ruby-include=${ruby-dir}/include --with-ruby-lib --without-ruby-lib=${ruby-dir}/lib C:/Ruby192/lib/ruby/1.9.1/net/http.rb:644:in `initialize': A connection attempt failed because the connected party did not properly respond after a period of time,or established connection failed because connected host has failed to respond. - connect(2) (Errno::ETIMEDOUT) from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:644:in `open' from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:644:in `block in connect' from C:/Ruby192/lib/ruby/1.9.1/timeout.rb:44:in `timeout' from C:/Ruby192/lib/ruby/1.9.1/timeout.rb:87:in `timeout' from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:644:in `connect' from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:637:in `do_start' from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:626:in `start' from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:1160:in `request' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.4/lib/contrib/uri_ext.rb:239:in `block in read' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.4/lib/contrib/uri_ext.rb:286:in `connect' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.4/lib/contrib/uri_ext.rb:234:in `read' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.4/lib/contrib/uri_ext.rb:128:in `download' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.4/lib/ruby_core_source.rb:55:in `block in create_makefile_with_core' from C:/Ruby192/lib/ruby/1.9.1/tempfile.rb:320:in `open' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.4/lib/ruby_core_source.rb:51:in `create_makefile_with_core' from extconf.rb:20:in `<main>' Requesting http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p0.tar.gz Gem files will remain installed in C:/Ruby192/lib/ruby/gems/1.9.1/gems/linecache19-0.5.11 for inspection. Results logged to C:/Ruby192/lib/ruby/gems/1.9.1/gems/linecache19-0.5.11/ext/trace_nums/gem_make.out 也许我做出了不合理的假设,因为我对Ruby很新,但看起来安装脚本试图连接外部存储库以获取某些内容.如果是这样,这是荒谬的,如果我能够自动地与经理这样做,为什么我会在本地安装gem?有没有人知道我可以以纯粹的本地离线方式安装调试器?我感谢任何帮助. 解决方法
我有完全相同的问题,我是第二个Luis Lavena –
只需将ruby源中的所有* .h和* .inc文件复制到此命令打印出来的目录中: ruby -rmkmf -e 'puts Config::CONFIG["rubyhdrdir"] + "/" + "ruby-" + RUBY_VERSION.to_s + "-p" + RUBY_PATCHLEVEL.to_s' 然后ruby_core_source将找到这些并愉快地继续安装. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |