From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.213.13.12 with SMTP id z12cs1164191ebz; Sun, 3 Jan 2010 11:39:03 -0800 (PST) Received: by 10.224.79.234 with SMTP id q42mr10703790qak.364.1262547542360; Sun, 03 Jan 2010 11:39:02 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 41si26815405qyk.31.2010.01.03.11.39.02; Sun, 03 Jan 2010 11:39:02 -0800 (PST) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id C997C19782DC; Sun, 3 Jan 2010 14:39:01 -0500 (EST) Received: from mail.cnsp.com (mail.cnsp.com [208.3.80.17]) by rubyforge.org (Postfix) with ESMTP id B646618582CA; Sun, 3 Jan 2010 14:38:54 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.cnsp.com (Postfix) with ESMTP id 60042D45B5B2; Sun, 3 Jan 2010 12:38:53 -0700 (MST) X-Virus-Scanned: Debian amavisd-new at cnsp.biz Received: from mail.cnsp.com ([127.0.0.1]) by localhost (mail.cnsp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id q7OQa44eYA2j; Sun, 3 Jan 2010 12:38:53 -0700 (MST) Received: from home.mrtheplague.net (coffeehost.tcct.nmt.edu [129.138.3.50]) by mail.cnsp.com (Postfix) with SMTP id 11939D45B5A1; Sun, 3 Jan 2010 12:38:52 -0700 (MST) Received: by home.mrtheplague.net (Postfix, from userid 1000) id D40E98695572; Sun, 3 Jan 2010 12:38:52 -0700 (MST) From: Anthony Martinez X-modeline: vim:tw=80:ft=mail:fo=tcql To: sup-talk In-reply-to: <1262531773-sup-5192@masanjin.net> References: <1262460996-sup-1383@home.mrtheplague.net> <1262467343-sup-9565@masanjin.net> <1262471675-sup-1708@masanjin.net> <1262531773-sup-5192@masanjin.net> Date: Sun, 03 Jan 2010 12:38:52 -0700 Message-Id: <1262546960-sup-6875@home.mrtheplague.net> User-Agent: Sup/git Cc: sup-devel@rubyforge.org Subject: Re: [sup-devel] [sup-talk] Ferret to Xapian conversion X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org 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