Windows 8.1, Ruby 2.6.3 に gem 'glib2' が入らない

 

C:\Users\知生\Documents\code\Ruby>bundle install
Fetching gem metadata from https://rubygems.org/....
Resolving dependencies...
Using native-package-installer 1.0.7
Using pkg-config 1.3.7
Fetching glib2 3.3.6
Installing glib2 3.3.6 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: C:/Ruby26/lib/ruby/gems/2.6.0/gems/glib2-3.3.6/ext/glib2
C:/Ruby26/bin/ruby.exe -I C:/Ruby26/lib/ruby/2.6.0 -r
./siteconf20190623-6392-b87wht.rb extconf.rb
checking for --enable-debug-build option... no
checking for -Wall option to compiler... no
checking for -Waggregate-return option to compiler... no
checking for -Wcast-align option to compiler... no
checking for -Wextra option to compiler... no
checking for -Wformat=2 option to compiler... no
checking for -Winit-self option to compiler... no
checking for -Wlarger-than-65500 option to compiler... no
checking for -Wmissing-declarations option to compiler... no
checking for -Wmissing-format-attribute option to compiler... no
checking for -Wmissing-include-dirs option to compiler... no
checking for -Wmissing-noreturn option to compiler... no
checking for -Wmissing-prototypes option to compiler... no
checking for -Wnested-externs option to compiler... no
checking for -Wold-style-definition option to compiler... no
checking for -Wpacked option to compiler... no
checking for -Wp,-D_FORTIFY_SOURCE=2 option to compiler... no
checking for -Wpointer-arith option to compiler... no
checking for -Wswitch-default option to compiler... no
checking for -Wswitch-enum option to compiler... no
checking for -Wundef option to compiler... no
checking for -Wout-of-line-declaration option to compiler... no
checking for -Wunsafe-loop-optimizations option to compiler... no
checking for -Wwrite-strings option to compiler... no
checking for Homebrew... no
checking for gobject-2.0 version (>= 2.12.0)... yes
checking for gthread-2.0... yes
checking for unistd.h... yes
checking for io.h... yes
checking for g_spawn_close_pid() in glib.h... no
checking for g_thread_init() in glib.h... no
checking for g_main_depth() in glib.h... no
checking for g_listenv() in glib.h... no
checking for rb_check_array_type() in ruby.h... no
checking for rb_check_hash_type() in ruby.h... no
checking for rb_exec_recursive() in ruby.h... no
checking for rb_errinfo() in ruby.h... no
checking for rb_thread_call_without_gvl() in ruby.h... no
checking for ruby_native_thread_p() in ruby.h... no
checking for rb_thread_call_with_gvl() in ruby.h... no
checking for rb_gc_register_mark_object() in ruby.h... no
checking for rb_exc_new_str() in ruby.h... no
checking for rb_enc_str_new_static() in ruby.h... no
checking for curr_thread in ruby.h,node.h... no
checking for rb_curr_thread in ruby.h,node.h... no
creating ruby-glib2.pc
creating glib-enum-types.c
creating glib-enum-types.h
creating Makefile

current directory: C:/Ruby26/lib/ruby/gems/2.6.0/gems/glib2-3.3.6/ext/glib2
make "DESTDIR=" clean

current directory: C:/Ruby26/lib/ruby/gems/2.6.0/gems/glib2-3.3.6/ext/glib2
make "DESTDIR="
compiling glib-enum-types.c
compiling rbglib-bytes.c
compiling rbglib-gc.c
compiling rbglib-variant-type.c
compiling rbglib-variant.c
compiling rbglib.c
In file included from rbglib.c:23:0:
rbglib.c: In function 'rbg_rval2strv_rescue':
rbgprivate.h:35:25: error: 'ruby_errinfo' undeclared (first use in this
function); did you mean 'rb_errinfo'?
 #  define rb_errinfo() (ruby_errinfo)
                         ^
rbgprivate.h:35:25: note: in definition of macro 'rb_errinfo'
 #  define rb_errinfo() (ruby_errinfo)
                         ^~~~~~~~~~~~
rbgprivate.h:35:25: note: each undeclared identifier is reported only once for
each function it appears in
 #  define rb_errinfo() (ruby_errinfo)
                         ^
rbgprivate.h:35:25: note: in definition of macro 'rb_errinfo'
 #  define rb_errinfo() (ruby_errinfo)
                         ^~~~~~~~~~~~
rbglib.c: In function 'rbg_rval2strv_dup_rescue':
rbgprivate.h:35:25: error: 'ruby_errinfo' undeclared (first use in this
function); did you mean 'rb_errinfo'?
 #  define rb_errinfo() (ruby_errinfo)
                         ^
rbgprivate.h:35:25: note: in definition of macro 'rb_errinfo'
 #  define rb_errinfo() (ruby_errinfo)
                         ^~~~~~~~~~~~
rbglib.c: In function 'rbg_rval2gbooleans_rescue':
rbgprivate.h:35:25: error: 'ruby_errinfo' undeclared (first use in this
function); did you mean 'rb_errinfo'?
 #  define rb_errinfo() (ruby_errinfo)
                         ^
rbgprivate.h:35:25: note: in definition of macro 'rb_errinfo'
 #  define rb_errinfo() (ruby_errinfo)
                         ^~~~~~~~~~~~
rbglib.c: In function 'rbg_rval2gints_rescue':
rbgprivate.h:35:25: error: 'ruby_errinfo' undeclared (first use in this
function); did you mean 'rb_errinfo'?
 #  define rb_errinfo() (ruby_errinfo)
                         ^
rbgprivate.h:35:25: note: in definition of macro 'rb_errinfo'
 #  define rb_errinfo() (ruby_errinfo)
                         ^~~~~~~~~~~~
rbglib.c: In function 'rbg_rval2gint8s_rescue':
rbgprivate.h:35:25: error: 'ruby_errinfo' undeclared (first use in this
function); did you mean 'rb_errinfo'?
 #  define rb_errinfo() (ruby_errinfo)
                         ^
rbgprivate.h:35:25: note: in definition of macro 'rb_errinfo'
 #  define rb_errinfo() (ruby_errinfo)
                         ^~~~~~~~~~~~
rbglib.c: In function 'rbg_rval2guint8s_rescue':
rbgprivate.h:35:25: error: 'ruby_errinfo' undeclared (first use in this
function); did you mean 'rb_errinfo'?
 #  define rb_errinfo() (ruby_errinfo)
                         ^
rbgprivate.h:35:25: note: in definition of macro 'rb_errinfo'
 #  define rb_errinfo() (ruby_errinfo)
                         ^~~~~~~~~~~~
rbglib.c: In function 'rbg_rval2guint16s_rescue':
rbgprivate.h:35:25: error: 'ruby_errinfo' undeclared (first use in this
function); did you mean 'rb_errinfo'?
 #  define rb_errinfo() (ruby_errinfo)
                         ^
rbgprivate.h:35:25: note: in definition of macro 'rb_errinfo'
 #  define rb_errinfo() (ruby_errinfo)
                         ^~~~~~~~~~~~
rbglib.c: In function 'rbg_rval2guint32s_rescue':
rbgprivate.h:35:25: error: 'ruby_errinfo' undeclared (first use in this
function); did you mean 'rb_errinfo'?
 #  define rb_errinfo() (ruby_errinfo)
                         ^
rbgprivate.h:35:25: note: in definition of macro 'rb_errinfo'
 #  define rb_errinfo() (ruby_errinfo)
                         ^~~~~~~~~~~~
rbglib.c: In function 'rbg_rval2gdoubles_rescue':
rbgprivate.h:35:25: error: 'ruby_errinfo' undeclared (first use in this
function); did you mean 'rb_errinfo'?
 #  define rb_errinfo() (ruby_errinfo)
                         ^
rbgprivate.h:35:25: note: in definition of macro 'rb_errinfo'
 #  define rb_errinfo() (ruby_errinfo)
                         ^~~~~~~~~~~~
rbglib.c: In function 'rbg_rval2strv_rescue':
rbglib.c:344:1: warning: 'noreturn' function does return
 }
 ^
rbglib.c: In function 'rbg_rval2strv_dup_rescue':
rbglib.c:401:1: warning: 'noreturn' function does return
 }
 ^
rbglib.c: In function 'rbg_rval2gbooleans_rescue':
rbglib.c:494:1: warning: 'noreturn' function does return
 }
 ^
rbglib.c: In function 'rbg_rval2gints_rescue':
rbglib.c:537:1: warning: 'noreturn' function does return
 }
 ^
rbglib.c: In function 'rbg_rval2gint8s_rescue':
rbglib.c:580:1: warning: 'noreturn' function does return
 }
 ^
rbglib.c: In function 'rbg_rval2guint8s_rescue':
rbglib.c:623:1: warning: 'noreturn' function does return
 }
 ^
rbglib.c: In function 'rbg_rval2guint16s_rescue':
rbglib.c:666:1: warning: 'noreturn' function does return
 }
 ^
rbglib.c: In function 'rbg_rval2guint32s_rescue':
rbglib.c:709:1: warning: 'noreturn' function does return
 }
 ^
rbglib.c: In function 'rbg_rval2gdoubles_rescue':
rbglib.c:752:1: warning: 'noreturn' function does return
 }
 ^
make: *** [Makefile:244: rbglib.o] 繧ィ繝ゥ繝シ 1

make failed, exit code 2

Gem files will remain installed in
C:/Ruby26/lib/ruby/gems/2.6.0/gems/glib2-3.3.6 for inspection.
Results logged to
C:/Ruby26/lib/ruby/gems/2.6.0/extensions/x86-mingw32/2.6.0/glib2-3.3.6/gem_make.
out

An error occurred while installing glib2 (3.3.6), and Bundler cannot continue.
Make sure that `gem install glib2 -v '3.3.6' --source 'https://rubygems.org/'`
succeeds before bundling.

In Gemfile:
  oekaki was resolved to 0.1.7, which depends on
    gtk2 was resolved to 3.3.6, which depends on
      atk was resolved to 3.3.6, which depends on
        glib2