[redland-dev] No such file to load -- redland (LoadError)

Dave Beckett dave.beckett at bristol.ac.uk
Tue Oct 19 11:06:40 BST 2004


On Fri, 8 Oct 2004 00:36:43 -0400, "Rob ." <rob.02004 at gmail.com> wrote:

> When I try to run a script that uses rdf-redland I get the following error:
> 
> > 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
> 
> 
> I have rdf-redland 0.5.1.3 installed:
> > gem list rdf 
> *** LOCAL GEMS *** 
> 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? Is it trying to load the redland.h file from the redland
> install?

I've looked at this message for a bit but can't do much further diagnosis
than the following - it's complaining about failing to load the shared
library (dll, dylib, ...) redland library from inside ruby.

I can't tell exactly what the problem could be here.  Could be
that your system shared library path (LD_LIBRARY_PATH etc.)
isn't including wherever librdf.so and friends got installed in.
In that case you might need to ./configure --prefix=/usr --with-ruby
then make, make install and retry.

Dave





More information about the redland-dev mailing list