fatal error: mysql/mysql.h: No such file or directory
时间: 2023-12-31 11:06:31 浏览: 263
回答: 出现"fatal error: mysql/mysql.h: No such file or directory"错误是因为缺少mysql的相关链接库。解决这个问题的方法是在Ubuntu系统中执行以下命令: sudo apt-get install libmysqlclient-dev。这将安装所需的链接库,以便正确编译和连接mysql数据库。\[1\]\[2\]\[3\]
#### 引用[.reference_title]
- *1* [【问题解决】fatal error: mysql/mysql.h: No such file or directory](https://blog.csdn.net/p1279030826/article/details/115600302)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [CentOS 'mysql/mysql.h': No such file or directory](https://blog.csdn.net/weixin_33921444/article/details/113560079)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文