MariaDB Connector/C is available from the same package repository as MariaDB Community Server.
$ wget https://r.mariadb.com/downloads/mariadb_repo_setup
$ echo "367a80b01083c34899958cdd62525104a3de6069161d309039e84048d89ee98b mariadb_repo_setup" \
| sha256sum -c -
$ chmod +x mariadb_repo_setup
Configure the CS package repository using the mariadb_repo_setup utility:
$ sudo ./mariadb_repo_setup \
--mariadb-server-version="mariadb-10.6"
All major releases of CS contain the same version of MariaDB Connector/C.
To install MariaDB Connector/C on Debian and Ubuntu, you can use APT if you have the ES Package Repository or CS Package Repository configured.
Install MariaDB Connector/C and package dependencies:
$ sudo apt install libmariadb3 libmariadb-dev