Can't install json 1.7.7 in Rails 3.2.12. I use Windows, in the command line the following error:

d:\projects\time-72>gem install json -v '1.7.7' 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:/Ruby193/bin/ruby.exe extconf.rb creating Makefile make "make" Π½Π΅ являСтся Π²Π½ΡƒΡ‚Ρ€Π΅Π½Π½Π΅ΠΉ ΠΈΠ»ΠΈ внСшнСй ΠΊΠΎΠΌΠ°Π½Π΄ΠΎΠΉ, исполняСмой ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠΎΠΉ ΠΈΠ»ΠΈ ΠΏΠ°ΠΊΠ΅Ρ‚Π½Ρ‹ΠΌ Ρ„Π°ΠΉΠ»ΠΎΠΌ. Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.7. 7 for inspection. Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.7.7/ext/json/ext/ge nerator/gem_make.out 

Can anyone come across, what could be the problem?

    1 answer 1

    The fact is that some gems are written partly in Xi. Accordingly, you need to have a sish compiler, as well as a pack of auxiliary tools and libraries for installing such gems. There are no such problems on Linux, everything is built in there.

    If installed via RubyInstaller , then you need to install DevKit in addition.

    If you put it somehow differently, then there should also be some options. In the worst case, you will have to install MinGW or Cygwin, and some other dependencies.

    It's easier to just demolish the old ruby ​​and put it through RubyInstaller.

    • Thank you, I initially did everything according to the instructions on the off. site. Then I accidentally deleted the DevKit installation, after which this error was allegedly generated. Solved the problem by reinstalling all this good again, along with the cut and rails. As for the sish compiler, this is yes, not every gem you put on Windows) - Bandicoot87