Error compiling Exim for @Mail
Question: When installing @Mail the Exim SMTP server fails compiling with the error message:
mysql.c:33:49: error: mysql.h: No such file or directory mysql.c:41: error: syntax error before 'MYSQL' mysql.c:41: warning: no semicolon at end of struct or union mysql.c:42: warning: data definition has no type or storage class mysql.c:44: error: syntax error before '*' token mysql.c:44: warning: data definition has no type or storage class mysql.c: In function 'mysql_tidy': mysql.c:71: error: 'cn' undeclared (first use in this function) mysql.c:71: error: (Each undeclared identifier is reported only once mysql.c:71: error: for each function it appears in.) mysql.c: In function 'perform_mysql_search': mysql.c:108: error: 'MYSQL' undeclared (first use in this function) mysql.c:108: error: 'mysql_handle' undeclared (first use in this function) mysql.c:109: error: 'MYSQL_RES' undeclared (first use in this function) mysql.c:109: error: 'mysql_result' undeclared (first use in this function) mysql.c:110: error: 'MYSQL_ROW' undeclared (first use in this function) mysql.c:110: error: syntax error before 'mysql_row_data' mysql.c:111: error: 'MYSQL_FIELD' undeclared (first use in this function) mysql.c:111: error: 'fields' undeclared (first use in this function) mysql.c:119: error: 'cn' undeclared (first use in this function) mysql.c:205: warning: comparison between pointer and integer mysql.c:273: error: 'mysql_row_data' undeclared (first use in this function)
What is the solution to the compile error?
Answer: The mysql-devel package is missing from your system ( the libmysqlclient library and mysql header files )
As a solution:
1: Download the mysql-devel package from the mysql.com website, and install for your system
2: Or install the mysql-devel/libmysqlclient package for your Linux distro.

