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

Re: Where is ldconfig



On Tue 12 Jul 2022 at 20:52:47 (-0500), Igor Korot wrote:
> In order to test my program I ran "make install".
> 
> This installed it into "/usr/local/{bin,lib}
> 
> So now in order to run the program I need to update
> the ld library cache with "ldconfig".
> 
> Unfortunately it is not available by default and trying to
> search for it produces following:
> 
> [code]
> root@debian:/usr/local/lib#
> root@debian:/usr/local/lib# apt-file search ldconfig
> dist: /usr/share/dist/U/Oldconfig.U
> glibc-source: /usr/src/glibc/debian/patches/any/local-ldconfig-ignore-ld.so.diff
> glibc-source: /usr/src/glibc/debian/patches/any/local-ldconfig-multiarch.diff
> glibc-source: /usr/src/glibc/debian/patches/arm/unsubmitted-ldconfig-cache-abi.diff
> glibc-source: /usr/src/glibc/debian/patches/hurd-i386/local-enable-ldconfig.diff
> glibc-source: /usr/src/glibc/debian/patches/i386/unsubmitted-quiet-ldconfig.diff
> guix: /usr/share/guile/site/2.2/gnu/packages/patches/glibc-hidden-visibility-ldconfig.patch
> guix: /usr/share/guile/site/2.2/gnu/packages/patches/luajit-no_ldconfig.patch

Can I lead your eye to this line:

> libc-bin: /sbin/ldconfig

> lintian: /usr/share/lintian/data/shared-libs/ldconfig-dirs
> lintian: /usr/share/lintian/tags/l/lacks-ldconfig-trigger.tag
> lintian: /usr/share/lintian/tags/l/ldconfig-symlink-is-not-a-symlink.tag
> lintian: /usr/share/lintian/tags/l/ldconfig-symlink-referencing-wrong-file.tag
> lintian: /usr/share/lintian/tags/m/maintscript-calls-ldconfig.tag
> lintian: /usr/share/lintian/tags/p/package-has-unnecessary-activation-of-ldconfig-trigger.tag
> lintian: /usr/share/lintian/tags/u/udeb-postinst-calls-ldconfig.tag
> manpages: /usr/share/man/man8/ldconfig.8.gz
> manpages-es: /usr/share/man/es/man8/ldconfig.8.gz
> manpages-fr: /usr/share/man/fr/man8/ldconfig.8.gz
> manpages-hu: /usr/share/man/hu/man8/ldconfig.8.gz
> manpages-ja: /usr/share/man/ja/man8/ldconfig.8.gz
> manpages-pl: /usr/share/man/pl/man8/ldconfig.8.gz
> rear: /usr/share/rear/rescue/GNU/Linux/550_copy_ldconfig.sh
> rear: /usr/share/rear/skel/default/etc/scripts/system-setup.d/01-run-ldconfig.sh
> virtinst: /usr/share/virt-manager/virtinst/buildconfig.py
> w3m: /usr/share/doc/w3m/examples/Bonus/oldconfigure.sh
> zsh-common: /usr/share/zsh/functions/Completion/Unix/_ldconfig
> root@debian:/usr/local/lib#
> [/code]
> 
> Unrelated to this - should I run "apt-file update" every time
> I need to run a search?
> Because when I tried it I got a message saying I need to run it,
> because the database is empty.

No. apt-file uses the Contents files in /var/lib/apt/lists/,
but IIRC they are not downloaded by default, so you need to
run update at least once after installing apt-file.

After that, you'll be running update occasionally, as part of
system maintenance, so the Contents will stay up-to-date.

Cheers,
David.


Reply to: