[Ironruby-core] Accessing open-uri from the same directory

Ivan Porto Carrero ivan at flanders.co.nz
Wed Jun 17 14:07:46 EDT 2009

for me the compiled binaries end up in:


and this is how the relevant tag looks like in that ir.exe.config file

<set option='LibraryPaths' language='Ruby'

I know it's lame but it works for me.

+ C:\tools\ironruby
(master) » ir
IronRuby on .NET 2.0.50727.4918
Copyright (c) Microsoft Corporation. All rights reserved.

>>> require 'open-uri'
=> true

Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)

On Wed, Jun 17, 2009 at 7:48 PM, Mohammad Azam <lists at ruby-forum.com> wrote:

> I am using ir command to run it. It is all ruby code.
> I went to the
> C:\ironruby\ironruby\Merlin\External.LCA_RESTRICTED\Languages\Ruby\redist-libs\ruby\1.8
> folder and run the following code:
> require 'open-uri'
> it asked for stringio (not sure why it was missing) so I placed it in
> the 1.8 folder and ran again and it worked. But now when I use the same
> files for my project libs/stringio.rb it does not work.
> C:\IronRubyProjects\IronRubyTaskListApplication>ir main_form.rb
> :0:in `require': no such file to load -- uri (LoadError)
>        from ./libs/open-uri.rb:1
>        from main_form.rb:4
>        from :0:in `require'
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> 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/20090617/8595a60b/attachment.html>

More information about the Ironruby-core mailing list