리눅스 ldconfig

1 개요[ | ]

ldconfig
/sbin/ldconfig
  • 동적 링커 런타임 바인딩을 설정하는 리눅스 명령어
Console
Copy
$ which ldconfig
/sbin/ldconfig
/sbin/ldconfig
Bash
Copy
#!/bin/sh

if  test $# = 0                                                 \
    && test x"$LDCONFIG_NOTRIGGER" = x                          \
 && test x"$DPKG_MAINTSCRIPT_PACKAGE" != x                      \
 && dpkg-trigger --check-supported 2>/dev/null
then
        if dpkg-trigger --no-await ldconfig; then
                if test x"$LDCONFIG_TRIGGER_DEBUG" != x; then
                        echo "ldconfig: wrapper deferring update (trigger activated)"
                fi
                exit 0
        fi
fi

exec /sbin/ldconfig.real "$@"
Console
Copy
$ ldconfig -V
ldconfig (Ubuntu GLIBC 2.23-0ubuntu10) 2.23
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There isNO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Andreas Jaeger.
Console
Copy
$ ldconfig -p
326 libs found in cache `/etc/ld.so.cache'
        libz.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libz.so.1
        libxtables.so.11 (libc6,x86-64) => /lib/x86_64-linux-gnu/libxtables.so.11
        libxshmfence.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libxshmfence.so.1
        libxml2.so.2 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libxml2.so.2
        libxcb.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libxcb.so.1
        libxcb.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libxcb.so
        libxcb-sync.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1
        libxcb-shm.so.0 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libxcb-shm.so.0
        libxcb-render.so.0 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libxcb-render.so.0
... (생략)
        libLLVM-6.0.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libLLVM-6.0.so.1
        libLLVM-6.0.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libLLVM-6.0.so
        libICE.so.6 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libICE.so.6
        libICE.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libICE.so
        libGeoIP.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libGeoIP.so.1
        libGL.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
        libFLAC.so.8 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libFLAC.so.8
        libBrokenLocale.so.1 (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib/x86_64-linux-gnu/libBrokenLocale.so.1
        libBrokenLocale.so (libc6,x86-64, OS ABI: Linux 2.6.32) => /usr/lib/x86_64-linux-gnu/libBrokenLocale.so
        ld-linux-x86-64.so.2 (libc6,x86-64) => /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2

2 같이 보기[ | ]

3 참고[ | ]