# Head broken on non-windows

**URL:** <https://www.ruby-forum.com/t/head-broken-on-non-windows/176646>\
**Category:** IronRuby\
**Created:** [October 3, 2009, 10:16pm UTC](https://www.ruby-forum.com/t/head-broken-on-non-windows/176646 "2009-10-03T22:16:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [October 3, 2009, 10:16pm UTC](https://www.ruby-forum.com/t/head-broken-on-non-windows/176646/1 "2009-10-03T22:16:06Z")

</div>

Hi  
github HEAD version is broken on non windows machines.

IronRuby incorrectly reports it’s running on windows, I can fix that in  
the  
build but if there will by binary distributions an installer or  
something  
needs to be created because many of the information from rbconfig is  
false.

Funny here’s some output of Config::CONFIG on a debian  
“COMMON\_MACROS”=\>“WIN32\_LEAN\_AND\_MEAN”,  
“COMMON\_HEADERS”=\>“winsock2.h windows.h”  
“arch”=\>“i386-mswin32”,  
“sitearch”=\>“i386-msvcrt”,  
“configure\_args”=\>“–with-make-prog=nmake --enable-shared  
–with-winsock2”,  
“build\_os”=\>“mswin32”,  
“host”=\>“i686-pc-mswin32”,  
“host\_alias”=\>“i686-mswin32”,  
“host\_cpu”=\>“i686”,  
“host\_vendor”=\>“pc”,  
“host\_os”=\>“mswin32”, \<== my favorite  
“target”=\>“i386-pc-mswin32”,  
“target\_alias”=\>“i386-mswin32”,

I get the same info when I’m on a mac. This is the cause of a lot of  
errors  
in gems etc because they decide they’re on windows and things fail.  
Those  
issues are easy to fix though.

Gems got broken today and I’m pretty sure Win32Api is the reason it’s  
breaking.  
I propose that IronRuby should detect which OS it’s running on and throw  
a  
LoadError when it’s not windows.

* * *

Met vriendelijke groeten - Best regards - Salutations  
Ivan Porto C.  
Blog: [http://flanders.co.nz](http://flanders.co.nz)  
Twitter: [http://twitter.com/casualjim](http://twitter.com/casualjim)  
Author of IronRuby in Action ([http://manning.com/carrero](http://manning.com/carrero))
