http.h:6:23:致命错误:curl/curl.h:没有此文件/目录 [英] http.h:6:23: fatal error:curl/curl.h:there is no this file/directory

查看:80
本文介绍了http.h:6:23:致命错误:curl/curl.h:没有此文件/目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在CentOS-7中下载了git软件包:

I download the git package in my CentOS-7:

wget https://www.kernel.org/pub/software/scm/git/git-2.0.1.tar.gz
tar xzf git-2.0.1.tar.gz

当我编译git时:

cd git-2.0.1
make prefix=/usr/local/git all

出现以下错误:

  ...
  CC vcs-svn/svndump.o
  AR vcs-svn/lib.a
  LINK git-remote-testsvn
  CC http.o
  In file included from http.c:2:0:
  http.h:6:23: fatal error:curl/curl.h:No such file or directory
  #include <curl/curl.h>

推荐答案

似乎您没有安装 curl .

使用bellow命令安装curl

Use bellow command to install curl

yum install curl-devel -y

然后重试编译.

这篇关于http.h:6:23:致命错误:curl/curl.h:没有此文件/目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆