RubyMine 2016.3 Cannot Install 'ruby-debug-ide'
Trying to get RubyMine set up with the 'ruby-debug-ide' gem and cannot.
I have seen many posts here and on stack overflow and nothing has helped so far.
c:\automation>gem install ruby-debug-ide
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing ruby-debug-ide:
ERROR: Failed to build gem native extension.
current directory: C:/Ruby23/lib/ruby/gems/2.3.0/gems/ruby-debug-ide-0.6.0/ext
C:/Ruby23/bin/ruby.exe mkrf_conf.rb
Installing base gem
Building native extensions. This could take a while...
Building native extensions. This could take a while...
ERROR: Failed to build gem native extension.
current directory: C:/Ruby23/lib/ruby/gems/2.3.0/gems/debase-0.2.2.beta9/ext
C:/Ruby23/bin/ruby.exe -r ./siteconf20170124-19508-1ctdfq8.rb extconf.rb
checking for vm_core.h... *** 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:/Ruby23/bin/$(RUBY_BASE_NAME)
--with-ruby-dir
--without-ruby-dir
--with-ruby-include
--without-ruby-include=${ruby-dir}/include
--with-ruby-lib
--without-ruby-lib=${ruby-dir}/lib
C:/Ruby23/lib/ruby/2.3.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from C:/Ruby23/lib/ruby/2.3.0/mkmf.rb:587:in `try_cpp'
from C:/Ruby23/lib/ruby/2.3.0/mkmf.rb:1091:in `block in have_header'
from C:/Ruby23/lib/ruby/2.3.0/mkmf.rb:942:in `block in checking_for'
from C:/Ruby23/lib/ruby/2.3.0/mkmf.rb:350:in `block (2 levels) in postpone'
from C:/Ruby23/lib/ruby/2.3.0/mkmf.rb:320:in `open'
from C:/Ruby23/lib/ruby/2.3.0/mkmf.rb:350:in `block in postpone'
from C:/Ruby23/lib/ruby/2.3.0/mkmf.rb:320:in `open'
from C:/Ruby23/lib/ruby/2.3.0/mkmf.rb:346:in `postpone'
from C:/Ruby23/lib/ruby/2.3.0/mkmf.rb:941:in `checking_for'
from C:/Ruby23/lib/ruby/2.3.0/mkmf.rb:1090:in `have_header'
from extconf.rb:31:in `block in <main>'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/debase-ruby_core_source-0.9.6/lib/debase/ruby_core_source.rb:15:in `create_makefile_with_core'
from extconf.rb:47:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can be found here:
C:/Ruby23/lib/ruby/gems/2.3.0/extensions/x86-mingw32/2.3.0/debase-0.2.2.beta9/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in C:/Ruby23/lib/ruby/gems/2.3.0/gems/debase-0.2.2.beta9 for inspection.
Results logged to C:/Ruby23/lib/ruby/gems/2.3.0/extensions/x86-mingw32/2.3.0/debase-0.2.2.beta9/gem_make.out
C:/Ruby23/lib/ruby/2.3.0/rubygems/ext/builder.rb:92:in `run'
C:/Ruby23/lib/ruby/2.3.0/rubygems/ext/ext_conf_builder.rb:48:in `block in build'
C:/Ruby23/lib/ruby/2.3.0/tempfile.rb:295:in `open'
C:/Ruby23/lib/ruby/2.3.0/rubygems/ext/ext_conf_builder.rb:31:in `build'
C:/Ruby23/lib/ruby/2.3.0/rubygems/ext/builder.rb:164:in `block (2 levels) in build_extension'
C:/Ruby23/lib/ruby/2.3.0/rubygems/ext/builder.rb:163:in `chdir'
C:/Ruby23/lib/ruby/2.3.0/rubygems/ext/builder.rb:163:in `block in build_extension'
C:/Ruby23/lib/ruby/2.3.0/rubygems/ext/builder.rb:162:in `synchronize'
C:/Ruby23/lib/ruby/2.3.0/rubygems/ext/builder.rb:162:in `build_extension'
C:/Ruby23/lib/ruby/2.3.0/rubygems/ext/builder.rb:201:in `block in build_extensions'
C:/Ruby23/lib/ruby/2.3.0/rubygems/ext/builder.rb:198:in `each'
C:/Ruby23/lib/ruby/2.3.0/rubygems/ext/builder.rb:198:in `build_extensions'
C:/Ruby23/lib/ruby/2.3.0/rubygems/installer.rb:748:in `build_extensions'
C:/Ruby23/lib/ruby/2.3.0/rubygems/installer.rb:297:in `install'
C:/Ruby23/lib/ruby/2.3.0/rubygems/resolver/specification.rb:97:in `install'
C:/Ruby23/lib/ruby/2.3.0/rubygems/request_set.rb:166:in `block in install'
C:/Ruby23/lib/ruby/2.3.0/rubygems/request_set.rb:156:in `each'
C:/Ruby23/lib/ruby/2.3.0/rubygems/request_set.rb:156:in `install'
C:/Ruby23/lib/ruby/2.3.0/rubygems/dependency_installer.rb:405:in `install'
mkrf_conf.rb:35:in `rescue in <main>'
mkrf_conf.rb:28:in `<main>'
rake failed, exit code 1
Gem files will remain installed in C:/Ruby23/lib/ruby/gems/2.3.0/gems/ruby-debug-ide-0.6.0 for inspection.
Results logged to C:/Ruby23/lib/ruby/gems/2.3.0/extensions/x86-mingw32/2.3.0/ruby-debug-ide-0.6.0/gem_make.out
请先登录再写评论。
Turns out we just had 32 bit ruby installed with 64 bit DevKit. User error. =)