[Ironruby-core] Head broken on non-windows

Ivan Porto Carrero ivan at flanders.co.nz
Sat Oct 3 16:03:11 EDT 2009

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_HEADERS"=>"winsock2.h windows.h"
 "configure_args"=>"--with-make-prog=nmake --enable-shared --with-winsock2",
 "host_os"=>"mswin32",              <== my favorite

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
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 Carrero
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20091003/d4432d6f/attachment.html>

More information about the Ironruby-core mailing list