File loading problems using rdf-redland gem

When I try to run a ruby script that uses rdf-redland I get the
following "No such file to load" error. Possibly it is not finding my
installation of redland?

ruby -rubygems parse.rb

/usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
`require__': No such file to load -- redland (LoadError)
       from /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
`require'
       from /usr/local/lib/ruby/gems/1.8/gems/rdf-redland-0.5.1.3/lib/rdf/redland/store.rb:1
       from /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
`require__'
       from /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
`require'
       from /usr/local/lib/ruby/gems/1.8/gems/rdf-redland-0.5.1.3/lib/rdf/redland/model.rb:2
       from /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
`require__'
       from /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
`require'
       from /usr/local/lib/ruby/gems/1.8/gems/rdf-redland-0.5.1.3/lib/rdf/redland.rb:1
       from /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
`require__'
       from /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
`require'
       from parse.rb:1

Here's my script (parse.rb):

require 'rdf/redland'
include Redland
model = Model.new
parser = Parser.raptor
parser.parse_into_model(model,'allpolls.rdf')
p model.methods

I'm running on GNU/Linux (Fedora Core 1). I have rdf-redland0.5.1.3 installed:

gem list rdf

rdf-redland (0.5.1.3)

I have compiled and installed redland 0.9.18:

./configure --with-ruby
make
make install

Any ideas on how to prevent the "No such file to load -- redland" error?

Cheers,
Rob

Hi Rob,

Looks like you've found a RubyGems bug. I think we have seen
something similar since 0.8.1 was released, so we should be able to
figure it out pretty quickly.

Thanks for the report.

Chad

···

On Sat, 9 Oct 2004 02:41:57 +0900, Rob . <rob.02004@gmail.com> wrote:

When I try to run a ruby script that uses rdf-redland I get the
following "No such file to load" error. Possibly it is not finding my
installation of redland?

> ruby -rubygems parse.rb
/usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
`require__': No such file to load -- redland (LoadError)
      from /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
`require'
      from /usr/local/lib/ruby/gems/1.8/gems/rdf-redland-0.5.1.3/lib/rdf/redland/store.rb:1
      from /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
`require__'
      from /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
`require'
      from /usr/local/lib/ruby/gems/1.8/gems/rdf-redland-0.5.1.3/lib/rdf/redland/model.rb:2
      from /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
`require__'
      from /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
`require'
      from /usr/local/lib/ruby/gems/1.8/gems/rdf-redland-0.5.1.3/lib/rdf/redland.rb:1
      from /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
`require__'
      from /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
`require'
      from parse.rb:1

Chad, are there any work-arounds you can suggest in the meantime? I'd
like to give rdf-redland a whirl. :wink:

My first thought had been that I had missed a step when doing the
configure, make, install of the redland c library.

Thanks,
Rob

···

On Sat, 9 Oct 2004 05:55:31 +0900, Chad Fowler <chadfowler@gmail.com> wrote:

On Sat, 9 Oct 2004 02:41:57 +0900, Rob . <rob.02004@gmail.com> wrote:
> When I try to run a ruby script that uses rdf-redland I get the
> following "No such file to load" error. Possibly it is not finding my
> installation of redland?
>
> > ruby -rubygems parse.rb
> /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
> `require__': No such file to load -- redland (LoadError)
> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in

...

Hi Rob,

Looks like you've found a RubyGems bug. I think we have seen
something similar since 0.8.1 was released, so we should be able to
figure it out pretty quickly.

Thanks for the report.

Chad