Re: Couldn't detect type of database

Olly Betts <[email protected]>
Newsgroups gmane.comp.search.xapian.general
Message-ID <[email protected]>
On Thu, Sep 20, 2018 at 05:00:45AM -0400, Jim Lynch wrote:
> I have no idea what was going on.  I installed xapian from Ubuntu repos and
> had the issue.

Unless you're on artful or newer, you probably installed 1.2.x from the
Ubuntu repos:

https://packages.ubuntu.com/search?searchon=sourcenames&keywords=xapian-core

And 1.2.x is too old to read the database you have.

If you want to packages on Ubuntu which will work with your database, we
provide up to date versions via a PPA:

https://launchpad.net/~xapian-backports/+archive/ubuntu/ppa

Perhaps that's what you were using before the disk crash?

> > > ./XS/WritableDatabase.xs:30:47: error: missing binary operator before
> > > token "("
> > >   #if defined XAPIAN_AT_LEAST && XAPIAN_AT_LEAST(1,5,0)
> > >                                                 ^

> > Unfortunately this construct fails to compile when XAPIAN_AT_LEAST isn't
> > defined.  I'll fix uses of it, but meanwhile the simple workaround is to
> > use xapian-core 1.4.2 or newer, as the XAPIAN_AT_LEAST macro was added
> > in 1.4.2.

I've uploaded a new Search::Xapian with a fix for this.

Cheers,
    Olly
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.