dustri.org Open in urlscan Pro
2a02:168:6160:1:4c43:d3ff:feee:90eb  Public Scan

URL: https://dustri.org/b/error-loading-shared-library-ld-linux-x86-64so2-on-alpine-linux.html
Submission: On October 31 via manual from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

ARTIFICIAL TRUTH


ARCHIVES | LATEST | HOMEPAGE | ATOM/RSS/TWITTER


A blog part of Hammon Robotics' portfolio.


ERROR LOADING SHARED LIBRARY LD-LINUX-X86-64.SO.2: ON ALPINE LINUX
SAT 04 APRIL 2020 — DOWNLOAD


Since I've encountered this issue so much, here is how to fix it:

$ ldd /opt/my_binary
    /lib64/ld-linux-x86-64.so.2 (0x7f65ef0f9000)
    libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7f65ef0f9000)
    libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7f65ef0f9000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7f65eefa4000)
    libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f65ef0f9000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x7f65eef90000)
    libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f65ef0f9000)
Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /opt/my_binary)
$ apk add libc6-compat
$ ln -s /lib/libc.musl-x86_64.so.1 /lib/ld-linux-x86-64.so.2
$ ldd /opt/my_binary
    /lib64/ld-linux-x86-64.so.2 (0x7f79d8d75000)
    libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7f79d8d75000)
    libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7f79d8d75000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7f79d8c20000)
    libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f79d8d75000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x7f79d8c0c000)
    libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f79d8d75000)
$


--------------------------------------------------------------------------------

2011-2022 - Julien (jvoisin) Voisin - CC BY-SA - archives - atom/rss/twitter - ♥