ade ade - 5 months ago 19
MySQL Question

Building a C project on Ubuntu linux has error 'mysql/mysql.h no such file'

I know it's a stupid question but I'm new to Ubuntu. The C files in the project build ok but then I get the error
mysql/mysql.h no such file or directory.
I've tried installing mysql server using apt-get but I still get the same error.
is there something else I should install to see the mysql files ?

Answer

You need to install the libmysqlclient-dev package.