ERROR: Failed to build gem native extension on Windows

我的梦境 提交于 2019-12-03 15:12:26

Finally after much research I found the culprit was the RubyGems version incompatibility with native extension gems!!!

I had ruby gems ver 2.4.1 but seems like >2.4.0 has these issues

gem update --system 2.3.0 did the trick for me :)

Refer: https://github.com/rubygems/rubygems/issues/977

Mahou5

Downgrading ruby gems didn't work for me.

What did work was (with the latest version of ruby gems installed):

Open CMD as administrator and...

gem install json --platform=ruby --verbose

(Answer added by dannysmith here)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!