Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Where is ldconfig

74 views
Skip to first unread message

Igor Korot

unread,
Jul 12, 2022, 10:00:06 PM7/12/22
to
Hi,
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
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.

Thank you.

David Wright

unread,
Jul 12, 2022, 10:10:05 PM7/12/22
to
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:
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.

Greg Wooledge

unread,
Jul 12, 2022, 10:10:05 PM7/12/22
to
On Tue, Jul 12, 2022 at 08:52:47PM -0500, Igor Korot wrote:
> 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#

It's in /sbin, and /sbin is not in your current PATH, presumably because
you used "su" to become root, on Debian 10 or later.

See <https://wiki.debian.org/NewInBuster#Changes> for fixes, workarounds,
or alternatives.
0 new messages