git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [GSOC] fatal error: curl/curl.h: No such file or directory

From
SZEDER Gábor <szeder.dev@gmail.com>
Date
Feb 20, 2021, 19:07 UTC
Message-ID
<20210220190728.GA3590451@szeder.dev>
In-Reply-To
<CAB=huCZLwkBv-Fd4iUqbDwNuNfeFBfjPfKRzYUGShc727KJJzg@mail.gmail.com>
On Sat, Feb 20, 2021 at 07:27:32PM +0530, Divyansh Garg wrote:
Show 27 quoted lines
> Hello,
> I am trying to build the source code on my system (Ubuntu 20.04).
> After cloning the repo, when I proceed with the command: make, I get
> the following error.
> I tried installing curl and searched the internet but couldn't get a fix.
> Please advise, how can I solve this problem.
> 
> divyansh:~/gsoc/git$ make
> make: curl-config: Command not found
>     * new prefix flags
>     CC attr.o
>     CC config.o
>     CC exec-cmd.o
>     CC gettext.o
>     AR libgit.a
>     LINK git-daemon
>     LINK git-http-backend
>     LINK git-imap-send
>     LINK git-sh-i18n--envsubst
>     LINK git-shell
>     CC http.o
> In file included from http.c:2:
> http.h:6:10: fatal error: curl/curl.h: No such file or directory
>     6 | #include <curl/curl.h>
>       |          ^~~~~~~~~~~~~
> compilation terminated.
> make: *** [Makefile:2422: http.o] Error 1

As Torsten said you have to install not only a couple of libraries but also the related '-dev' package containing includes and static libraries.

In our CI jobs using Ubuntu we install the following packages by default (see 'ci/install-dependencies.sh'):

UBUNTU_COMMON_PKGS="make libssl-dev libcurl4-openssl-dev libexpat-dev
 tcl tk gettext zlib1g-dev perl-modules liberror-perl libauthen-sasl-perl
 libemail-valid-perl libio-socket-ssl-perl libnet-smtp-ssl-perl"
Previous: Torsten Bögershausen
Message 3 of 3 in “[GSOC] fatal error: curl/curl.h: No such file or directory”
  1. Divyansh GargFeb 20, 2021
  2. Torsten BögershausenFeb 20, 2021
  3. SZEDER GáborFeb 20, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.