Build with MySQL -> libmysqlclient not found
John Stoffel
john at stoffel.org
Sat Feb 26 18:07:12 UTC 2022
>>>>> "Dimitri" == Dimitri <dimitri_emich at protonmail.com> writes:
Dimitri> Hi folks,
Dimitri> just step into another problem and don't know why?
Dimitri> If i try to configure dovecot with the following:
Dimitri> ./configure --prefix=/test/core/dovecot
Dimitri> --with-ssldir=/test/core/dovecot/tls --with-mysql
Dimitri> i get
Dimitri> ...
Dimitri> checking for auth_userokay... no
Dimitri> checking for mysql_config... NO
Dimitri> checking for mysql_init in -lmysqlclient... no
Dimitri> configure: error: Can't build with MySQL support: libmysqlclient not found
Dimitri> After that i've tried to configure with following:
You probably need to tell
Dimitri> LDFLAGS="-L/test/core/mariadb/lib" ./configure --prefix=/test/core/dovecot --with-ssldir=/test
Dimitri> /core/dovecot/tls --with-mysql
Dimitri> but with same result.
Dimitri> The Content of "/test/core/mariadb/lib" is:
Dimitri> libmariadbclient.a
Dimitri> libmariadb.so -> libmariadb.so.3
Dimitri> libmariadb.so.3
Dimitri> libmysqlclient.a -> libmariadbclient.a
Dimitri> libmysqlclient_r.a -> libmariadbclient.a
Dimitri> libmysqlclient_r.so -> libmariadb.so.3
Dimitri> libmysqlclient.so -> libmariadb.so.3
Dimitri> libmysqlservices.a
Dimitri> pkgconfig
Dimitri> plugin
Dimitri> Also the Path "/test/core/mariadb/lib/pkgconfig" is in the
Dimitri> PKG_CONFIG_PATH variable and the Library-Path
Dimitri> "/test/core/mariadb/lib" is known by the dynamic linker
Dimitri> (/etc/ld.so.conf.d/ mylibs.conf).
Dimitri> So what am i doing wrong?
Dimitri> My Dovecot version: 2.3.18
Dimitri> My Mariadb version: 10.6.5
Dimitri> My OS: Ubuntu 20.04
Why aren't you just using the Ubuntu 20.04 packaged version instead?
Also, did you install the headers for libmysqlclient properly as
well?
What does /test/core/mariadb/includes/ or
/test/core/includes/... show?
John
More information about the dovecot
mailing list