ade ade - 2 years ago 137
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 Source

You need to install the libmysqlclient-dev package.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download