LIttle problem when installing xapian-bindings-1.4.22

Olly Betts olly at survex.com
Thu May 25 06:23:38 BST 2023


On Wed, May 24, 2023 at 02:18:50AM +0000, nebulaaksum wrote:
> I have more question. After successfully installing xapian-bindings-1.4.22.  I continued to install xapian-omega-1.4.22.  But it did not even pass the configuration step.
>  I intend to install xapian-omega-1.4.22 at
>  /usr/local/xapian-omega-1.4.22.  I  do my building from a separate
>  build directory lest I clutter my system.  
> 
>  sudo ../configure XAPian_CONFIG=/usr/local/xapian-core-1.4.22 \ --prefix=/usr/local/xapian-omega-1.4.22 

This doesn't match the output.  If you're trying to show commands you're
running, copy and paste them rather than trying to retype them.

> Output:
> checking /usr/local/xapian-core-1.4.22/bin/xapian-config --prefix=/usr/local/xapian-omega-1.4.22 works... configure: error: '/usr/local/xapian-core-1.4.22/bin/xapian-config --prefix=/usr/local/xapian-omega-1.4.22 --ltlibs --cxxflags' doesn't work, aborting
> I have tried to google this and no has this exact problem posted.  The other thing, the installation steps given in the package does not work with my computer at all.Eg:  ./configure my system says, it does not know.  I only use root to do configuration, compiling, and installing.  

It's not a great idea to configure or compile code as root.  You want to
run as little code as root as possible since any bugs or vulnerabilities
can do much more damage as root.

> I tried to do a little bit research why there is this new command .../configure, instead of  ./configure, but could not find any link. I am just learning by doing, but nothing to read where this ../configure came from.
> 
>  I think this packages belong to you ?
> 1. Xapian-core-1.4.22
> 2. xapian-bindings-1.4.22
> 3. xapian-omega-1.4.22
> 
>   I do not understand why it is complaining this ltlibs CXXFLAGS as not working ?

From the output it looks like you're trying to configure xapian-omega
using something like:

./configure XAPIAN_CONFIG=/usr/local/xapian-core-1.4.22/bin/xapian-config\ --prefix=/usr/local/xapian-omega-1.4.22

or maybe:

./configure XAPIAN_CONFIG='/usr/local/xapian-core-1.4.22/bin/xapian-config --prefix=/usr/local/xapian-omega-1.4.22'

The quoting is wrong there as the --prefix should be an option to
./configure like this:

./configure XAPIAN_CONFIG=/usr/local/xapian-core-1.4.22/bin/xapian-config --prefix=/usr/local/xapian-omega-1.4.22

The xapian-config script doesn't understand the --prefix option it's
getting passed so it reports an error and hence configure says it
"doesn't work".

Cheers,
    Olly



More information about the Xapian-discuss mailing list