如何使用curl.h在我的网络服务器上安装git没有这样的文件错误

Ben*_*Ben 5 linux git ssh curl

我一直在尝试在我的网络服务器上安装Git.当我尝试"make install"时,我得到以下错误,我似乎无法通过.

[root@site git-core-0.99.6]# make install
gcc -o http-pull.o -c -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' http-pull.c 
http-pull.c:6:23: error: curl/curl.h: No such file or directory
http-pull.c:7:23: error: curl/easy.h: No such file or directory
http-pull.c:16: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token 
http-pull.c: In function âfetch_indexâ:
http-pull.c:102: warning: implicit declaration of function âcurl_easy_setoptâ
Run Code Online (Sandbox Code Playgroud)

如果你需要看到它,还有更多的东西,但它的一部分将涵盖这个问题

Céd*_*ien 13

看起来你错过了curl开发包,也许如果你在这里安装了源代码(或者你的发行版的包管理器),它会更好用.

例如,在debian下,安装 libcurl4-gnutls-dev