RDig config file problem

Hi All,

Hope it is ok to post RDig queries on this forum.

Just trying to get RDig working (Ubuntu 6.06, RDig 0.3.0, ferret 0.9.4,
rubyful_soup 1.0.4)

Here is my output:

sh:~/rdigtry$ rdig -c config/rdig_config.rb
discovered content extractor class:
RDig::ContentExtractors::PdfContentExtractor
discovered content extractor class:
RDig::ContentExtractors::WordContentExtractor
discovered content extractor class:
RDig::ContentExtractors::HtmlContentExtractor
/home/steven/rdigtry/config/rdig_config.rb:4
/usr/lib/ruby/gems/1.8/gems/rdig-0.3.0/lib/rdig.rb:113:in
configuration' /home/steven/rdigtry/config/rdig_config.rb:1 /usr/lib/ruby/gems/1.8/gems/rdig-0.3.0/lib/rdig.rb:226:inload_configfile’
/usr/lib/ruby/gems/1.8/gems/rdig-0.3.0/lib/rdig.rb:233:in run' /usr/lib/ruby/gems/1.8/gems/rdig-0.3.0/bin/rdig:13 /usr/bin/rdig:18 /usr/lib/ruby/gems/1.8/gems/rdig-0.3.0/lib/rdig.rb:236:inrun’: No
Configfile found! (RuntimeError)
undefined method `path=’ for nil:NilClass from
/usr/lib/ruby/gems/1.8/gems/rdig-0.3.
0/bin/rdig:13
from /usr/bin/rdig:18

and here is my config file:

RDig.configuration do |cfg|

cfg.crawler.start_urls = [ ‘http://bbc.co.uk’ ]
cfg.indexer.path = ‘/home/steven/rdigtry/index’
cfg.verbose = true

end

Seems as though the RDig script can’t load my config file?
Any advice very gratefully received.
Many Thanks,
Steven

Hi Steven,

On Fri, Jul 14, 2006 at 03:00:07PM +0200, steven shingler wrote:

[…]

and here is my config file:

RDig.configuration do |cfg|

cfg.crawler.start_urls = [ ‘http://bbc.co.uk’ ]
cfg.indexer.path = ‘/home/steven/rdigtry/index’

that line should read

cfg.index.path = ‘/home/steven/rdigtry/index’

I fixed the readme now to reflect this.

Jens


webit! Gesellschaft für neue Medien mbH www.webit.de
Dipl.-Wirtschaftsingenieur Jens Krämer [email protected]
Schnorrstraße 76 Tel +49 351 46766 0
D-01069 Dresden Fax +49 351 46766 66

Jens K. wrote:

that line should read

cfg.index.path = ‘/home/steven/rdigtry/index’

I fixed the readme now to reflect this.

Jens

Super! Thanks Jens.
S~

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs