我在使用带RadRails的ruby-debug调试应用程序时遇到问题。 我尝试使用gem install ruby-debug19安装gem -as我正在使用Ruby 1.9.1-p249但是我收到以下错误:
Microsoft Windows [Version 6.1.7600] 版权所有(c)2009 Microsoft Corporation。保留所有权利。
C:> gem install ruby-debug19 构建原生扩展。这可能需要一段时间...... 错误:安装ruby-debug19时出错: 错误:无法构建gem原生扩展。
C:/Ruby191/bin/ruby.exe extconf.rb 检查vm_core.h ... * extconf.rb失败* 由于某些原因,可能无法创建Makefile 必要的库和/或标题。检查mkmf.log文件以获取更多信息 细节。您可能需要配置选项。
提供配置选项:
--with-OPT-DIR
--without-OPT-DIR
--with-OPT-包括
--without-OPT-包括= $ {停用DIR} /包括
--with-OPT-LIB
--without-OPT-LIB = $ {选择-DIR} / lib目录
--with-MAKE-PROG
--without-MAKE-PROG
--srcdir =。
--curdir
--ruby = C:/ Ruby191 /斌/红宝石
--with-红宝石DIR
--without-红宝石DIR
--with-红宝石包括
--without-红宝石包括= $ {红宝石-DIR} /包括
--with-红宝石LIB
--without-红宝石-LIB = $ {红宝石-DIR} / lib中
C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:364:在try_do': The complier failed
to genera
te an executable file. (RuntimeError)
You have to install development tools first.
from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:433:in
try_cpp'中
来自C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:811:在block in
have_header'
from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:670:in
块中
checking_for”
来自C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:276:in block (2 levels)
in postp
one'
from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:250:in
open'
来自C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:276:in block in
postpone'
from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:250:in
open'
来自C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:272:in postpone'
from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:669:in
checking_for'
来自C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:810:在have_header'
from extconf.rb:15:in
块中'
从
C:/Ruby191/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.4/lib/ruby
_core_source.rb:18:in call'
from
C:/Ruby191/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.4/lib/ruby
_core_source.rb:18:in
create_makefile_with_core'
来自extconf.rb:20:在''
Gem文件将保持安装状态 C:/Ruby191/lib/ruby/gems/1.9.1/gems/linecache 19-0.5.11进行检查。 记录结果 C:/Ruby191/lib/ruby/gems/1.9.1/gems/linecache19-0.5.11/ext/tra ce_nums / gem_make.out
C:>
提前致谢!
答案 0 :(得分:0)
只是猜测......它找不到vm_core.h
,因此您必须使用-I<path>
设置该路径。
如果我建议您减轻痛苦,请使用Virtualbox + ubuntu + rvm。
答案 1 :(得分:0)
刚刚安装了RubyInstaller 1.9.2并且已经工作了