configure: error: “mysql headers missing.”

Written by Yujin Boby

Edit in WordPress

When compiling a software from source I get error

checking mysql/mysql.h usability... no
checking mysql/mysql.h presence... no
checking for mysql/mysql.h... no
configure: error: "mysql headers missing."

On Debian 10, fixed it by installing package default-libmysqlclient-dev

apt install -y default-libmysqlclient-dev

See Errors