Resolve compilation errors for missing sql header files
Bn@YL-RD:~/projects/bsdr$ make
Gmail +-Wall-g-std=c++11-I/usr/include/mysql-c-o producer.o producer.cpp
In file included from / usr/include/typelib.h:20:0
From / usr/include/mysql.h:118
From curl/../myholder.hpp:6
From curl/mycurlpl.hpp:13
From mybizpl.hpp:12
From producer.cpp:6:
/ usr/include/my_alloc.h:27:34: fatal error: mysql/psi/psi_memory.h: there is no such file or directory
Compilation terminated.
: recipe for target 'producer.o' failed
Make: * * [producer.o] Error 1
Bn@YL-RD:~/projects/libcurl/curl$ sudo apt install libmysqlclient-dev
Reading package list. Complete
Analyzing dependency tree of software package
Reading status information. Complete
The following [new] packages will be installed:
Libmysqlclient-dev
0 software packages have been upgraded, 1 new package has been installed, 0 software packages have to be uninstalled, and 0 software packages have not been upgraded.
1159 kB archives need to be downloaded.
Unzipped will consume 7070 kB of extra space.
Get: 1 http://mirrors.yun-idc.com/ubuntu xenial-updates/main amd64 libmysqlclient-dev amd64 5.7.17-0ubuntu0.16.04.1 [1159 kB]
Downloaded 1159 kB in 0 seconds (2660 kB/s)
Unselected package libmysqlclient-dev is being selected.
(reading the database. The system currently has 307424 files and directories installed.)
Preparing to unpack. / libmysqlclient-dev_5.7.17-0ubuntu0.16.04.1_amd64.deb.
Unpacking libmysqlclient-dev (5.7.17-0ubuntu0.16.04.1).
Processing trigger for man-db (2.7.5-1).
Setting libmysqlclient-dev (5.7.17-0ubuntu0.16.04.1).