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 http://remark.wordpress.com _________________________________________________________________ Win New York holidays with Kellogg?s & Live Search http://clk.atdmt.com/UKM/go/107571440/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080813/ff1e443f/attachment.html>
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 <mark_bloodworth at hotmail.com>> 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 > > http://remark.wordpress.com > > ------------------------------ > Get fish-slapping on Messenger! Play Now<http://clk.atdmt.com/UKM/go/101719805/direct/01/> > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero GSM: +32.486.787.582 Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080813/92b4e15e/attachment.html>
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. CheersIvan 2008/8/13 Mark Bloodworth <mark_bloodworth at hotmail.com> > 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 New York holidays with Kellogg?s & Live Search http://clk.atdmt.com/UKM/go/107571440/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080814/f7701712/attachment.html>
try ir -I C:\ironruby\lib\IronRuby;C:\ironruby\lib\ruby\1.8 or run ir.cmd On Thu, Aug 14, 2008 at 10:21 AM, Mark Bloodworth < mark_bloodworth at hotmail.com> wrote:> > 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 <mark_bloodworth at hotmail.com> > > > 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 > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080814/c19b9cad/attachment.html>
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: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mark Bloodworth Sent: Thursday, August 14, 2008 7:22 AM To: ironruby-core at rubyforge.org 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 <mark_bloodworth at hotmail.com>> 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/> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080814/30a50237/attachment-0001.html>
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 <curth at microsoft.com>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 J. > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Mark Bloodworth > *Sent:* Thursday, August 14, 2008 7:22 AM > *To:* ironruby-core at rubyforge.org > *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 <mark_bloodworth at hotmail.com> > > > 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 > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080814/5b917792/attachment.html>
Ah, ok. Between three different disk layouts, it''s easy to get confused :(. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Thursday, August 14, 2008 7:37 AM To: ironruby-core at rubyforge.org 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 <curth at microsoft.com<mailto:curth at microsoft.com>> 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: ironruby-core-bounces at rubyforge.org<mailto:ironruby-core-bounces at rubyforge.org> [mailto:ironruby-core-bounces at rubyforge.org<mailto:ironruby-core-bounces at rubyforge.org>] On Behalf Of Mark Bloodworth Sent: Thursday, August 14, 2008 7:22 AM To: ironruby-core at rubyforge.org<mailto:ironruby-core at rubyforge.org> 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 <mark_bloodworth at hotmail.com<mailto:mark_bloodworth at hotmail.com>>> 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 Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080814/b2f431b4/attachment-0001.html>
If you''re running ir.cmd, it should be including the -I options for you. JD ________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] On Behalf Of Curt Hagenlocher [curth at microsoft.com] Sent: Thursday, August 14, 2008 8:29 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] IronRuby binary disribution Ah, ok. Between three different disk layouts, it?s easy to get confused :(. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Thursday, August 14, 2008 7:37 AM To: ironruby-core at rubyforge.org 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 <curth at microsoft.com<mailto:curth at microsoft.com>> 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: ironruby-core-bounces at rubyforge.org<mailto:ironruby-core-bounces at rubyforge.org> [mailto:ironruby-core-bounces at rubyforge.org<mailto:ironruby-core-bounces at rubyforge.org>] On Behalf Of Mark Bloodworth Sent: Thursday, August 14, 2008 7:22 AM To: ironruby-core at rubyforge.org<mailto:ironruby-core at rubyforge.org> 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 <mark_bloodworth at hotmail.com<mailto:mark_bloodworth at hotmail.com>>> 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 Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080814/ee70edd3/attachment.html>
Jim Deville:> If you''re running ir.cmd, it should be including the -I options for > you.Not sure if this helps, but ir.cmd has gone away in the r128 build. We are now configuring the relative paths to the different directories via ir.exe.config: <configuration> <appSettings> <add key="LibPaths" value="..\..\lib\IronRuby;..\..\lib\ruby\site_ruby\1.8;..\..\lib\ruby\site_ruby;..\..\lib\ruby\1.8" /> </appSettings> </configuration> Thanks, -John
cool thanks Is there a way to inspect interactively after running a script ? I used to use ir -i but -i is used for something differently I''ve been told last time. And the last question I had is: How do I detach an event handler the equivalent of -= in C#? 2008/8/14 John Lam (IRONRUBY) <jflam at microsoft.com>> Jim Deville: > > > If you''re running ir.cmd, it should be including the -I options for > > you. > > Not sure if this helps, but ir.cmd has gone away in the r128 build. We are > now configuring the relative paths to the different directories via > ir.exe.config: > > <configuration> > <appSettings> > <add key="LibPaths" > value="..\..\lib\IronRuby;..\..\lib\ruby\site_ruby\1.8;..\..\lib\ruby\site_ruby;..\..\lib\ruby\1.8" > /> > </appSettings> > </configuration> > > Thanks, > -John > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080814/de01af22/attachment.html>
Couldn?t you run ?require ?foo?? on the interactive command line to achieve the same effect? Events still need some work. Detaching is not supported yet. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, August 14, 2008 9:37 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] IronRuby binary disribution cool thanks Is there a way to inspect interactively after running a script ? I used to use ir -i but -i is used for something differently I''ve been told last time. And the last question I had is: How do I detach an event handler the equivalent of -= in C#? 2008/8/14 John Lam (IRONRUBY) <jflam at microsoft.com<mailto:jflam at microsoft.com>> Jim Deville:> If you''re running ir.cmd, it should be including the -I options for > you.Not sure if this helps, but ir.cmd has gone away in the r128 build. We are now configuring the relative paths to the different directories via ir.exe.config: <configuration> <appSettings> <add key="LibPaths" value="..\..\lib\IronRuby;..\..\lib\ruby\site_ruby\1.8;..\..\lib\ruby\site_ruby;..\..\lib\ruby\1.8" /> </appSettings> </configuration> Thanks, -John _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080814/b738ef73/attachment-0001.html>
Yep I can do require ''foo'' but I want to set up a rake task or a script in ironnails that loads the environment but doesn''t start the application. So that you can interact with the application. 2008/8/14 Tomas Matousek <Tomas.Matousek at microsoft.com>> Couldn''t you run ''require "foo"'' on the interactive command line to > achieve the same effect? > > > > Events still need some work. Detaching is not supported yet. > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Thursday, August 14, 2008 9:37 AM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] IronRuby binary disribution > > > > cool thanks > > > Is there a way to inspect interactively after running a script ? > I used to use ir -i but -i is used for something differently I''ve been told > last time. > > And the last question I had is: > How do I detach an event handler the equivalent of -= in C#? > > 2008/8/14 John Lam (IRONRUBY) <jflam at microsoft.com> > > Jim Deville: > > > > If you''re running ir.cmd, it should be including the -I options for > > you. > > Not sure if this helps, but ir.cmd has gone away in the r128 build. We are > now configuring the relative paths to the different directories via > ir.exe.config: > > <configuration> > <appSettings> > <add key="LibPaths" > value="..\..\lib\IronRuby;..\..\lib\ruby\site_ruby\1.8;..\..\lib\ruby\site_ruby;..\..\lib\ruby\1.8" > /> > </appSettings> > </configuration> > > Thanks, > -John > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero GSM: +32.486.787.582 Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080814/8b7248b2/attachment.html>
Ruby (irb) has ?r<file> command line option that requires a file before starting repl. Would that work for you? Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, August 14, 2008 10:34 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] IronRuby binary disribution Yep I can do require ''foo'' but I want to set up a rake task or a script in ironnails that loads the environment but doesn''t start the application. So that you can interact with the application. 2008/8/14 Tomas Matousek <Tomas.Matousek at microsoft.com<mailto:Tomas.Matousek at microsoft.com>> Couldn''t you run ''require "foo"'' on the interactive command line to achieve the same effect? Events still need some work. Detaching is not supported yet. Tomas From: ironruby-core-bounces at rubyforge.org<mailto:ironruby-core-bounces at rubyforge.org> [mailto:ironruby-core-bounces at rubyforge.org<mailto:ironruby-core-bounces at rubyforge.org>] On Behalf Of Ivan Porto Carrero Sent: Thursday, August 14, 2008 9:37 AM To: ironruby-core at rubyforge.org<mailto:ironruby-core at rubyforge.org> Subject: Re: [Ironruby-core] IronRuby binary disribution cool thanks Is there a way to inspect interactively after running a script ? I used to use ir -i but -i is used for something differently I''ve been told last time. And the last question I had is: How do I detach an event handler the equivalent of -= in C#? 2008/8/14 John Lam (IRONRUBY) <jflam at microsoft.com<mailto:jflam at microsoft.com>> Jim Deville:> If you''re running ir.cmd, it should be including the -I options for > you.Not sure if this helps, but ir.cmd has gone away in the r128 build. We are now configuring the relative paths to the different directories via ir.exe.config: <configuration> <appSettings> <add key="LibPaths" value="..\..\lib\IronRuby;..\..\lib\ruby\site_ruby\1.8;..\..\lib\ruby\site_ruby;..\..\lib\ruby\1.8" /> </appSettings> </configuration> Thanks, -John _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core -- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero GSM: +32.486.787.582 Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080814/08954e84/attachment.html>
that would be great :D. Thanks 2008/8/14, Tomas Matousek <Tomas.Matousek at microsoft.com>:> Ruby (irb) has ?r<file> command line option that requires a file before > starting repl. > Would that work for you? > > Tomas > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto > Carrero > Sent: Thursday, August 14, 2008 10:34 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] IronRuby binary disribution > > Yep I can do require ''foo'' > > but I want to set up a rake task or a script in ironnails that loads the > environment but doesn''t start the application. So that you can interact with > the application. > > > 2008/8/14 Tomas Matousek > <Tomas.Matousek at microsoft.com<mailto:Tomas.Matousek at microsoft.com>> > > Couldn''t you run ''require "foo"'' on the interactive command line to achieve > the same effect? > > > > Events still need some work. Detaching is not supported yet. > > > > Tomas > > > > From: > ironruby-core-bounces at rubyforge.org<mailto:ironruby-core-bounces at rubyforge.org> > [mailto:ironruby-core-bounces at rubyforge.org<mailto:ironruby-core-bounces at rubyforge.org>] > On Behalf Of Ivan Porto Carrero > > Sent: Thursday, August 14, 2008 9:37 AM > To: ironruby-core at rubyforge.org<mailto:ironruby-core at rubyforge.org> > Subject: Re: [Ironruby-core] IronRuby binary disribution > > > > cool thanks > > > Is there a way to inspect interactively after running a script ? > I used to use ir -i but -i is used for something differently I''ve been told > last time. > > And the last question I had is: > How do I detach an event handler the equivalent of -= in C#? > > 2008/8/14 John Lam (IRONRUBY) > <jflam at microsoft.com<mailto:jflam at microsoft.com>> > > Jim Deville: > >> If you''re running ir.cmd, it should be including the -I options for >> you. > > Not sure if this helps, but ir.cmd has gone away in the r128 build. We are > now configuring the relative paths to the different directories via > ir.exe.config: > > <configuration> > <appSettings> > <add key="LibPaths" > value="..\..\lib\IronRuby;..\..\lib\ruby\site_ruby\1.8;..\..\lib\ruby\site_ruby;..\..\lib\ruby\1.8" > /> > </appSettings> > </configuration> > > Thanks, > -John > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > -- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > GSM: +32.486.787.582 > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim >-- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero GSM: +32.486.787.582 Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim
Michael, ir.cmd does the trick. Thanks Mark ============================================Message: 4Date: Thu, 14 Aug 2008 10:30:31 -0400From: "Michael Letterle" <michael.letterle at gmail.com>Subject: Re: [Ironruby-core] IronRuby binary disributionTo: ironruby-core at rubyforge.orgMessage-ID: <ef5222770808140730t176ddb5cv24e53eddc1ced21a at mail.gmail.com>Content-Type: text/plain; charset="iso-8859-1" try ir -I C:\ironruby\lib\IronRuby;C:\ironruby\lib\ruby\1.8 or run ir.cmd============================================_________________________________________________________________ Get Hotmail on your mobile from Vodafone http://clk.atdmt.com/UKM/go/107571435/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080815/6441f964/attachment.html>