# Install gtk2 show error on window

**URL:** <https://www.ruby-forum.com/t/install-gtk2-show-error-on-window/240907>\
**Category:** Ruby-Gnome 2\
**Created:** [May 6, 2014, 10:58am UTC](https://www.ruby-forum.com/t/install-gtk2-show-error-on-window/240907 "2014-05-06T10:58:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [May 6, 2014, 10:58am UTC](https://www.ruby-forum.com/t/install-gtk2-show-error-on-window/240907/1 "2014-05-06T10:58:52Z")

</div>

Hi,

ruby revision --\> 2.0.0p451 x64  
windows OS --\> win7 64 bit

When I install gtk2 by using “gem install gtk2”,  
It will show below error message:

–\>

Temporarily enhancing PATH to include DevKit…  
Building native extensions. This could take a while…  
ERROR: Error installing gtk2:  
ERROR: Failed to build gem native extension.

```
C:/Ruby200-x64/bin/ruby.exe extconf.rb

```

checking for -Wall option to compiler… yes  
checking for -Waggregate-return option to compiler… yes  
checking for -Wcast-align option to compiler… yes  
checking for -Wextra option to compiler… yes  
checking for -Wformat=2 option to compiler… yes  
checking for -Winit-self option to compiler… yes  
checking for -Wlarger-than-65500 option to compiler… yes  
checking for -Wmissing-declarations option to compiler… yes  
checking for -Wmissing-format-attribute option to compiler… yes  
checking for -Wmissing-include-dirs option to compiler… yes  
checking for -Wmissing-noreturn option to compiler… yes  
checking for -Wmissing-prototypes option to compiler… yes  
checking for -Wnested-externs option to compiler… yes  
checking for -Wold-style-definition option to compiler… yes  
checking for -Wpacked option to compiler… yes  
checking for -Wp,-D\_FORTIFY\_SOURCE=2 option to compiler… yes  
checking for -Wpointer-arith option to compiler… yes  
checking for -Wswitch-default option to compiler… yes  
checking for -Wswitch-enum option to compiler… yes  
checking for -Wundef option to compiler… yes  
checking for -Wunsafe-loop-optimizations option to compiler… yes  
checking for -Wwrite-strings option to compiler… yes  
checking for rb\_define\_alloc\_func() in ruby.h… yes  
checking for rb\_block\_proc() in ruby.h… yes  
checking for new allocation framework… yes  
checking for attribute assignment… no  
checking for Win32 OS… yes  
checking for gobject-2.0 version (\>= 2.12.0)… no  
checking for brew… no  
checking for port… no  
\*\*\* 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  
–with-pkg-config  
–without-pkg-config  
–with-override-variables  
–without-override-variables

extconf failed, exit code 1

Gem files will remain installed in  
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/glib2-2.2.0 for inspectio  
n.  
Results logged to  
C:/Ruby200-x64/lib/ruby/gems/2.0.0/extensions/x64-mingw32/2.0.0/glib2-2.2.0/gem\_ma  
ke.out

\<—

May I know which step I miss when I install ruby ?

---

<div class="post-metadata">

**Author:** ![cc\_c](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/91b2a8/32.png) [@cc\_c](https://www.ruby-forum.com/u/cc_c)\
**Post date:** [May 23, 2014, 12:53pm UTC](https://www.ruby-forum.com/t/install-gtk2-show-error-on-window/240907/2 "2014-05-23T12:53:29Z")

</div>

Hi,

Thank you for trying to install Ruby/GTK2!

Actually, gtk2 gem has not support 64-bit Ruby in Windows yet.  
If you use 32-bit Ruby, “gem install gtk2” will probably succeed.  
(32-bit Ruby works on 64-bit Windows 7.)

## Regards,

myokoym
