Installing gem json 2.2.0 failed - windows

烂漫一生 提交于 2019-12-24 10:24:07

问题


I got an error trying to install gem json 2.2.0 to my project, so I look for many sites and tutorials but nothing help me with windows.

Please see the problem below:

Fetching json 2.2.0
Installing json 2.2.0 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/json-2.2.0/ext/json/ext/generator
C:/Ruby24-x64/bin/ruby.exe -I C:/Ruby24-x64/lib/ruby/site_ruby/2.4.0 -r
./siteconf20190412-3460-119pn5l.rb extconf.rb
creating Makefile

current directory:
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/json-2.2.0/ext/json/ext/generator
make "DESTDIR=" clean
current directory:
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/json-2.2.0/ext/json/ext/generator
make "DESTDIR="
make failedNo such file or directory - make "DESTDIR="

Gem files will remain installed in
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/json-2.2.0 for inspection.
Results logged to
C:/Ruby24-x64/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/json-2.2.0/gem_make.out

An error occurred while installing json (2.2.0), and Bundler cannot continue.
Make sure that `gem install json -v '2.2.0' --source 'https://rubygems.org/'`
succeeds before bundling.

In Gemfile:
  calabash-android was resolved to 0.9.8, which depends on
    luffa was resolved to 2.1.0, which depends on
      json

For ubuntu the solution was: install libgmp3-dev. For macOS the solution was: use XCode

But I found nothing for windows. Should be a solution to use RVM? If yes, how can I install it on Windows?

I really appreciate your help!

来源:https://stackoverflow.com/questions/55656040/installing-gem-json-2-2-0-failed-windows

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