0

I found cool article on Creating cross platform GUI's with IronRuby where someone re-created the [Shoes](http://en.wikipedia.org/wiki/Shoes_(GUI_toolkit) DSL by _why the lucky stiff in IronRuby.

Awesome right!

So, I downloaded the IronRuby binaries and the code from the article and ran the following command:

c:\IronRuby\bin\ir hello_world.rb

But I get the following error:

:0:in `require': no such file to load -- Microsoft.Scripting, Version=1.0.0.2000 Culture=neutral, PublicKeyToken=null (LoadError)
        from ./shoes.rb:5
        from hello_world.rb:1
        from :0:in `require'

How do I get these sample apps to run?

jrhicks
  • 14,759
  • 9
  • 42
  • 57

2 Answers2

2

I was able to make the 4 demos examples work after removing the following 5 lines from shoes.rb:

require 'Microsoft.Scripting, Version=1.0.0.2000, Culture=neutral, PublicKeyToken=null'
require 'IronRuby, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
include Microsoft::Scripting::Hosting
include Ruby::Runtime
include Ruby

These lines are not needed.

Philippe Monnet
  • 1,152
  • 1
  • 9
  • 13
1

I suspect the version of MS.Scripting that it's asking for doesn't match the version you've got, that's a pretty common problem. Maybe check the version #s?

To check the version number, just right-click on Microsoft.Scripting.dll and you'll see the version #.

jrg
  • 731
  • 1
  • 17
  • 34
Ana Betts
  • 73,868
  • 16
  • 141
  • 209
  • How do I check the version? Can you elaborate a little? Thanks! – jrhicks Sep 15 '09 at 03:05
  • 1
    Just right-click on Microsoft.Scripting.dll and see the version # – Ana Betts Sep 15 '09 at 03:12
  • There are a few versions when you view the dll properties. I found the "assembly" version to be correct. I also had to set the Public Key Token - I was able to find this value in the ir.exe.config file. Thx. – jrhicks Sep 15 '09 at 04:31