"리눅스 ldconfig"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
(다른 사용자 한 명의 중간 판 2개는 보이지 않습니다)
4번째 줄: 4번째 줄:
* 동적 링커 런타임 바인딩을 설정하는 리눅스 명령어
* 동적 링커 런타임 바인딩을 설정하는 리눅스 명령어


<source lang='console'>
<syntaxhighlight lang='console'>
$ which ldconfig
$ which ldconfig
/sbin/ldconfig
/sbin/ldconfig
</source>
</syntaxhighlight>
<source lang='console'>
{{소스헤더|/sbin/ldconfig}}
$ cat /sbin/ldconfig
<syntaxhighlight lang='bash'>
#!/bin/sh
#!/bin/sh


26번째 줄: 26번째 줄:


exec /sbin/ldconfig.real "$@"
exec /sbin/ldconfig.real "$@"
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
$ ldconfig -V
$ ldconfig -V
ldconfig (Ubuntu GLIBC 2.23-0ubuntu10) 2.23
ldconfig (Ubuntu GLIBC 2.23-0ubuntu10) 2.23
34번째 줄: 34번째 줄:
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Andreas Jaeger.
Written by Andreas Jaeger.
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
$ ldconfig -p
$ ldconfig -p
326 libs found in cache `/etc/ld.so.cache'
326 libs found in cache `/etc/ld.so.cache'
58번째 줄: 58번째 줄:
         libBrokenLocale.so (libc6,x86-64, OS ABI: Linux 2.6.32) => /usr/lib/x86_64-linux-gnu/libBrokenLocale.so
         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
         ld-linux-x86-64.so.2 (libc6,x86-64) => /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==
* [[동적 링커]]
* [[동적 링커]]
* [[/etc/ld.so.conf]]
* [[/etc/ld.so.conf]]
* [[/etc/ld.so.cache]]


==참고==
==참고==

2021년 7월 18일 (일) 06:33 기준 최신판

1 개요[ | ]

ldconfig
/sbin/ldconfig
  • 동적 링커 런타임 바인딩을 설정하는 리눅스 명령어
$ which ldconfig
/sbin/ldconfig
/sbin/ldconfig
#!/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 "$@"
$ 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.
$ 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 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}