json - Installing gem json 2.2.0 failed - windows
问题描述
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!
解决方案
推荐阅读
- javascript - 如何使用 Javascript 访问链接?
- stata - 显示完整的变量名
- r - 带约束的分段线性回归 - r
- javascript - 在 Angular 中进行错误处理的对象对象
- html - 无法为 R 中的 rvest 选择悬停弹出文本
- ios - 滚动 UITableView 期间计时器将重置并停止运行
- package - 尽管 pylint 似乎已安装,但“找不到命令”
- vb.net - 打开/关闭操作等效 VB6 / VB.NET
- matlab - 如何更正matlab中的“PARFOR循环中限制'变量'的有效索引”错误
- static - “'memfd_create' 的静态声明遵循非静态声明”使用 Yocto 构建 Linux 映像时出错