sof-03
sof-03

Reputation: 2505

http.h:6:23: fatal error:curl/curl.h:there is no this file/directory

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

When I compile the git:

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

I get the bellow error:

  ...
  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>

Upvotes: 3

Views: 6693

Answers (1)

aircraft
aircraft

Reputation: 26896

Seems you did not install the curl.

Use bellow command to install curl

yum install curl-devel -y

then retry your compile.

Upvotes: 6

Related Questions