rubyinstaller: Failling to Test DevKit Installation
Hi guys, I’m trying to set my dev environment on my PC, so I went through the installation process and got stuck: (I did the previous steps, pasting the last two only) First I did this:
C:\Ruby200-x64\DevKit>ruby dk.rb install
[INFO] Skipping existing gem override for 'C:/Ruby200-x64'
[WARN] Skipping existing DevKit helper library for 'C:/Ruby200-x64'
And then this:
C:\Ruby200-x64\DevKit>gem install bson_ext --platform=ruby -p
Fetching: bson-1.8.4.gem (100%)
Successfully installed bson-1.8.4
Fetching: bson_ext-1.8.4.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing bson_ext:
ERROR: Failed to build gem native extension.
C:/Ruby200-x64/bin/ruby.exe extconf.rb
checking for asprintf()... *** 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:/Ruby200-x64/bin/ruby
C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:431:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:516:in `try_link0'
from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:531:in `try_link'
from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:717:in `try_func'
from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:1001:in `block in have_func'
from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:892:in `block in checking_for'
from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:337:in `block (2 levels) in postpone'
from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:307:in `open'
from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:337:in `block in postpone'
from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:307:in `open'
from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:333:in `postpone'
from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:891:in `checking_for'
from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:1000:in `have_func'
from extconf.rb:3:in `<main>'
I also tried Scenario A and B of the troubleshooting guide, both without success. Moving out to Linux until then… Thank you.
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Comments: 16 (6 by maintainers)
That is the wrong devkit for the x64 version of Ruby.
As mentioned in the Download page:
http://rubyinstaller.org/downloads
You need to download and install mingw64-64-4.7.2