Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Errors installing gems with native extensions #183

theCrab opened this Issue Jul 17, 2013 · 2 comments


None yet
2 participants

theCrab commented Jul 17, 2013

I am on Windows Vista and have installed Ruby using the Rails Installer. That was okay.

Now when I try installing any gem that requires building with native extensions everything fails with the error below:

C:\Windows\system32>gem install json --platform=ruby
Fetching: json-1.8.0.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing json:
        ERROR: Failed to build gem native extension.

    C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
creating Makefile

make "DESTDIR="
generating generator-i386-mingw32.def
compiling generator.c
linking shared-object json/ext/generator.so
bin/ld.exe: cannot find -lmsvcrt-ruby191
collect2: ld returned 1 exit status
make: *** [generator.so] Error 1

Gem files will remain installed in C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9
.1/gems/json-1.8.0 for inspection.
Results logged to C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/json-1.8.

Any reason why this is so?



luislavena commented Jul 17, 2013

Hello @theCrab, did you update RubyGems to version 2.0.x?

The issue is similar to the problem reported here: rubygems/rubygems#594

For Ruby 1.9.3, downgrading to 1.8.25 should solve the issue:

gem update --system 1.8.25

Let us know if that fix your issue.

Thank you.

theCrab commented Jul 17, 2013

@luislavena That seams to have fixed the issue. Thanks

@theCrab theCrab closed this Jul 17, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment