If you're running ir.cmd, it should be including the -I options for you. JD ________________________________ From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Curt Hagenlocher [EMAIL PROTECTED] Sent: Thursday, August 14, 2008 8:29 AM To: [email protected] Subject: Re: [Ironruby-core] IronRuby binary disribution
Ah, ok. Between three different disk layouts, it’s easy to get confused :(. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Letterle Sent: Thursday, August 14, 2008 7:37 AM To: [email protected] Subject: Re: [Ironruby-core] IronRuby binary disribution The binary distribution library layout is different, there is no "libs" directory, the libraries are separated under lib\IronRuby and lib\ruby\1.8 On Thu, Aug 14, 2008 at 10:32 AM, Curt Hagenlocher <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote: Note that the error message is now different. The reason that you see three calls to "Update3" is probably because you required 'net/http' which requires 'net/protocol' which requires 'socket'. Socket itself is a binary extension in MRI, but IronRuby needs a stub socket.rb to load it. This stub is in "IronRuby\libs" – but on your command line, you wrote "IronRuby\lib" which is subtly different :). From: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]> [mailto:[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>] On Behalf Of Mark Bloodworth Sent: Thursday, August 14, 2008 7:22 AM To: [email protected]<mailto:[email protected]> Subject: Re: [Ironruby-core] IronRuby binary disribution Ivan, Thanks. I tried that (I don't have a ruby installation on the machine I'm trying this on, so I started ir with ir -I "C:\ironruby\lib;C:\ironruby\lib\ruby\1.8". In the latter of those folders are all the ruby files that came with the binary distribution.) The result I got is: >>> require 'net/http' IronRuby.Libraries:0:in `require': no such file to load -- socket (LoadError) from Microsoft.Scripting.Core:0:in `UpdateAndExecute' from Microsoft.Scripting.Core:0:in `Update3' from :0 from Microsoft.Scripting.Core:0:in `InvokeTarget' from Microsoft.Scripting.Core:0:in `Run' from IronRuby.Libraries:0:in `require' from Microsoft.Scripting.Core:0:in `UpdateAndExecute' from Microsoft.Scripting.Core:0:in `Update3' from :0 from Microsoft.Scripting.Core:0:in `InvokeTarget' from Microsoft.Scripting.Core:0:in `Run' from IronRuby.Libraries:0:in `require' from Microsoft.Scripting.Core:0:in `UpdateAndExecute' from Microsoft.Scripting.Core:0:in `Update3' from :0 from Microsoft.Scripting.Core:0:in `InvokeTarget' from Microsoft.Scripting.Core:0:in `Run' Does this mean it's now trying 3 places and failing instead of one place and failing? Thanks Mark Hi Mark, try running the console with something like: ir -I 'C:\tools\ironruby\libs;C:\tools\ruby\lib\ruby\site_ruby\1.8;C:\tools\ruby\lib\ruby\1.8' of course the paths need to be adapted to how they are on your computer. Cheers Ivan 2008/8/13 Mark Bloodworth <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> > Does the IronRuby binary distribution have any dependencies on the MRI > distribution? If I require a standard Ruby library from IronRuby, I get an > error that there is "no such file to load". > > > > I unzipped the binary distribution to the root of the C drive. I then > added C:\IronRuby\bin to my system PATH variable. Now I can open a command > prompt and start ir. I can require .net libraries - all works. However, if > I try to require a standard ruby library, I get an error (see text below.) > > > > >>> require 'net/http' > IronRuby.Libraries:0:in `require': no such file to load -- net/http > (LoadError) > from Microsoft.Scripting.Core:0:in `UpdateAndExecute' > from Microsoft.Scripting.Core:0:in `Update3' > from :0 > from Microsoft.Scripting.Core:0:in `InvokeTarget' > from Microsoft.Scripting.Core:0:in `Run' > > > > Thanks > > > > Mark ________________________________ Win £3000 to spend on whatever you want at Uni! Click here to WIN!<http://clk.atdmt.com/UKM/go/101719803/direct/01/> _______________________________________________ Ironruby-core mailing list [email protected]<mailto:[email protected]> http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com
_______________________________________________ Ironruby-core mailing list [email protected] http://rubyforge.org/mailman/listinfo/ironruby-core
