From: Oliver Cromm Date: 2005-01-30T07:15:49+09:00 Subject: Ruby-WordNet (was: Error with bdb installation) Claus Spitzer wrote: > While on the topic of Ruby-WordNet, you may want to fix a little bug > in convertdb.rb, line 183: > Where it says > if (entries % CommitThreshold).nonzero? > it should be > if (entries % CommitThreshold).zero? > The idea is to have the db commit on every 2000th record, not on every > record _but_ the 2000th ones. I went through a weekend of headaches > before I found that out ;). As I said in the other post, the Ruby-dbd installation went ok at home, so I could install Ruby-WordNet, after the following detours (let's collect them ;-) 1. Your above-mentioned patch. 2. I had to reduce CommitThreshold to 1000, before that I got a "cuold not allocate memory" error, even after closing all other applications. I have 192 MB on that machine. 3. I couldn't run the tests, because I didn't have Test::Unit::Mock, although it is supposed to be included in ruby 1.8.2. Not in the cygwin version, it seems. I could install the latest release after I changed this line in the install.rb file: | elsif site_libdir !~ Regexp.quote(@version) to | elsif !site_libdir =~ Regexp.quote(@version) because it was giving me a "type mismatch: String given" error. Then all the tests ran ok. 4. I could install the docs after changing all the references to 'css2' in docs/makedocs.rb to 'html', because there is no css2.rb file in my RDoc. It would be better to write scripts in a tad more flexible manner. -- Oliver C.