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

前端 未结 7 1558
一生所求
一生所求 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:15

    I had the same problem. I used powershell to check my path

    ps> $s = $env:path

    ps> $s.split("{;}")

    sure enough my the ruby mingw was not in the path. I had the ruby\bin in the path but the mingw\bin was under a different folder. I went into my environment path and added it and my install worked.

提交回复
热议问题