From owner-freebsd-questions@FreeBSD.ORG Mon Mar 10 13:12:05 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A6EA106566B for ; Mon, 10 Mar 2008 13:12:05 +0000 (UTC) (envelope-from nicolas@nicoelro.net) Received: from mail.nicoelro.net (helm.nicoelro.net [87.98.216.147]) by mx1.freebsd.org (Postfix) with ESMTP id 60AD18FC1E for ; Mon, 10 Mar 2008 13:12:05 +0000 (UTC) (envelope-from nicolas@nicoelro.net) Received: by mail.nicoelro.net (Postfix, from userid 58) id 5157678D23; Mon, 10 Mar 2008 14:12:04 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on helm.nicoelro.net X-Spam-Level: X-Spam-Status: No, score=-2.2 required=6.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from [192.168.1.2] (unknown [83.205.52.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: nicolas@nicoelro.net) by mail.nicoelro.net (Postfix) with ESMTP id 6BF9878CCC; Mon, 10 Mar 2008 14:12:03 +0100 (CET) Message-ID: <47D533A2.9030409@nicoelro.net> Date: Mon, 10 Mar 2008 14:12:02 +0100 From: Nicolas Letellier User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Matthew Seaman , FreeBSD Questions References: <47D52116.2010008@nicoelro.net> <47D53040.8000508@infracaninophile.co.uk> In-Reply-To: <47D53040.8000508@infracaninophile.co.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: Subject: Re: Import bayes_* for SpamAssassin from Debian to FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: nicolas@nicoelro.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Mar 2008 13:12:05 -0000 Matthew Seaman a écrit : > You'll need to install the same version of Berkeley DB on FreeBSD as you were > using on Debian -- and you'll have to compile the perl modules SpamAssassin > uses for BerkeleyDB access to use that version too. I use the same BerkeleyDB. I use db41 on FreeBSD (and db41* commands) and db41 on Debian (and db.41* commands). `file`commands returns the same headers of the file on Debian and the defaults ~/.spamassassin/tok*. When I try this: root@trinite .spamassassin # sa-learn --import --dbpath . bayes: cannot open bayes databases ./bayes_* R/O: tie failed: Inappropriate file type or format upgrading to DB_File, please be patient: ./old_bayes_seen DB_File: no database of that kind found, nothing copied GDBM_File: no database of that kind found, nothing copied NDBM_File: no database of that kind found, nothing copied SDBM_File: no database of that kind found, nothing copied upgrading to DB_File, please be patient: ./old_bayes_toks DB_File: no database of that kind found, nothing copied GDBM_File: no database of that kind found, nothing copied NDBM_File: no database of that kind found, nothing copied SDBM_File: no database of that kind found, nothing copied import failed, original files saved with "old" prefix What must I do? Do you think it's a Perl problem? -Nicolas