# Installing visualruby on Win 7 fails with extconf.rb failed

**URL:** <https://www.ruby-forum.com/t/installing-visualruby-on-win-7-fails-with-extconf-rb-failed/241649>\
**Category:** Ruby-Gnome 2\
**Created:** [April 21, 2015, 10:41am UTC](https://www.ruby-forum.com/t/installing-visualruby-on-win-7-fails-with-extconf-rb-failed/241649 "2015-04-21T10:41:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [April 21, 2015, 10:41am UTC](https://www.ruby-forum.com/t/installing-visualruby-on-win-7-fails-with-extconf-rb-failed/241649/1 "2015-04-21T10:41:39Z")

</div>

I am trying to install the visualruby gem on Windows 7 (64 bit, but  
running 32-bit Ruby 1.9.3 (ruby 1.9.3p448 (2013-06-27) [i386-mingw32]).

The last line before failure is:

checking for rb\_cairo.h… no

and then it fails with:

\*\*\* 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.

I have installed the VisualRuby and all it’s prerequisites as described  
here: [http://visualruby.net/site/Download.html](http://visualruby.net/site/Download.html), including GTK2 (gtk2  
(2.2.4 x86-mingw32)).

Do I need to set any of the configuration options? I see cairo.h is  
located in the following folder:

C:\Ruby193\lib\ruby\gems\1.9.1\gems\cairo-1.14.1-x86-mingw32\vendor\local\include\cairo

But none of the configuration options seem to specifically address  
cairo.
