2

我正在尝试在 Windows 7 上安装 Rails。

当我安装我得到这个错误:

make
generating ruby_debug-i386-mingw32.def
compiling breakpoint.c
compiling ruby_debug.c
ruby_debug.c:29:19: error: conflicting types for 'rb_iseq_compile_with_option'
C:/Ruby193/include/ruby-1.9.1/ruby-1.9.3-p194/vm_core.h:505:7: note: previous declaration of 'rb_iseq_compile_with_option' was here
ruby_debug.c: In function 'context_jump':
ruby_debug.c:2414:53: warning: comparison between signed and unsigned integer expressions
ruby_debug.c:2428:27: warning: comparison between signed and unsigned integer expressions
make: *** [ruby_debug.o] Error 1


Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby-debug-base19-0.11.25 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby-debug-base19-0.11.25/ext/ruby_debug/gem_make.out
An error occured while installing ruby-debug-base19 (0.11.25), and Bundler cannot continue.
Make sure that `gem install ruby-debug-base19 -v '0.11.25'` succeeds before bundling.

我在“在 Ruby 1.9.3 中的 Windows 上安装 ruby ​​-debug-base19”之后安装了 ruby​​-debug-base19 -v '0.11.26

4

1 回答 1

0

只需在 gemfile 中注释掉即可

#  gem 'ruby-debug19', :require => 'ruby-debug'

如果您喜欢Link to better_errors ,可以尝试使用 better_errors 进行调试

于 2013-02-06T13:47:32.310 回答