首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在Windows上安装ruby-debug gem

无法在Windows上安装ruby-debug gem
EN

Stack Overflow用户
提问于 2009-12-29 09:35:16
回答 7查看 11K关注 0票数 8

我在windows上安装Ruby-Debug Gem时遇到了问题。这个错误是什么意思?我该如何解决这个问题呢?谢谢

代码语言:javascript
复制
C:\Users\Steve>gem install ruby-debug
Building native extensions. This could take a while...
ERROR: Error installing ruby-debug:
ERROR: Failed to build gem native extension.
C:/Ruby19/bin/ruby.exe extconf.rb
Can't handle 1.9.x yet
*** 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:/Ruby19/bin/ruby
Gem files will remain installed in C:/Ruby19/lib/ruby/gems/1.9.1/gems/linecache-
0.43 for inspection.
Results logged to C:/Ruby19/lib/ruby/gems/1.9.1/gems/linecache-0.43/ext/gem_make
.out 

我有以下宝石:

代码语言:javascript
复制
actionpack (2.3.5, 2.3.3)
activerecord (2.3.5, 2.3.3)
activeresource (2.3.5, 2.3.3)
activesupport (2.3.5, 2.3.3)
columnize (0.3.1)
json_pure (1.2.0)
rack (1.0.1)
rails (2.3.5, 2.3.3)
rake (0.8.7)
rmagick (1.14.1)
rubyforge (2.0.3)
rubygems-update (1.3.5)
sqlite3-ruby (1.2.5) 
with rails version 3.3.5
EN

回答 7

Stack Overflow用户

发布于 2010-09-23 04:25:17

执行以下命令及其工作

C:\Users\Steve>gem安装ruby-debug --platform=mswin32

票数 19
EN

Stack Overflow用户

发布于 2010-03-05 06:23:32

我遇到了同样的问题。以下步骤应该可以帮助您完成以下操作:

  1. 使用
  2. Install
  3. Install ruby -debug19而不是ruby-debug安装ruby。

gem安装ruby-debug19

票数 12
EN

Stack Overflow用户

发布于 2009-12-29 09:58:35

运行: gem install ruby-debug19

More info...

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/1972494

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档