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> 回答1: Seems you did not install the curl . Use bellow command to install