V2EX  ›  英汉词典

Ldconfig

释义 Definition

ldconfig 是 Linux/Unix 系统中的一个命令,用于配置动态链接器(dynamic linker)运行时的共享库缓存:它会扫描指定目录(如 /lib/usr/lib 等)中的共享库,更新 /etc/ld.so.cache(以及相关符号链接),从而让程序在运行时更快、更正确地找到所需的 .so 库文件。
(在不同发行版中细节略有差异;它也常在安装/升级库之后被自动触发。)

发音 Pronunciation (IPA)

/ˌɛl diː ˈkɒn fɪɡ/

例句 Examples

I ran ldconfig after installing a new library.
我在安装了一个新库之后运行了 ldconfig

After upgrading OpenSSL, the admin executed ldconfig -v to rebuild the shared library cache and confirm the loader could locate the new .so files.
升级 OpenSSL 之后,管理员执行了 ldconfig -v 来重建共享库缓存,并确认加载器能够找到新的 .so 文件。

词源 Etymology

ldconfig 可拆解为 ld + config

  • ld 常指与“链接(linking)/链接器(linker)”相关(在 Unix 工具链中很常见)。
  • config 表示“配置”。
    合起来就是“用于配置(动态)链接相关环境/缓存的工具”。

相关词 Related Words

文学与作品 Literary Works

  • The Linux Programming Interface(Michael Kerrisk):在动态链接、共享库与运行时加载相关章节/讨论中常提到 ldconfig 与库缓存机制。
  • Linux From Scratch:构建工具链与系统库阶段经常涉及运行 ldconfig 来更新库缓存。
  • UNIX and Linux System Administration Handbook:在系统维护、软件安装与库管理相关内容中会出现 ldconfig
  • Linux man-pages:ldconfig(8) 手册页是最权威、最常见的引用来源。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1970 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 7ms · UTC 15:01 · PVG 23:01 · LAX 07:01 · JFK 10:01
♥ Do have faith in what you're doing.