[odb-users] Cannot Compile ODB Compiler on RHEL 8.5

Boris Kolpackov boris at codesynthesis.com
Wed Jun 15 10:39:42 EDT 2022


Tyler Lytle <tlytle123 at gmail.com> writes:

> One last question: does ODB support MariaDB in any capacity? I know it is
> more-or-less a carbon copy of MySQL, but I presumed the libodb-mysql
> configure tools isn't flexible enough to determine if MariaDB is installed
> and to use its header files and libraries.

The 2.5.0 version of libodb-mysql supports both MySQL and MariaDB and
there is a configuration variable to select which client library to
use.

The magic incantation (which will hopefully make more sense once you
go through the setup steps) will look like this:

$ bpkg build config.libodb_mysql.client_lib=mariadb -- \
    libodb-mysql ?sys:libmysqlclient ?sys:libmariadb

Or, if you want to try to build libmariadb from source (we have
known-to-build packages for both MySQL and MariaDB), then:

$ bpkg build config.libodb_mysql.client_lib=mariadb -- \
    libodb-mysql libmariadb ?sys:libmysqlclient

(That ?sys:libmysqlclient is currently necessary because we don't yet
have conditional dependencies in the package manager so libodb-mysql
unconditionally depends on libmysqlclient even though at the build
system level one can select between different client libraries. But
that support is coming in the next version of build2).



More information about the odb-users mailing list