我已经安装了rails 4.2.3
和ruby 2.2.2p95
在windows 8.1 x64
。 当我尝试运行“捆绑安装”,安装失败,因为json -v 1.8.3
。 我已经有json version 1.8.1
安装。 当我运行的RubyGems更新的命令,它没有更新。 如果我尝试单独运行gem install json -v 1.8.3
或gem install json --platform=ruby --version=1.8.3
我碰到下面的错误。
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