perl5-dbi/DBD-mysql

Support building against MariaDB 10.11

Closed this issue · 1 comments

The official docker image for perl:5.38 includes MariaDB 10.11.4. DBD::mysql 4.050 builds just fine against this, but 5.x refuses to because the version reported by mysql_config is not "8.x"

$ docker run -it --entrypoint $SHELL --rm  perl:5.38
root@7bac8e1086db:/usr/src/app# mysql_config
Copyright 2011-2020 MariaDB Corporation AB
Get compiler flags for using the MariaDB Connector/C.
Usage: mysql_config [OPTIONS]
Compiler: GNU 12.2.0
  --cflags        [-I/usr/include/mariadb -I/usr/include/mariadb/mysql]
  --include       [-I/usr/include/mariadb -I/usr/include/mariadb/mysql]
  --libs          [-L/usr/lib/x86_64-linux-gnu/ -lmariadb]
  --libs_r        [-L/usr/lib/x86_64-linux-gnu/ -lmariadb]
  --libs_sys      [-lz -ldl -lm -lssl -lcrypto]
  --version       [10.11.4]
  --cc_version    [3.3.5]
  --socket        [/run/mysqld/mysqld.sock]
  --port          [3306]
  --plugindir     [/usr/lib/x86_64-linux-gnu/libmariadb3/plugin]
  --tlsinfo       [OpenSSL 3.0.9]
  --variable=VAR  VAR is one of:
      pkgincludedir  [/usr/include/mariadb]
      pkglibdir      [/usr/lib/x86_64-linux-gnu]
      pkgplugindir   [/usr/lib/x86_64-linux-gnu/libmariadb3/plugin]
  --libmysqld-libs  [-L/usr/lib/x86_64-linux-gnu/ -lmariadbd -lz -ldl -lm -lssl -lcrypto]


root@7bac8e1086db:/usr/src/app# cpanm DBD::mysql
--> Working on DBD::mysql
...
Configuring DBD-mysql-5.002 ... N/A
! Configure failed for DBD-mysql-5.002. See /root/.cpanm/work/1698695591.7/build.log for details.
4 distributions installed


root@7bac8e1086db:/usr/src/app# cat /root/.cpanm/work/1698695591.7/build.log
...
DBD::mysql requires MySQL 8.x for building. Version reported by mysql_config --version: 10.11.4 at Makefile.PL line 450, <PIPE> line 3.
-> N/A
-> FAIL Configure failed for DBD-mysql-5.002. See /root/.cpanm/work/1698695591.7/build.log for details.
Expiring 1 work directories.
4 distributions installed

The current version of DBD::mysql requires MySQL 8.x client libraries.

There are these options:

  • Use the MySQL APT or YUM repos to install MySQL 8.x
  • Install MySQL 8.x via a binary tarball
  • Use DBD::mysql 4.x for now

Please see #371 for more details.