On Mon, May 22, 2023 at 10:35:25PM +0000, nebulaaksum
wrote:> I was just installing xapian-bindings-1.4.22 on Ubuntu 22.04, but I
> got the following warning message:
>
> configure: WARNING: Xapian library is version 1.4.18 but the bindings
> are version 1.4.22 - we strongly recommend using matching versions.
The issue here is mostly that xapian-bindings wraps almost the entire
C++ API (the main exception if the Unicode stuff like
Xapian::Utf8Iterator as other languages generally have their own
Unicode support which is a better option) so it's more tightly coupled
to the xapian-core API than an application typically is.
In your case, xapian-core 1.4.19 added a new
`Xapian::QueryParser::FLAG_NO_POSITIONS` flag and xapian-bindings 1.4.19
and later will try to wrap this, so I expect you'll get a compilation
failure as the headers from xapian-core 1.4.18 won't provide this flag.
Generally xapian-bindings with a newer xapian-core (within the same
stable release series) should work. We don't do regular testing
of mismatched combinations in either direction though.
> I tried to check my xapian core-1.4.22 for the library, but could not
> find that library. How do I fix this?
Install xapian-core-1.4.22 from source too.
Or you could use the packages of xapian-bindings from Ubuntu 22.04 if
you're using Java, Python3, Ruby or Tcl and are happy with using 1.4.18:
https://packages.ubuntu.com/source/jammy/xapian-bindings
There is also a PPA with backported packages (of the same languages
as Ubuntu 22.04 has packages for), but I've not updated that since
1.4.18, so that doesn't currently help if you want newer:
https://launchpad.net/~xapian/+archive/ubuntu/backports
Updating it is on my todo list.
Cheers,
Olly