[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why is ldconfig needed after installation

From: Russ Allbery
Subject: Re: why is ldconfig needed after installation
Date: Sun, 25 May 2014 18:07:45 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Peter Johansson <address@hidden> writes:

> I just installed a library with libtool (via automake generated rules)
> and when trying to use the lib I get this:

> error while loading shared libraries:

> which is going away if I issue

> sudo ldconfig /us/local/lib

> My question is why is that even needed, as I thought libtool already did
> that. No?

ldconfig has to be run because the dynamic linker maintains a cache of
available libraries that has to be updated.  libtool does this when run
with libtool --mode=finish on the installation directory.  I'm not sure if
it does this when it thinks the directory isn't listed in the system
library search path, though.

Russ Allbery (address@hidden)              <>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]