当前位置:网站首页>【Ubuntu】【Mysql】ubuntu安装了mysql 但是编译报错 mysql.h: No such file or directory
【Ubuntu】【Mysql】ubuntu安装了mysql 但是编译报错 mysql.h: No such file or directory
2022-06-29 03:26:00 【amRobinson】
在Ubuntu体系中,已经安装了mysql,即应用sudo apt-get install mysql-server mysql-client
但是用C编译mysql数据库时,报错
fatal error: mysql.h: No such file or directory
出现这个错误是因为体系没有安装mysql开发库
执行下面指令安装
sudo apt-get install libmysql+±dev
编译时须要加连接-lmysqlclient.
编译使用示例:
gcc -I/usr/include/mysql *.c -L/usr/lib/mysql -lmysqlclient -o *
边栏推荐
- Restore the binary search tree [simulate according to the meaning of the question - > find the problem - > analyze the problem - > see the bidding]
- seekbar 自定义图片上下左右显示不全 / bitmapToDrawable / bitmapToDrawable互转 / paddingStart/paddingEnd /thumbOffset
- 【线程通信】
- Open source demo| you draw and I guess -- make your life more interesting
- 問題——adb shellerror: insufficient permissions for device: verify udev rules.
- 2022-2028 global CAE engineering service industry research and trend analysis report
- priority_ Understanding of queue
- Etcd tutorial - Chapter 6 etcd core API V3
- Applet view creation
- 2022-2028 global low carbon concrete industry research and trend analysis report
猜你喜欢

2022-2028 global bubble CPAP system industry survey and trend analysis report
![Jerry's watch obtains alarm mode settings [chapter]](/img/43/987d864ec6038b10138ce50bcbdf12.jpg)
Jerry's watch obtains alarm mode settings [chapter]
![二叉树的锯齿形层序遍历[分层遍历方式之一 -> 前序遍历+level]](/img/f6/0df9f2a454cea0a95a5347546a90fb.png)
二叉树的锯齿形层序遍历[分层遍历方式之一 -> 前序遍历+level]

Ugui slider minimum control

Gartner“客户之声”最高分,用户体验成中国数据库一大突破口

19.03 容器的说明和简单应用例续

Gartner's "voice of customers" has the highest score, and the user experience has become a major breakthrough for China's database

VIM configuration and use

逆序对对数计算,顺序对对数计算——归并排序

Mobaihe box, ZTE box, Migu box, Huawei box, Huawei Yuehe box, Fiberhome box, Skyworth box, Tianyi box and other operators' box firmware collection and sharing
随机推荐
Démarrer le test - test d'intégration
2022-2028 global CAE engineering service industry research and trend analysis report
LeetCode 每日一题——324. 摆动排序 II
恢复二叉搜索树[根据题意模拟->发现问题->分析问题->见招拆招]
Which is the product with the highest interest rate of increased life insurance on the market at present?
FPGA(八)RTL代码之四(基本电路设计1)
Geth --- Error: authentication needed: password or unlock
What is the gold content of the equipment supervisor certificate? Is it worth it?
How to skip time when closing a socket connection_ Wait status of wait
Yyds dry inventory everything a primary developer should know about activity
Web APIs 高阶函数 丨黑马程序员
Pat class a a1057 stack
Access 500 error after modstart migrates the environment
二叉树的层序遍历 II[层序遍历方式之一 ->递归遍历 + level]
Connect error: no route to host (errno:113)
FPGA (VIII) RTL code IV (basic circuit design 1)
Bluebridge cup 2022 preliminaries - minesweeping
Logarithmic calculation in reverse order, logarithmic calculation in sequence -- merge sort
2022-2028 global pneumatic test probe industry survey and trend analysis report
Problem - ADB shellerror: insufficient permissions for device: verify udev rules