错误消息"确保' gem安装oj -v' 3.1.3'在捆绑之前取得成功"

时间:2017-06-16 14:25:02

标签: ruby-on-rails ruby

我收到的错误如下:

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/oj-3.1.3/ext/oj
C:/Ruby23-x64/bin/ruby.exe -r ./siteconf20170616-5396-19dncaf.rb extconf.rb
Creating Makefile for ruby version 2.3.0 on x64-mingw32 

creating Makefile

current directory: C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/oj-3.1.3/ext/oj
make "DESTDIR=" clean

current directory: C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/oj-3.1.3/ext/oj
make "DESTDIR="
generating oj-x64-mingw32.def
compiling cache8.c
make: x86_64-w64-mingw32-gcc: Command not found
make: *** [cache8.o] Error 127

make failed, exit code 2

Gem files will remain installed in
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/oj-3.1.3 for inspection.
Results logged to
C:/Ruby23-x64/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/oj-3.1.3/gem_make
.out

An error occurred while installing oj (3.1.3), and Bundler cannot continue.
Make sure that `gem install oj -v '3.1.3'` succeeds before bundling.

In Gemfile:
  oj

Ruby版本-2.3.0
Rails版本-4.2.3
Windows 7

0 个答案:

没有答案