无法在 Windows 上安装 ruby​​-debug gem [英] Cannot install ruby-debug gem on Windows

查看:17
本文介绍了无法在 Windows 上安装 ruby​​-debug gem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Windows 上安装 Ruby-Debug Gem 时遇到问题.这个错误是什么意思?我怎样才能解决这个问题?谢谢

I'm having trouble installing the Ruby-Debug Gem on windows. What does this error mean? How can I fix this? Thanks

C:UsersSteve>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 

我有以下宝石:

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

推荐答案

执行以下命令及其工作原理

Execute Below command and its works

C:UsersSteve>gem install ruby​​-debug --platform=mswin32

C:UsersSteve>gem install ruby-debug --platform=mswin32

这篇关于无法在 Windows 上安装 ruby​​-debug gem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆