ubuntu g++:missing MySQL library

b4lqfgs4  于 5个月前  发布在  Mysql
关注(0)|答案(1)|浏览(78)

我正在尝试安装Ubuntu 22.0的MySQL C++插件。我尝试使用以下bash命令:

apt-get install libmysqlcppconn-dev

字符串
这些命令在我以前的Ubuntu操作系统中工作,但是在我当前的操作系统中使用g++编译时,我得到了以下错误:

fatal error: mysql/mysql.h: No such file or directory
   29 | #include <mysql/mysql.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.

相关问题