在Windows 8.1上安装json时出错

编程入门 行业动态 更新时间:2024-10-27 00:30:24
本文介绍了在Windows 8.1上安装json时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经在 windows 8.1上安装了 rails 4.2.3 和 ruby​​ 2.2.2p95 x64 。当我尝试运行捆绑安装时,由于 json -v 1.8.3 ,安装失败。我已经安装了 json版本1.8.1 。当我运行rubygems update命令时,它不会被更新。如果我尝试单独运行 gem install json -v 1.8.3 或 gem install json --platform = ruby​​ --version = 1.8.3 我得到以下错误。

I have installed rails 4.2.3 and ruby 2.2.2p95 on windows 8.1 x64 . When I try to run "bundle install" the installation fails because of json -v 1.8.3. I already have json version 1.8.1 installed. When I run rubygems update command it does not get updated. If I try to individually run gem install json -v 1.8.3 or gem install json --platform=ruby --version=1.8.3 I get the following error.

ERROR: While executing gem ... (OptionParser::InvalidArgument) invalid argument: -platform=ruby C:\>gem install json --platform=ruby --version=1.8.3 Building native extensions. This could take a while... ERROR: Error installing json: ERROR: Failed to build gem native extension. C:/Ruby22-x64/bin/ruby.exe -r ./siteconf20150719-4308-1m86usl.rb extconf.rb creating Makefile make "DESTDIR=" clean make "DESTDIR=" generating generator-x64-mingw32.def compiling generator.c make: x86_64-w64-mingw32-gcc: Command not found make: *** [generator.o] Error 127 make failed, exit code 2 Gem files will remain installed in C:/Ruby22- x64/lib/ruby/gems/2.2.0/gems/json-1 .8.3 for inspection. Results logged to C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0 /json-1.8.3/gem_make.out

推荐答案

试试这个 gem install --verbose json -v 1.8.3 。这应该安装宝石。

Try this gem install --verbose json -v 1.8.3. This should install the gem.

更多推荐

在Windows 8.1上安装json时出错

本文发布于:2023-11-24 11:33:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1625038.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Windows   json

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!