Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trying to compile git but libcurl not found in linux

I wanna compile git with http/https supported. And I have

$ ls /usr/include/curl/
curlbuild.h  curl.h  curlrules.h  curlver.h  easy.h  mprintf.h  multi.h  stdcheaders.h  typecheck-gcc.h
$ ls /usr/lib/libcurl.*
/usr/lib/libcurl.a  /usr/lib/libcurl.la  /usr/lib/libcurl.so.3  /usr/lib/libcurl.so.3.0.0

But when I run with ./configure --with-curl, it still notice

checking for curl_global_init in -lcurl... no

How to fix that?

ps: My environment could not use yum install curl-devel, and I guess 'curl-devel' just offer the c header file and static lib?

like image 731
van Avatar asked Oct 29 '22 03:10

van


1 Answers

You should be able to install curl-devel, provided:

  • you are using the same version of curl than curl-devel
  • you are using the right name curl-devel (which you are apparently)

It will include /usr/lib64/libcurl.so

like image 50
VonC Avatar answered Nov 15 '22 07:11

VonC