Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to locate MySQL header files to compile qt

Tags:

c++

mysql

qt

From the qt documentation:

You need the MySQL header files and as well as the shared library libmysqlclient.so. Depending on your Linux distribution you may need to install a package which is usually called "mysql-devel". [emphasis added]

How do I get these? I tried apt-get install mysql-devel but apt-get told me it was Unable to locate package mysql-devel. Thanks in advance.

like image 576
Ted Avatar asked Oct 10 '11 01:10

Ted


1 Answers

Try using package: libmysqlclient-dev.

You can use apt-cache search ... to find packages.

like image 134
imm Avatar answered Oct 04 '22 12:10

imm