编译文件时找不到mysql库,使用以下命令查看是否安装mysql库 dpkg -l | grep libmysqlclient-dev 安装: sudo apt-get install libmysqlclient-dev 安装完成可以正常编译