Ruby Green_Shoes无法构建本地gem扩展

Ruby Green_Shoes无法构建本地gem扩展,ruby,shoes,Ruby,Shoes,我正在尝试在Windows 8.1上安装green_shoes。我有一个64位操作系统上的ruby 2.0.0p451和gem版本2.0.14。我还安装了green_shoes页面上推荐的ruby-gtk2软件包。知道怎么回事吗 C:\>gem install green_shoes Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while...

我正在尝试在Windows 8.1上安装green_shoes。我有一个64位操作系统上的ruby 2.0.0p451和gem版本2.0.14。我还安装了green_shoes页面上推荐的ruby-gtk2软件包。知道怎么回事吗

C:\>gem install green_shoes
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing green_shoes:
        ERROR: Failed to build gem native extension.

    C:/Ruby200-x64/bin/ruby.exe extconf.rb
checking for --enable-debug-build option... no
checking for -Wall option to compiler... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=C:/Ruby200-x64/bin/ruby
        --enable-debug-build
        --disable-debug-build
C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:434:in `try_do': The compiler failed to ge
nerate an executable file. (RuntimeError)
You have to install development tools first.
        from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:549:in `block in try_compile'

        from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:502:in `with_werror'
        from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:549:in `try_compile'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/glib2-2.2.3/lib/mkmf-gnome2
.rb:58:in `block in try_compiler_option'
        from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:895:in `block in checking_for
'
        from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:340:in `block (2 levels) in p
ostpone'
        from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:310:in `open'
        from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:340:in `block in postpone'
        from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:310:in `open'
        from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:336:in `postpone'
        from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:894:in `checking_for'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/glib2-2.2.3/lib/mkmf-gnome2
.rb:57:in `try_compiler_option'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/glib2-2.2.3/lib/mkmf-gnome2
.rb:67:in `<top (required)>'
        from C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:5
5:in `require'
        from C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:5
5:in `require'
        from extconf.rb:15:in `<main>'


Gem files will remain installed in C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/glib2
-2.2.3 for inspection.
Results logged to C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/glib2-2.2.3/ext/glib2/
gem_make.out

错误提到mkmf.log,您看过这个文件了吗?你能用那个文件的内容更新你的问题吗?知道我需要看哪个mkmf.log吗?green_shoes有一些,但没有,因为gem无法安装我认为这与glib2没有正确安装有关,但是当我尝试安装它时,同样的“无法构建本机扩展”错误发生了。运行“gem list”不会显示glib2,我认为这是一个问题。您是否安装了Ruby DevKit?如果您运行的是Windows,它应该允许您为您的系统编译gems。只需确保为您的Ruby版本获得了正确的DevKit版本,这可能会有点混乱。我安装了DevKit,但我不确定它是否正确配置,所以我删除了DevKit文件夹并尝试重新安装。初始化后,我运行了“ruby dk.rb install”,并收到以下消息:C:\Ruby200-x64>ruby dk.rb install[INFO]跳过“C:/Ruby200-x64”的现有gem覆盖[WARN]跳过“C:/Ruby200-x64”的现有DevKit帮助程序库