Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
From: Anthony Martinez <pi+sup@pihost.us>
To: sup-talk <sup-talk@rubyforge.org>
Cc: sup-devel@rubyforge.org
Subject: Re: [sup-devel] [sup-talk] Ferret to Xapian conversion
Date: Sun, 03 Jan 2010 12:38:52 -0700	[thread overview]
Message-ID: <1262546960-sup-6875@home.mrtheplague.net> (raw)
In-Reply-To: <1262531773-sup-5192@masanjin.net>

Excerpts from William Morgan's message of Sun Jan 03 08:18:53 -0700 2010:
> If you run this script, please report your experience, since I'd like to
> include it in the 0.10 release coming soon.

Here is a patch to make it complain about not having Xapian *before* starting
the state dump, so it doesn't get to step 3 and suddenly find out that it can't
load Xapian.

Speaking of not having the Xapian gem, when I tried "gem install xapian-full",
it looked like it worked, but didn't actually install a gem on my system. Here's
the build log: http://pastebin.com/f2d25a13c

I tried the regular 'xapian' gem, but the version available in Debian unstable
is newer than the gem bindings, so that one outright refuses to compile.

Help!

diff --git a/bin/sup-convert-ferret-index b/bin/sup-convert-ferret-index
index 96a97aa..e78ac4b 100755
--- a/bin/sup-convert-ferret-index
+++ b/bin/sup-convert-ferret-index
@@ -42,6 +42,12 @@ def run cmd
   puts
 end
 
+begin
+    require 'xapian'
+rescue LoadError
+    Trollop::die "you don't have the xapian gem installed, so this script won't do much for you. `gem install xapian' first."
+end
+
 Redwood::start
 index = Redwood::Index.init
 Trollop::die "you appear to already have a Xapian index--delete #{File.join(Redwood::BASE_DIR, "xapian")} if you really want to do this" unless Redwood::Index.is_a_deprecated_ferret_index?
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel


       reply	other threads:[~2010-01-03 19:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1262460996-sup-1383@home.mrtheplague.net>
     [not found] ` <1262467343-sup-9565@masanjin.net>
     [not found]   ` <1262471675-sup-1708@masanjin.net>
     [not found]     ` <1262531773-sup-5192@masanjin.net>
2010-01-03 19:38       ` Anthony Martinez [this message]
2010-01-03 20:18         ` Rich Lane
2010-01-03 22:47           ` Anthony Martinez
2010-01-03 22:07         ` William Morgan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1262546960-sup-6875@home.mrtheplague.net \
    --to=pi+sup@pihost.us \
    --cc=sup-devel@rubyforge.org \
    --cc=sup-talk@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox