From owner-freebsd-questions@FreeBSD.ORG Mon Mar 10 13:57:59 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 3326D106566C for ; Mon, 10 Mar 2008 13:57:59 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id AC58B8FC12 for ; Mon, 10 Mar 2008 13:57:58 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from lack-of-gravitas.thebunker.net (gateway.ash.thebunker.net [213.129.64.4]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.2/8.14.2) with ESMTP id m2ADvro7011005 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 10 Mar 2008 13:57:53 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.5.0 smtp.infracaninophile.co.uk m2ADvro7011005 Message-ID: <47D53E60.4000509@infracaninophile.co.uk> Date: Mon, 10 Mar 2008 13:57:52 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.12 (X11/20080310) MIME-Version: 1.0 To: nicolas@nicoelro.net References: <47D52116.2010008@nicoelro.net> <47D53040.8000508@infracaninophile.co.uk> <47D533A2.9030409@nicoelro.net> In-Reply-To: <47D533A2.9030409@nicoelro.net> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (smtp.infracaninophile.co.uk [81.187.76.162]); Mon, 10 Mar 2008 13:57:53 +0000 (GMT) X-Virus-Scanned: ClamAV 0.92.1/6191/Mon Mar 10 10:45:33 2008 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_FAIL autolearn=no version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on happy-idiot-talk.infracaninophile.co.uk Cc: FreeBSD Questions Subject: Re: Import bayes_* for SpamAssassin from Debian to FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Mar 2008 13:57:59 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 Nicolas Letellier wrote: > 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? Hmmm.... assuming that the debian box and the new FreeBSD box have the same CPU architecture -- ie. both i386 machines the .db files should be compatible. I /think/ they're compatible between a 32 and a 64 bit machine of the same endian-ness BICBW. Can you confirm that the copies of the files on the FreeBSD box are byte-for-byte identical to the originals on the Debian box? The easiest way to do this is to generate MD5 or similar checksums on both. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. Flat 3 7 Priory Courtyard PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW, UK -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREDAAYFAkfVPmAACgkQ3jDkPpsZ+VYxAQCeJmgCIqh5A7SzvGfiOmV/lGWU jBoAnjYBv8F+fh/0Nx9Ms1nizDFz7oSu =OUTN -----END PGP SIGNATURE-----