[Ironruby-core] IronRuby + Mono + WinForms issue

Andrew S. Townley ast at atownley.org
Thu Nov 26 06:10:47 EST 2009


I sent this to Thibaut, but I probably should've sent it to the whole
list since it probably isn't directly related to his work (sorry
Thibaut!).

Thanks to Ivan's pointer to mono builds, I was able to get IronRuby to
work as I would've expected.  However, it doesn't seem able to find the
WinForms stuff that I clearly have on my machine:

$ locate System.Windows.Forms
/usr/lib/mono/1.0/System.Windows.Forms.dll
/usr/lib/mono/gac/System.Windows.Forms
/usr/lib/mono/gac/System.Windows.Forms/1.0.5000.0__b77a5c561934e089
/usr/lib/mono/gac/System.Windows.Forms/1.0.5000.0__b77a5c561934e089/System.Windows.Forms.dll
/usr/lib/mono/gac/System.Windows.Forms/1.0.5000.0__b77a5c561934e089/System.Windows.Forms.dll.config
/usr/local/ironruby/lib/ironruby/System.Windows.Forms.rb
/usr/local/mono-2.4/lib/mono/1.0/System.Windows.Forms.dll
/usr/local/mono-2.4/lib/mono/2.0/System.Windows.Forms.dll
/usr/local/mono-2.4/lib/mono/gac/System.Windows.Forms
/usr/local/mono-2.4/lib/mono/gac/System.Windows.Forms/1.0.5000.0__b77a5c561934e089
/usr/local/mono-2.4/lib/mono/gac/System.Windows.Forms/2.0.0.0__b77a5c561934e089
/usr/local/mono-2.4/lib/mono/gac/System.Windows.Forms/1.0.5000.0__b77a5c561934e089/System.Windows.Forms.dll
/usr/local/mono-2.4/lib/mono/gac/System.Windows.Forms/1.0.5000.0__b77a5c561934e089/System.Windows.Forms.dll.mdb
/usr/local/mono-2.4/lib/mono/gac/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
/usr/local/mono-2.4/lib/mono/gac/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.mdb

$ which mono
/usr/local/mono-2.4/bin/mono

$ ir -v
IronRuby 0.9.3.0 on .NET 2.0.0.0

$ cat /tmp/test.rb
require 'System.Windows.Forms'

$ ir /tmp/test.rb
:0:in `require': no such file to load -- System.Windows.Forms
(LoadError)
	from /tmp/test.rb:1

I've even tried explicitly including the .NET 2.0 libraries as part of
the LD_LIBRARY_PATH, but that didn't work:

$ echo $LD_LIBRARY_PATH
/usr/local/mono-2.4/lib:/usr/local/mono-2.4/lib/mono/2.0

Obviously, there's still a piece of the puzzle that I'm missing.  Any
ideas?

Thanks in advance,

ast
-- 
Andrew S. Townley <ast at atownley.org>
http://atownley.org



More information about the Ironruby-core mailing list