Linux Administration/Installation/Shared Libraries

From Wikiversity
Jump to navigation Jump to search

This lesson covers shared libraries.

Objectives and Skills[edit | edit source]

Objectives and skills for the shared libraries portion of Linux+ certification include:[1]

  • Manage shared libraries
    • Identify shared libraries
    • Identify the typical locations of system libraries
    • Load shared libraries
    • The following is a partial list of the used files, terms and utilities:
      • ldd
      • ldconfig
      • /etc/

Readings[edit | edit source]

  1. Wikipedia: Library (computing)
  2. Wikipedia: Static library
  3. Wikipedia: ldd (Unix)

Multimedia[edit | edit source]

Activities[edit | edit source]

  1. Complete the tutorial IBM: Learn Linux, 101: Manage shared libraries

Lesson Summary[edit | edit source]

  • LD_LIBRARY_PATH is used to temporarily substitute a different library for this particular execution and is handy for development and testing.[2]
  • ldconfig configures dynamic linker run-time bindings.[3]
  • ldconfig -p prints the lists of directories and candidate libraries stored in the current cache.[4]
  • ldconfig -n processes only the directories specified on the command line and don't rebuild the cache.[5]
  • ldconfig -V prints program version.[6]
  • ldd prints shared object dependencies.[7]
  • ldd prints shared object dependencies.[8]

Key Terms[edit | edit source]

See Also[edit | edit source]

References[edit | edit source]