# Win32api breaks gems on mono

**URL:** <https://www.ruby-forum.com/t/win32api-breaks-gems-on-mono/176633>\
**Category:** IronRuby\
**Created:** [October 3, 2009, 5:29pm UTC](https://www.ruby-forum.com/t/win32api-breaks-gems-on-mono/176633 "2009-10-03T17:29:53Z")\
**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, 5:29pm UTC](https://www.ruby-forum.com/t/win32api-breaks-gems-on-mono/176633/1 "2009-10-03T17:29:53Z")

</div>

Hi  
The new win32api additions don’t work on another OS than windows.  
This breaks rubygems and most likely rightly so.

+ivan@ivan-mbp:~/Downloads/ironruby-2be42fd  
Â» igem list  
IronRuby.Libraries:0:in `GetFunction': LoadLibrary (System::EntryPointNotFoundException) from :0:in `initialize’  
from IronRuby.Libraries:0:in `Create' from /usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rubygems/config_file.rb:48 from etc.rb:0 from :0:in `require’  
from /usr/local/cloudslide/ironruby/bin/igem:8  
from :0:in `require’

renaming the win32api.rb file in lib/IronRuby changes the error about  
kernel32 not being on the system.

* * *

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))
