How to install git on my web server with curl.h there is no such file error

I am trying to install Git on my web server. When I try to "make the installation", I get the following errors, which, it seems to me, do not go away.

[ 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â 

This is more if you need to see it, but although part of it will cover the problem

+4
source share
1 answer

It looks like you are missing a curl development package, maybe if you install the source that can be found here (or with the package manager of your distribution), it will work better.

For example, in the debian section, install libcurl4-gnutls-dev

+12
source

Source: https://habr.com/ru/post/1386720/


All Articles