van
van

Reputation: 221

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?

Upvotes: 5

Views: 1887

Answers (1)

VonC
VonC

Reputation: 1324757

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

It will include /usr/lib64/libcurl.so

Upvotes: 2

Related Questions