You can clone with
HTTPS or Subversion.
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.
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?
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.
@luislavena That seams to have fixed the issue. Thanks