Build with MySQL -> libmysqlclient not found
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-mysql
i 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 found
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
but 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
"Dimitri" == Dimitri dimitri_emich@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 February 26, 2022 9:07:12 AM AKST, John Stoffel john@stoffel.org wrote:
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?
That's the beauty of free and open source software. We want to know how it's compiled and exactly what it depends on. And if we can't do it ourselves, then a lot of us amateurs feel like it's getting a little bit too closed-source and corporate for our purposes, or somehow more complicated than it needs to be. In which case we're looking for an alternative or a fork of the project with a legal license.
Also, did you install the headers for libmysqlclient properly as well?
What does /test/core/mariadb/includes/ or /test/core/includes/... show?
These are probably very good questions or problem-solving suggestions for "Dimitri."
-- Sent from my Android device with K-9 Mail. Please excuse my brevity.
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.
"Oscar" == Oscar del Rio delrio@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
participants (4)
-
Dimitri
-
John Stoffel
-
justina colmena ~biz
-
Oscar del Rio