0
点赞
收藏
分享

微信扫一扫

编译c程序报没有一些头文件

Soy丶sauce 2022-01-20 阅读 24

编译单位c程序

1.mysql/mysql.h’: No such file or directory

yum install mysql-devel

2. fatal error: sqlite3.h: No such file or directory

 yum install sqlite-devel

3.fatal error: event.h: No such file or directory

yum list | grep libev#查一下啊
yum install libevent-devel 

4.curl/curl.h: No such file or directory

yum install libcurl-dev libcurl-devel

5.fatal error: curses.h: No such file or directory

yum install ncurses-devel ncurses

安装redis

yum install epel-release  -y 
yum install jemalloc -y
rpm -ivh redis-3.2.12-2.el7.x86_64.rpm             
systemctl start redis 
systemctl enable redis 
举报

相关推荐

0 条评论