fatal error: mysql.h: No such file or directory

有可能是没有安装mysql链接库

可以用yum search mysql或者apt-cache search mysql搜索mysql相关安装文件

[root@zl myPrj]# yum list "*mysql*" | grep devel
libgda-mysql-devel.i686                       1:4.2.4-2.fc14            updates
mysql++-devel.i686                            3.1.0-2.fc14              fedora 
mysql-connector-c++-devel.i686                1.1.0-0.4.bzr895.fc14     updates
mysql-devel.i686                              5.1.60-1.fc14             updates
mysql-embedded-devel.i686                     5.1.60-1.fc14             updates

[root@zl myPrj]# yum -y install mysql++-devel.i686

你可能感兴趣的:(fatal error: mysql.h: No such file or directory)