安装中的ruby类型冲突

时间:2017-04-17 20:40:07

标签: ruby-on-rails ruby

我已经在我的机器上成功安装了Ruby。安装rails后,我执行bundle install命令。安装达到kgio时我遇到了一些问题。它抱怨RubyDevKit安装。

Gem::InstallError: The 'kgio' native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'

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

After the installation I run `bundle update` and get conflicting types 
error.

这是mkmf.log文件的结果。

conftest.c:17:13: error: conflicting types for 'clock_gettime'
In file included from c:\rubydevkit\mingw\bin\../lib/gcc/x86_64-w64-
mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/time.h:285:0,
             from c:\rubydevkit\mingw\bin\../lib/gcc/x86_64-w64-
mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/iptypes.h:13,
             from c:\rubydevkit\mingw\bin\../lib/gcc/x86_64-w64-
mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/iphlpapi.h:15,
             from C:/Ruby23-x64/include/ruby-2.3.0/ruby/win32.h:44,
             from C:/Ruby23-x64/include/ruby-2.3.0/ruby/defines.h:168,
             from C:/Ruby23-x64/include/ruby-2.3.0/ruby/ruby.h:36,
             from C:/Ruby23-x64/include/ruby-2.3.0/ruby.h:33,
             from conftest.c:1:

我知道这是一个相互矛盾的类型问题。问题是当我安装RubyDevKit时,我做了bundle update。 如果这些事情是隔行扫描并且产生了这些问题,我该如何解决?

我的Ruby版本:2.3.1 RubyDevKit:mingw64-64-4.7.2 Rails:4.6.2

0 个答案:

没有答案