当前位置:网站首页>[Ubuntu] [MySQL] Ubuntu installs mysql, but the compilation error is mysql h: No such file or directory
[Ubuntu] [MySQL] Ubuntu installs mysql, but the compilation error is mysql h: No such file or directory
2022-06-29 03:29:00 【amRobinson】
stay Ubuntu In the system , Already installed mysql, Application sudo apt-get install mysql-server mysql-client
But with C compile mysql Database time , Report errors
fatal error: mysql.h: No such file or directory
This error occurs because the system is not installed mysql Development Library
Execute the following instructions to install
sudo apt-get install libmysql+±dev
When compiling, you need to add a connection -lmysqlclient.
Compilation usage example :
gcc -I/usr/include/mysql *.c -L/usr/lib/mysql -lmysqlclient -o *
边栏推荐
- Zigzag sequence traversal of binary tree [one of layered traversal methods - > preorder traversal +level]
- Several ways to add breakpoints using GDB
- 【资料上新】基于3568开发板的NPU开发资料全面升级
- Yyds dry inventory difference between bazel and gradle tools
- 2022-2028 global low carbon concrete industry research and trend analysis report
- Unable to locate program input point [email protected]
- The continued movement of Jerry's watch [chapter]
- Set up nexus service
- Gartner's "voice of customers" has the highest score, and the user experience has become a major breakthrough for China's database
- LeetCode 每日一题——324. 摆动排序 II
猜你喜欢
![Jerry's monitoring alarm clock [chapter]](/img/b7/a5ca7a79af51bd79e4f5c1322b72ff.jpg)
Jerry's monitoring alarm clock [chapter]

Tortoise does not display a green Icon

How to understand MySQL indexes?

嵌入式开发如何进行源代码保密工作
![[test theory] quality analysis ability](/img/4b/d011e16c7b2be52fe12c123214779e.jpg)
[test theory] quality analysis ability
![Jerry's watch obtains alarm mode settings [chapter]](/img/43/987d864ec6038b10138ce50bcbdf12.jpg)
Jerry's watch obtains alarm mode settings [chapter]

Tu ne peux pas comprendre le feu?
![Synchronous movement state of Jerry's watch [chapter]](/img/58/a7e73aa32c15ccc7c506d521ca2917.jpg)
Synchronous movement state of Jerry's watch [chapter]

seekbar 自定义图片上下左右显示不全 / bitmapToDrawable / bitmapToDrawable互转 / paddingStart/paddingEnd /thumbOffset

Problème - Ajouter shellerror: permissions d'instrumentation pour le périphérique: vérifier les règles udev.
随机推荐
priority_ Understanding of queue
Restore the binary search tree [simulate according to the meaning of the question - > find the problem - > analyze the problem - > see the bidding]
Jerry's monitoring alarm clock [chapter]
2022/02/15
Is it safe for qiniu school to open an account in 2022?
Jerry's watch stops moving [chapter]
Same tree [from part to whole]
SSH无密码登陆
设备监理师证书含金量怎样?值得考吗?
2022-2028 global MWIR camera industry research and trend analysis report
PHP实现 mqtt通信
Delphi time to timestamp
【资料上新】基于3568开发板的NPU开发资料全面升级
87.(cesium篇)cesium热力图(贴地形)
Want to be an equipment manager? If you meet these three conditions, you can
Is the account opening of GF Securities really safe and reliable
[flutter topic] 66 diagram basic constraints box (I) yyds dry goods inventory
Is it safe to open a stock account by mobile phone? Is it difficult to open an account?
88.(cesium篇)cesium聚合图
如何理解MySQL的索引?