cURL / Mailing Lists / curl-library / Single Mail


Re: Make/Install on BSD

From: Igor Korot <>
Date: Tue, 19 Nov 2013 01:10:56 -0800


On Tue, Nov 19, 2013 at 12:55 AM, Daniel Stenberg <> wrote:
> On Mon, 18 Nov 2013, Igor Korot wrote:
>> As in Windows, *nix systems also have $PATH environment variable and do
>> follow the "standard" way of looking for the dynamically linked libraries.
>> The way to see it in *nix is:
>> set | grep PATH
>> which will display the value of $PATH environment variables.
> Yes, but $PATH is not used to find dynamically linked libraries on *nix
> systems. Instead, you should try "man" and read up how the dynamic
> linker works and how it finds shared libraries.
> Most *nix systems support LD_LIBRARY_PATH to specify a list of directories
> to scan, but for example Linux discourage the use of that and instead favors
> /etc/ (see "man ldconfig").
> Now you say "BSD" which is a family of OSes rather than a specific one so I
> don't know exactly how your system works, but I'm not mistaking I believe
> FreeBSD features and uses ldconfig.
> All this said, all BSD systems I know of provide curl and libcurl packages
> already so you should be able to instll them and get the libraries installed
> in the system default places and then everything should work fine with just
> ld -L and no -l needed.

Thank you for correcting me. I've been working too much with Windows lately. ;-)
However, you are missing a point that (s)he cannot install anything as
(s) he is not administrator.

What he can probably do is to ask admin to upgrade libcurl or
recompile the library using "--prefix"
configure option. But if the latter, (s) he could still end up using
system libraries.

Thank you.

> --
> /
> -------------------------------------------------------------------
> List admin:
> Etiquette:
List admin:
Received on 2013-11-19