Hi folks, just step into another problem and don't know why? If i try to configure dovecot with the following:> ./configure --prefix=/test/core/dovecot --with-ssldir=/test/core/dovecot/tls --with-mysqli get> ... > checking for auth_userokay... no > checking for mysql_config... NO > checking for mysql_init in -lmysqlclient... noconfigure: error: Can't build with MySQL support: libmysqlclient not foundAfter that i've tried to configure with following:> LDFLAGS="-L/test/core/mariadb/lib" ./configure --prefix=/test/core/dovecot --with-ssldir=/test/core/dovecot/tls --with-mysqlbut with same result. The Content of "/test/core/mariadb/lib" is: libmariadbclient.a libmariadb.so -> libmariadb.so.3 libmariadb.so.3 libmysqlclient.a -> libmariadbclient.a libmysqlclient_r.a -> libmariadbclient.a libmysqlclient_r.so -> libmariadb.so.3 libmysqlclient.so -> libmariadb.so.3 libmysqlservices.a pkgconfigplugin Also the Path "/test/core/mariadb/lib/pkgconfig" is in the PKG_CONFIG_PATH variable and the Library-Path "/test/core/mariadb/lib" is known by the dynamic linker (/etc/ld.so.conf.d/mylibs.conf). So what am i doing wrong? My Dovecot version: 2.3.18 My Mariadb version: 10.6.5 My OS: Ubuntu 20.04 -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20220226/5ad2fa90/attachment.htm>
>>>>> "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
On 2022-02-26 10:29 a.m., Dimitri wrote:> After that i've tried to configure with following: > > /LDFLAGS="-L/test/core/mariadb/lib" ./configure > --prefix=/test/core/dovecot --with-ssldir=/test/core/dovecot/tls > --with-mysql/ > >You might need CPPFLAGS as well. (e.g. CPPFLAGS="-I/test/core/mariadb/include") Check also "config.log" for errors. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20220227/55fd6439/attachment.htm>