threads / discuss / 60348

[Outreachy]Introduction and Problem while installing Git

Subject: [Outreachy]Introduction and Problem while installing Git

## tl;dr

6 messages between Oct 12, 2023 and Oct 12, 2023.

replies: 5people: 4as markdown or json

Dorcas Litunya· Oct 12, 2023, 06:57 UTC · lore
Hello everyone,
My name is Dorcas Litunya. I am excited to contribute to the git
community, I am a first time contributor through the Outreachy program.
I am excited to learn and grow through this project. I am currently
installing Git and I have been faced with this error once I run the make
command:
In file included from http.c:2:
git-curl-compat.h:3:10: fatal error: curl/curl.h: No such file or directory
    3 | #include <curl/curl.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:2718: http.o] Error 1

Any assistance on what the possible problem could be will be highly appreciated.

Kind regards, Dorcas

Benson Muite· Oct 12, 2023, 07:28 UTC · re: Dorcas Litunya · lore

Re: [Outreachy]Introduction and Problem while installing Git

On 10/12/23 09:57, Dorcas Litunya wrote:
Show 10 quoted lines
> Hello everyone,
> My name is Dorcas Litunya. I am excited to contribute to the git
> community, I am a first time contributor through the Outreachy program.
> I am excited to learn and grow through this project. I am currently
> installing Git and I have been faced with this error once I run the make
> command:
> In file included from http.c:2:
> git-curl-compat.h:3:10: fatal error: curl/curl.h: No such file or directory
>     3 | #include <curl/curl.h>
>       |          ^~~~~~~~~~~~~

You will need to have curl libraries and development headers. https://curl.se/libcurl/ You maybe able to get these from a package manager, for example on Ubuntu sudo apt-get install curl-dev Fedora sudo dnf install libcurl-devel

Kristoffer Haugsbakk· Oct 12, 2023, 07:43 UTC · re: Benson Muite · lore

Re: [Outreachy]Introduction and Problem while installing Git

On Thu, Oct 12, 2023, at 09:28, Benson Muite wrote:
> You maybe able to get these from a package manager, for example on Ubuntu
> sudo apt-get install curl-dev

This didn't work for me on Ubuntu 22.04. I tried the OpenSSL variant which worked.

    sudo apt-get install libcurl4-openssl-dev
Now I can drop `NO_CURL=true`.
Thanks :)
-- 
Kristoffer Haugsbakk
Dorcas Litunya· Oct 12, 2023, 07:52 UTC · re: Kristoffer Haugsbakk · lore

Re: [Outreachy]Introduction and Problem while installing Git

On Thu, Oct 12, 2023 at 09:43:55AM +0200, Kristoffer Haugsbakk wrote:
> On Thu, Oct 12, 2023, at 09:28, Benson Muite wrote:
> > You maybe able to get these from a package manager, for example on Ubuntu
> > sudo apt-get install curl-dev
> 
> This didn't work for me on Ubuntu 22.04. I tried the OpenSSL variant which
> worked.
>
Me too
>     sudo apt-get install libcurl4-openssl-dev
> 

This package has worked for me on Ubuntu 22.04 Thanks for the help!

Show 6 quoted lines
> Now I can drop `NO_CURL=true`.
> 
> Thanks :)
> 
> -- 
> Kristoffer Haugsbakk
Junio C Hamano· Oct 12, 2023, 16:20 UTC · re: Benson Muite · lore

Re: [Outreachy]Introduction and Problem while installing Git

Benson Muite <benson_muite@emailplus.org> writes:
Show 17 quoted lines
> On 10/12/23 09:57, Dorcas Litunya wrote:
>> Hello everyone,
>> My name is Dorcas Litunya. I am excited to contribute to the git
>> community, I am a first time contributor through the Outreachy program.
>> I am excited to learn and grow through this project. I am currently
>> installing Git and I have been faced with this error once I run the make
>> command:
>> In file included from http.c:2:
>> git-curl-compat.h:3:10: fatal error: curl/curl.h: No such file or directory
>>     3 | #include <curl/curl.h>
>>       |          ^~~~~~~~~~~~~
> You will need to have curl libraries and development headers.
> https://curl.se/libcurl/
> You maybe able to get these from a package manager, for example on Ubuntu
> sudo apt-get install curl-dev
> Fedora
> sudo dnf install libcurl-devel

Thanks for helping. Perhaps reading the INSTALL file at the top of the working tree would worth the time?

Dorcas Litunya· Oct 12, 2023, 17:13 UTC · re: Junio C Hamano · lore

Re: [Outreachy]Introduction and Problem while installing Git

On Thu, Oct 12, 2023 at 09:20:14AM -0700, Junio C Hamano wrote:
Show 22 quoted lines
> Benson Muite <benson_muite@emailplus.org> writes:
> 
> > On 10/12/23 09:57, Dorcas Litunya wrote:
> >> Hello everyone,
> >> My name is Dorcas Litunya. I am excited to contribute to the git
> >> community, I am a first time contributor through the Outreachy program.
> >> I am excited to learn and grow through this project. I am currently
> >> installing Git and I have been faced with this error once I run the make
> >> command:
> >> In file included from http.c:2:
> >> git-curl-compat.h:3:10: fatal error: curl/curl.h: No such file or directory
> >>     3 | #include <curl/curl.h>
> >>       |          ^~~~~~~~~~~~~
> > You will need to have curl libraries and development headers.
> > https://curl.se/libcurl/
> > You maybe able to get these from a package manager, for example on Ubuntu
> > sudo apt-get install curl-dev
> > Fedora
> > sudo dnf install libcurl-devel
> 
> Thanks for helping.  Perhaps reading the INSTALL file at the top of
> the working tree would worth the time?

Thanks Junio. I did follow it eventually. I got stuck here since the instructions to install some libraries was at the towards the middle and end of the INSTALL file while the instruction to run the make command was at the top of the file, and it seemed a bit easy as the file had just said "it should work normally"(without pointing out the libraries needed) was what kinda got me lost, but I eventually found my solutions as I read through the doc. But yes,I will now try to read and search entire docs as all the good stuff might be at the bottom. :-)

> 

← back to recent threads