Build with MySQL -> libmysqlclient not found

John Stoffel john at stoffel.org
Sun Feb 27 22:50:18 UTC 2022


>>>>> "Oscar" == Oscar del Rio <delrio at mie.utoronto.ca> writes:

Oscar> On 2022-02-26 10:29 a.m., Dimitri wrote:
Oscar>     After that i've tried to configure with following:

Oscar>         LDFLAGS="-L/test/core/mariadb/lib" ./configure --prefix=/test/core/dovecot --with-ssldir=/
Oscar>         test/core/dovecot/tls --with-mysql

Oscar> You might need CPPFLAGS as
Oscar> well. (e.g. CPPFLAGS="-I/test/core/mariadb/include") Check also
Oscar> "config.log" for errors.

As Oscar says, looking at the config.log after your configure run is a
good step.  


./configure --help

might also be a good idea, I think it might have some options like:

 --mysql-libs=/path/to/lib
 --mysql-includes=/path/to/include

or something similiar to use.  And I can understand wanting to compile
from the source and having your own setup to work from, god knows I've
done it for enough years to compile various pieces of software over
the years.

I haven't checked the dovecot source myself for the actual flags, but
this should get you going.

John



More information about the dovecot mailing list