mariadb-config command not found

In this troubleshooting guide we learn how to fix mariadb-config command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

mariadb-config: command not found

or when using sudo you get the following error message

sudo: mariadb-config: command not found

Solutions to mariadb-config: command not found

How To Fix mariadb-config: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu mariadb-config is provided by libmariadb-dev package.

libmariadb-dev is:

MariaDB is a fast, stable and true multi-user, multi-threaded SQL database server. SQL (Structured Query Language) is the most popular database query language in the world. The main goals of MariaDB are speed, robustness and ease of use.

This package includes development libraries and header files. To allow sources expecting the MariaDB Connector/C to build. Sources that expect the MySQL Client libraries should use files from the libmariadb-dev-compat package.

To fix this problem, we can install more using the command below.

sudo apt-get -y install libmariadb-dev

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install libmariadb-dev.

sudo apt -y install libmariadb-dev

Or if you have aptitude installed you can use the following command.

sudo aptitude install libmariadb-dev

Summary

In this tutorial we learn how to fix mariadb-config command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.