ERROR: Failed to build gem native extension on Windows

后端 未结 2 543
猫巷女王i
猫巷女王i 2021-02-14 17:42

I\'m getting the below error while installing \'redcarpet\' gem. It got installed without issue on my friends machine though. (I want to install this to run y

相关标签:
2条回答
  • 2021-02-14 18:20

    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

    0 讨论(0)
  • 2021-02-14 18:31

    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)

    0 讨论(0)
提交回复
热议问题