Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I install git on my webserver with a curl.h no such file error

Tags:

git

linux

curl

ssh

I have been trying to install Git on my web server. When i try "make install" i get the following errors which I cant seem to get past.

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

There is alot more of that if you need to see it, but though part of it would cover the issue

like image 500
Ben Avatar asked Dec 16 '11 15:12

Ben


1 Answers

It looks like you're missing the curl development package, maybe if you install the source available here (or with the package manager of your distribution), it will work better.

For example, under debian, install libcurl4-gnutls-dev

like image 70
Cédric Julien Avatar answered Sep 24 '22 14:09

Cédric Julien