grosjo / fts-xapian

Dovecot FTS plugin based on Xapian
GNU Lesser General Public License v2.1
97 stars 21 forks source link

Building FTS-Xapian on CentOS 7 #40

Closed alessice closed 4 years ago

alessice commented 4 years ago

Hi, I'm trying to build your plugin on Centos 7 and Dovecot 2.2.36 (build from source).

The first difficulty is to build Xapian 1.4.x but I'm looking for support on related mailing-list.

The second difficulty is to install libicu-60 since centos 7 is provided with libicu-50. The version 60 of ICU is mandatory or just because you are develop your plugin on debian where the libicu version is 60 by default?

Thanks

alessice commented 4 years ago

Hi,

I have successfully build xapian from source, and also ICU 66. I have found some issue to build fts-xapian because I have installed xapian under /opt/xapian/ but was unable to find a configure options for fts-xapian to said where is xapian-config so I rebuild xapian to install under /usr/local.

If possible please ask some configure options to fts-xapian like --with-xapian= and --with-icu= so we can install it under non standard locations.

Thanks

grosjo commented 4 years ago

Can you tell me what "pkg-config --cflags-only-I icu-uc icu-io icu-i18n" returns ?

grosjo commented 4 years ago

can you also test adding "export PATH=$PATH:/opt/xapian/" ?

grosjo commented 4 years ago

@alessice Shall I close the issue ?

grosjo commented 4 years ago

@alessice PLease re-open if you need more help

project0 commented 4 years ago

If someone else is facing the same issues (as i did): https://github.com/Project0/container-hub/blob/f3e55b04fb947f87bdcd963f986daee503fb60c8/images/dovecot/Dockerfile#L56-L72 btw. i was able to compile against icu 50

grosjo commented 4 years ago

@Project0 Can you clarify what needs to be updated or a PR if the case happen ?

project0 commented 4 years ago

basically the ICU version dependency needs to be lowered down from 60 to 50. I could not find a issue yet.