错误gem安装调试器-v' 1.6.8'

时间:2015-05-25 19:49:46

标签: ruby-on-rails ruby windows gem

我正在尝试捆绑更新和捆绑安装但我在gem install debugger -v '1.6.8'时遇到安装调试器的错误:错误:无法构建gem原生扩展。它还说make failed, exit code 2Gem files will remain installed in ....

我有ruby 1.9.3p551,我的gem安装了rails 3.2.19。我在Windows上。

我已经尝试了bundle update debuggergem update debugger-ruby_core_source,但两者都是最新的。有人知道如何解决这个问题吗?

当我运行bundle update debugger时:

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    e:/Ruby193/bin/ruby.exe -r ./siteconf20150525-6232-uw5n6t.rb extconf.rb
checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.h... no
checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.h... no
checking for rb_method_entry_t.called_id in method.h... yes
checking for vm_core.h... yes
checking for iseq.h... yes
checking for insns.inc... yes
checking for insns_info.inc... yes
checking for eval_intern.h... yes
checking for struct iseq_line_info_entry in vm_core.h,iseq.h... no
checking for struct iseq_insn_info_entry in vm_core.h,iseq.h... yes
checking for if rb_iseq_compile_with_option was added an argument filepath... yes creating Makefile

make  clean
Makefile:165: *** target pattern contains no `%'.  Stop.

make
Makefile:165: *** target pattern contains no `%'.  Stop.

make failed, exit code 2

Gem files will remain installed in e:/Ruby193/lib/ruby/gems/1.9.1/gems/debugger-1.6.8 for inspection.
Results logged to e:/Ruby193/lib/ruby/gems/1.9.1/extensions/x86-mingw32/1.9.1/debugger-1.6.8/gem_make.out
An error occurred while installing debugger (1.6.8), and Bundler cannot continue.
Make sure that `gem install debugger -v '1.6.8'` succeeds before bundling.`

当我运行gem install debugger -v '1.6.8'时:

Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing debugger:
        ERROR: Failed to build gem native extension.

    e:/Ruby193/bin/ruby.exe -r ./siteconf20150525-1772-grdsdf.rb extconf.rb
checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.h... no
checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.h... no
checking for rb_method_entry_t.called_id in method.h... yes
checking for vm_core.h... yes
checking for iseq.h... yes
checking for insns.inc... yes
checking for insns_info.inc... yes
checking for eval_intern.h... yes
checking for struct iseq_line_info_entry in vm_core.h,iseq.h... no
checking for struct iseq_insn_info_entry in vm_core.h,iseq.h... yes
checking for if rb_iseq_compile_with_option was added an argument filepath... yes
creating Makefile

make  clean
Makefile:165: *** target pattern contains no `%'.  Stop.

make
Makefile:165: *** target pattern contains no `%'.  Stop.

make failed, exit code 2

Gem files will remain installed in    e:/Ruby193/lib/ruby/gems/1.9.1/gems/debugger-1.6.8 for inspection.
Results logged to e:/Ruby193/lib/ruby/gems/1.9.1/extensions/x86-mingw32/1.9.1/debugger-1.6.8/gem_make.out

1 个答案:

答案 0 :(得分:1)

我得到了它的工作。由于RubyGems版本,错误出现了。 gem update --system 1.8.29似乎与1.8.x以上的RubyGems不兼容。要解决此问题,只需降级到RubyGems 1.8.29:This is the error Traceback (most recent call last): File "5.py", line 21, in <module> def y_model(z=z_true,a=H,b=O ): # this is my model like in on line examples (y=mx+c kind of ) File "/home/gaurav/anaconda/lib/python2.7/site-packages/pymc/InstantiationDecorators.py", line 250, in deterministic return instantiate_n(__func__) File "/home/gaurav/anaconda/lib/python2.7/site-packages/pymc/InstantiationDecorators.py", line 243, in instantiate_n return Deterministic(parents=parents, **kwds) File "/home/gaurav/anaconda/lib/python2.7/site-packages/pymc/PyMCObjects.py", line 442, in __init__ verbose=verbose) File "/home/gaurav/anaconda/lib/python2.7/site-packages/pymc/Node.py", line 219, in __init__ Node.__init__(self, doc, name, parents, cache_depth, verbose=verbose) File "/home/gaurav/anaconda/lib/python2.7/site-packages/pymc/Node.py", line 129, in __init__ self.parents = parents File "/home/gaurav/anaconda/lib/python2.7/site-packages/pymc/Node.py", line 152, in _set_parents self.gen_lazy_function() File "/home/gaurav/anaconda/lib/python2.7/site-packages/pymc/PyMCObjects.py", line 453, in gen_lazy_function self._value.force_compute() File "LazyFunction.pyx", line 257, in pymc.LazyFunction.LazyFunction.force_compute (pymc/LazyFunction.c:2409) File "5.py", line 22, in y_model nd1=(1+z_true)*integrate.quad(fun,0,z_true,O)/H File "/home/gaurav/anaconda/lib/python2.7/site-packages/scipy/integrate/quadpack.py", line 311, in quad points) File "/home/gaurav/anaconda/lib/python2.7/site-packages/scipy/integrate/quadpack.py", line 360, in _quad if (b != Inf and a != -Inf): ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()