Using Mono 2.0 I was able to build IronRuby but it's not working properly:

~/code/ruby/ironruby/build/mono_debug$ ./ir.exe
IronRuby 1.0.0.0 on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.

Note that local variables do not work today in the console.
As a workaround, use globals instead (eg $x = 42 instead of x = 42).

>>> 3 + 3
unknown: An exception was thrown by the type initializer for
Microsoft.Scripting.SourceCodeReader (System::TypeInitializationException)

~/code/ruby/ironruby/build/mono_debug$ mono ./ir.exe ~/code/ruby/hello.rb
mscorlib:0:in `set_Fallback': Argument cannot be null.
(System::ArgumentNullException)
    from mscorlib:0:in `.ctor'
    from mscorlib:0:in `GetDecoder'
    from mscorlib:0:in `Initialize'
    from mscorlib:0:in `.ctor'
    from mscorlib:0:in `.ctor'

Any suggestions?

Thanks,
Antonio
-- 
http://antoniocangiano.com - Zen and the Art of Programming
http://math-blog.com - Mathematics is wonderful!
http://stacktrace.it - Aperiodico di resistenza informatica
Currently writing "Ruby on Rails for Microsoft Developers" for Wrox.
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to