You are not logged in.

#1 2009-11-15 00:46:38

karmal
Member
Registered: 2009-11-15
Posts: 7

how to get libcurl

hello,

im a new Arch Linux user, and learning C language. i'm trying to incorporate libcurl library into my c program. is there a dev package (with headers and static lib .a) available? because i can't find either by pacman or search in repository. or do i just have to compile it myself? problem is what options should i compile with because im afraid if i do 'make' then 'make install' it might conflict another (future) program that using the lib.

thanks.

Offline

#2 2009-11-15 00:49:21

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: how to get libcurl

Welcome to the forums karmal.

Arch doesn't split things into dev packages, so all you need is curl to get libcurl.

Offline

#3 2009-11-15 00:57:17

karmal
Member
Registered: 2009-11-15
Posts: 7

Re: how to get libcurl

sorry, im totally still learning linux, by dev packages, do you mean if i compile curl to get libcurl it won't affect another program?

Offline

#4 2009-11-15 01:06:43

mikesd
Member
From: Australia
Registered: 2008-02-01
Posts: 788
Website

Re: how to get libcurl

If you have curl installed you should have both the dynamic and static libs installed. To check use:

$ pacman -Ql curl | grep /usr/lib/libcurl
curl /usr/lib/libcurl.a
curl /usr/lib/libcurl.so
curl /usr/lib/libcurl.so.4
curl /usr/lib/libcurl.so.4.1.1

Offline

#5 2009-11-15 01:07:54

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: how to get libcurl

karmal wrote:

sorry, im totally still learning linux, by dev packages, do you mean if i compile curl to get libcurl it won't affect another program?

You don't have to compile curl to get libcurl. All you have to do is:

pacman -S curl

This is a partial list of what's in the curl package:

pacman -Ql curl | grep libcurl
curl /usr/lib/libcurl.a
curl /usr/lib/libcurl.so
curl /usr/lib/libcurl.so.4
curl /usr/lib/libcurl.so.4.1.1
curl /usr/lib/pkgconfig/libcurl.pc
curl /usr/share/aclocal/libcurl.m4
curl /usr/share/man/man3/libcurl-easy.3.gz
curl /usr/share/man/man3/libcurl-errors.3.gz
curl /usr/share/man/man3/libcurl-multi.3.gz
curl /usr/share/man/man3/libcurl-share.3.gz
curl /usr/share/man/man3/libcurl-tutorial.3.gz
curl /usr/share/man/man3/libcurl.3.gz

--EDIT--

Damn! I got beaten again!

Offline

#6 2009-11-15 01:13:07

karmal
Member
Registered: 2009-11-15
Posts: 7

Re: how to get libcurl

okay, thank you very much.

Offline

#7 2009-11-15 01:16:01

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: how to get libcurl

It's Arch policy to try not to change packages from upstream. Since libcurl and curl are packed together, Arch does the same.

http://wiki.archlinux.org/index.php/Arch_vs_Others wrote:

Arch does not 'split' their packages into -dev and -common as Debian does.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

Board footer

Powered by FluxBB