Rate This Document
Findability
Accuracy
Completeness
Readability

Missing Dynamic Link Library

Symptom

When running the command of verifying binary files, the following information is displayed:

cmake: error while loading shared libraries: libarchive.so.13: cannot open shared object file: No such file or directory

Possible Causes

The OS does not have the corresponding dynamic link library (DLL) file.

Solution

  1. Run the following command to go to the directory where the decompressed files are stored and check the shared libraries required for program running:
    cd /home/usr/bin
    ldd cmake

    The following information is displayed:

     linux-vdso.so.1 =>  (0x0000ffff9c180000)
            libdl.so.2 => /lib64/libdl.so.2 (0x0000ffff9c130000)
            libexpat.so.1 => /lib64/libexpat.so.1 (0x0000ffff9c0e0000)
            libz.so.1 => /lib64/libz.so.1 (0x0000ffff9c0a0000)
            libarchive.so.13 => not found
            libcurl.so.4 => /lib64/libcurl.so.4 (0x0000ffff9c010000)
            libstdc++.so.6 => /lib64/libstdc++.so.6 (0x0000ffff9bee0000)
            libm.so.6 => /lib64/libm.so.6 (0x0000ffff9be20000)
            libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000ffff9bde0000)
            libc.so.6 => /lib64/libc.so.6 (0x0000ffff9bc50000)
    ...

    It is verified that the libarchive.so.13 file is missing.

  2. Query the software package containing libarchive.so.13.
    yum provides */libarchive.so.13

    The following information is displayed:

    Loaded plugins: fastestmirror, priorities
    Loading mirror speeds from cached hostfile
     * base: ftp.yz.yamagata-u.ac.jp
     * extras: ftp.yz.yamagata-u.ac.jp
     * updates: ftp.yz.yamagata-u.ac.jp
    libarchive-3.1.2-14.el7_7.aarch64 : A library for handling streaming archive formats
    Repo        : base
    Matched from:
    Filename    : /usr/lib64/libarchive.so.13
  3. Install the queried software package.
    yum install -y libarchive-3.1.2-14.el7_7.aarch64