Re: LIttle problem when installing xapian-bindings-1.4.22
nebulaaksum <[email protected]> Thu, 25 May 2023 17:18:28 +0000
| Newsgroups | gmane.comp.search.xapian.general |
|---|---|
| Message-ID | <OSjv69Hyvn47CcvfQE4svg3W0rss5-hWpFJvvHoa4noWytgCMDweg1V_QEDRqUQyqK-ooQ9NQ1u2T2Hcxw3QxO1fQ13C_I5UwVzQqr9bg2k=@protonmail.com> |
Dear Olly, Again thank you so much. I know what you are saying about doing things as root is dangerous. But when I follow the install instruction in Zapian-core-1.4.22 and xapian-bindings-1.4.22 and Xapian-omega-1.4.22, ./configure, it never worked for me. It did work with others. But not with xapian. It is true also I use the --prefix=/usr/local/... but I did not use quotes. Here is what I tried: 1. gebreselema@system76-pc:~/myinstalls/myxapian/xapian-omega-1.4.22/xapianomegabuild$ ./configure XAPIAN_CONFIG=/usr/local/xapian-core-1.4.22/bin/xapian-config \--prefix=/usr/local/xapian-omega-1.4.22 bash: ./configure: No such file or directory 2. Second attempt: gebreselema@system76-pc:~/myinstalls/myxapian/xapian-omega-1.4.22/xapianomegabuild$ ./configure XAPIAN_CONFIG=/usr/local/xapian-core-1.4.22/bin/xapian-config bash: ./configure: No such file or directory I am just following the installation instruction and when that does not work, I tried to do it from root. With my best regards Mike Sent with Proton Mail secure email. ------- Original Message ------- On Thursday, May 25th, 2023 at 1:23 AM, Olly Betts <[email protected]> wrote: > 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