# [Outreachy]Introduction and Problem while installing Git

6 messages from 2023-10-12 to 2023-10-12. Participants: Dorcas Litunya, Benson Muite, Kristoffer Haugsbakk, Junio C Hamano.
Thread: https://gitlist.dev/t/60348

## Dorcas Litunya, 2023-10-12 06:57

Subject: [Outreachy]Introduction and Problem while installing Git
Message-ID: <ZSeYzdx07Cj67lR4@dorcaslitunya-virtual-machine>
URL: https://gitlist.dev/e/ZSeYzdx07Cj67lR4%40dorcaslitunya-virtual-machine

```
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, 2023-10-12 07:28

Subject: Re: [Outreachy]Introduction and Problem while installing Git
Message-ID: <4c5fef38-a671-dd6b-4b10-a531e1ae254a@emailplus.org>
URL: https://gitlist.dev/e/4c5fef38-a671-dd6b-4b10-a531e1ae254a%40emailplus.org
In-Reply-To: <ZSeYzdx07Cj67lR4@dorcaslitunya-virtual-machine>

```
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

```

## Kristoffer Haugsbakk, 2023-10-12 07:43

Subject: Re: [Outreachy]Introduction and Problem while installing Git
Message-ID: <724ff75e-1557-4d87-85a6-a3a58d41af1f@app.fastmail.com>
URL: https://gitlist.dev/e/724ff75e-1557-4d87-85a6-a3a58d41af1f%40app.fastmail.com
In-Reply-To: <4c5fef38-a671-dd6b-4b10-a531e1ae254a@emailplus.org>

```
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, 2023-10-12 07:52

Subject: Re: [Outreachy]Introduction and Problem while installing Git
Message-ID: <ZSeltAdIAm4miL3U@dorcaslitunya-virtual-machine>
URL: https://gitlist.dev/e/ZSeltAdIAm4miL3U%40dorcaslitunya-virtual-machine
In-Reply-To: <724ff75e-1557-4d87-85a6-a3a58d41af1f@app.fastmail.com>

```
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!
> Now I can drop `NO_CURL=true`.
> 
> Thanks :)
> 
> -- 
> Kristoffer Haugsbakk

```

## Junio C Hamano, 2023-10-12 16:20

Subject: Re: [Outreachy]Introduction and Problem while installing Git
Message-ID: <xmqqmswnhkxt.fsf@gitster.g>
URL: https://gitlist.dev/e/xmqqmswnhkxt.fsf%40gitster.g
In-Reply-To: <4c5fef38-a671-dd6b-4b10-a531e1ae254a@emailplus.org>

```
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?


```

## Dorcas Litunya, 2023-10-12 17:13

Subject: Re: [Outreachy]Introduction and Problem while installing Git
Message-ID: <ZSgpJgnaieu6kO0+@dorcaslitunya-virtual-machine>
URL: https://gitlist.dev/e/ZSgpJgnaieu6kO0%2B%40dorcaslitunya-virtual-machine
In-Reply-To: <xmqqmswnhkxt.fsf@gitster.g>

```
On Thu, Oct 12, 2023 at 09:20:14AM -0700, Junio C Hamano wrote:
> 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.
:-)
> 

```
