[redland-dev] wrapper for ruby
Dave Beckett
dave.beckett at bristol.ac.uk
Tue May 11 12:16:43 BST 2004
On Sun, 2 May 2004 11:31:34 -0600, dominic sisneros <dom at sisna.com> wrote:
> On Apr 28, 2004, at 1:52 PM, Dave Beckett wrote:
> ...
> For ruby-gems I guess you need > 1.8 or a downloaded copy of stringIO.
> For the actual stuff I wrote, I thing 1.6 > would work. I guess I need
> to write
> an install script to be used without ruby-gems.
> >
> > $ ruby rdf-redland.gemspec
> > /usr/lib/site_ruby/1.6/rubygems/builder.rb:8:in `require': No such file
> > to load -- stringio (LoadError) from
> > /usr/lib/site_ruby/1.6/rubygems/builder.rb:8 from
> > /usr/lib/site_ruby/1.6/rubygems.rb:102:in `require' from
> > /usr/lib/site_ruby/1.6/rubygems.rb:102 from
> > rdf-redland.gemspec:1:in `require' from rdf-redland.gemspec:1
> >
> > You are also using some other ruby modules (gems?) in the test/ dir
> > such
> > as test/unit which I guess I need to grab.
>
> This is a standard lib in Ruby 1.8 or greater. I actually suggest you
> use
> Ruby 1.8 at least. A lot of good libraries included
A bit later, and I've installed ruby 1.8.1 and this still doesn't work.
$ ruby --version
ruby 1.8.1 (2003-12-25) [i386-linux-gnu]
$ ruby rdf-redland.gemspec
rdf-redland.gemspec:1:in `require': No such file to load -- rubygems (LoadError)
from rdf-redland.gemspec:1
Nevermind :)
<snip/>
Things are geting a little further:
$ ruby -I lib test/test_model.rb
./lib/rdf/foaf.rb:1:in `require': No such file to load -- rubygems (LoadError)
from ./lib/rdf/foaf.rb:1
from test/test_model.rb:5:in `require'
from test/test_model.rb:5
closing world
so it's sort of working.
I couldn't convince this to work. It doesn't seem to look in node.rb even
though it is searching the right directories.
$ ruby -I lib test/test_node.rb
./lib/rdf/resource.rb:6: undefined superclass `Node' (TypeError)
from ./lib/rdf/stream.rb:2:in `require'
from ./lib/rdf/stream.rb:2
from ./lib/rdf/model.rb:3:in `require'
from ./lib/rdf/model.rb:3
from ./lib/rdf.rb:5:in `require'
from ./lib/rdf.rb:5
from ./lib/rdf/node.rb:1:in `require'
from ./lib/rdf/node.rb:1
from test/test_node.rb:2:in `require'
from test/test_node.rb:2
which is the line:
class Resource < Node
in lib/rdf/resource.rb
> > Browsing the class display in http://ruby-rdf.rubyforge.org/
> > I wasn't sure if you had made the namespace change you suggested in a
> > previous email. I'm also curious what the Redland::MergedModel does
> > since it has a 'smush' method. I can guess though :)
>
> Haven't changed Namespace yet. I was waiting for the change in the
> Makefile that you
> provide so that I could just have them compile your library --with-ruby
> for now.
What should I change?
Currently the rule is
swig -v -ruby -module $(RUBY_PACKAGE) -o $@ $<
and RUBY_PACKAGE=redland
so that should be changed to ...?
<snip/>
Dave
More information about the redland-dev
mailing list