File loading problems using rdf-redland gem

R

Rob .

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
 
C

Chad Fowler

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?

/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

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
 
R

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

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

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

Thanks,
Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,159
Messages
2,570,879
Members
47,417
Latest member
DarrenGaun

Latest Threads

Top