无法在Windows上安装ruby-debug gem
我在Windows上安装Ruby-Debug Gem时遇到问题。这个错误是什么意思?我怎样才能解决这个问题?由于无法在Windows上安装ruby-debug gem
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
我有以下的宝石:
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
我遇到了同样的问题。应按以下步骤让你通过:
- 使用RubyInstaller
- 安装devkit
-
安装红宝石debug19代替红宝石调试的安装Ruby。
宝石安装红宝石debug19
这只适用于Windows ... – 2011-08-16 11:10:21
@Palani,这个问题是针对Windows的。 – 2011-08-16 18:38:22
执行以下命令及其作品
C:\用户\史蒂夫>宝石安装红宝石调试--platform = mswin32
我试过这个,但是当我尝试在调试模式下运行我的服务器时,它说它找不到'ruby-debug-base',即使它在我的宝石列表中并列在我的Gemfile中。有任何想法吗? – Samo 2011-04-06 16:28:52
同样,它正确安装,但执行'rdebug rake'时无法找到ruby-debug-base(〜> 0.10.4.0)......' – 2012-04-18 20:40:42
粘贴这里完整的错误堆栈,我会尽力帮助解决这个问题问题 – 2012-04-19 16:23:25
错误似乎很明显:
Can't handle 1.9.x yet
*** extconf.rb failed ***
你试图安装Ruby调试gem,它是兼容只 上的Ruby 1.9.x的
请安装红宝石debug19,这是用Ruby 1.9兼容的Ruby 1.8.x的。 X
gem install ruby-debug19
ruby-debug19需要一些头文件,这些头文件不能与1.9.2一起使用 – 2011-08-16 11:11:15
Palani Kannan:您的评论是不准确的。 ruby-debug19 gems需要在gem安装过程中下载的Ruby源代码。 – 2011-08-16 14:36:43
你也可以试试这个:
gem install ruby-debug-ide --platform=ruby --pre
你已经问过这个:http://stackoverflow.com/questions/1972549/ – 2009-12-29 10:35:10
这意味着它不适用于Ruby 1.9。 – 2009-12-29 01:38:44