'Failed to build gem native extension' on Windows 7 (The system cannot find the path specified)

前端 未结 7 1550
一生所求
一生所求 2020-12-15 18:47

The problem in short

I\'m on Windows and am getting the following error when running gem install json —platform=ruby:

The system canno         


        
7条回答
  •  隐瞒了意图╮
    2020-12-15 19:09

    I have gem json installed with versions 1.8.1 but I was not able to solve this issue for json 1.6.1 using

    gem install json --platform=ruby --verbose
    

    So, I tried from here https://github.com/oneclick/rubyinstaller/issues/184

    gem update --system 2.0.3
    

    And after that

    gem install json -v 1.6.1 --platform=ruby --verbose
    

    It solve issue specific to json 1.6.1 for Win 7(64 bit) machine

提交回复
热议问题