1 .you should have mysql_config available in $PATH
For CentOS:
yum install mysql-devel
For openSUSE:
zypper install libmysqlclient-devel
For Debian-based systems/Ubuntu:
apt-get install libmysqlclient-dev
For CentOS:
yum install mysql-devel
For openSUSE:
zypper install libmysqlclient-devel
For Debian-based systems/Ubuntu:
apt-get install libmysqlclient-dev