# Mkmf question

**URL:** <https://www.ruby-forum.com/t/mkmf-question/111787>\
**Category:** Ruby\
**Created:** [August 10, 2007, 8:03pm UTC](https://www.ruby-forum.com/t/mkmf-question/111787 "2007-08-10T20:03:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Terry\_Dineen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/a9adbd/32.png) [@Terry\_Dineen](https://www.ruby-forum.com/u/Terry_Dineen)\
**Post date:** [August 10, 2007, 8:03pm UTC](https://www.ruby-forum.com/t/mkmf-question/111787/1 "2007-08-10T20:03:15Z")

</div>

Hi,

I am trying to build ruby-xslt on Windows XP. The first step is to run

```
ruby extconf.rb

```

which fails. mkmf.log contains the following which can’t work on my  
system since there is no cl in my path; I assume that’s because I don’t  
have MS Visual Studio. I had installed MinGW and MSYS hoping that that  
would allow me to build ruby-xslt with gcc and friends. Is there a way  
to get mkmf to use gcc instead of cl when running its config tests?

Thanks,  
Terry

have\_library: checking for xmlParseDoc() in xml2.lib…  
-------------------- no

“cl -nologo -Feconftest -I. -Ic:/ruby/lib/ruby/1.8/i386-mswin32 -I.  
-Ic:/ruby/lib/ruby/1.8/i386-mswin32  
-Ic:/XML/libxslt-1.1.19.win32/include -MD -Zi -O2b2xg- -G6  
-DUSE\_ERROR\_HANDLER conftest.c msvcrt-ruby18-static.lib xml2.lib  
oldnames.lib user32.lib advapi32.lib ws2\_32.lib -link  
-libpath:“c:/ruby/lib” -libpath:“c:/XML/libxslt-1.1.19.win32/lib”  
-stack:0x2000000”  
checked program was:  
/\* begin _/  
1: #define WIN32\_LEAN\_AND\_MEAN  
2: #include \<winsock2.h\>  
3: #include \<windows.h\>  
4:  
5: /top/  
6: int main() { return 0; }  
7: int t() { void ((volatile p)()); p = (void (()()))xmlParseDoc;  
return 0; }  
/_ end \*/
