question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error while loading shared libraries: libdl.so.2

See original GitHub issue

I have download today the binary, but when I try to run it, it crashes:

<> ./daedalus-4.6.0-mainnet-20052.bin
./nix/store/s74k20bgs8bm8267mifzxsmkgm2n94hb-nix-user-chroot-2c52b5f/bin/nix-user-chroot: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory

But it looks like I have the library installed:

<> locate libdl.so.2
/usr/lib/libdl.so.2
/usr/lib32/libdl.so.2
/var/lib/snapd/snap/core/11798/lib/i386-linux-gnu/libdl.so.2
/var/lib/snapd/snap/core/11798/lib/x86_64-linux-gnu/libdl.so.2
/var/lib/snapd/snap/core/11993/lib/i386-linux-gnu/libdl.so.2
/var/lib/snapd/snap/core/11993/lib/x86_64-linux-gnu/libdl.so.2

Maybe the installer is jailed in some kind and only uses its own libraries, so it doesn’t see the system ones?

<> inxi -Fxzc0
System:
  Kernel: 5.15.7-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
    Desktop: i3 4.20.1 Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: ASRock model: X570 Phantom Gaming X
    serial: <superuser required> UEFI: American Megatrends v: P4.40
    date: 06/23/2021
CPU:
  Info: 8-core model: AMD Ryzen 7 3800X bits: 64 type: MT MCP arch: Zen 2
    rev: 0 cache: L1: 512 KiB L2: 4 MiB L3: 32 MiB
  Speed (MHz): avg: 2322 high: 3972 min/max: 2200/4559 boost: enabled
    cores: 1: 3972 2: 2005 3: 2004 4: 2022 5: 2057 6: 2738 7: 2058 8: 2057
    9: 3770 10: 2021 11: 2033 12: 2059 13: 2001 14: 2241 15: 2056 16: 2058
    bogomips: 124843
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA TU102 [GeForce RTX 2080 Ti Rev. A] vendor: ASUSTeK
    driver: nvidia v: 495.44 bus-ID: 10:00.0
  Display: x11 server: X.Org 1.21.1.2 driver: loaded: nvidia resolution:
    1: 1920x1080~60Hz 2: 3840x2160~60Hz 3: 1920x1080~60Hz
  OpenGL: renderer: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2
    v: 4.6.0 NVIDIA 495.44 direct render: Yes
Audio:
  Device-1: NVIDIA TU102 High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel bus-ID: 10:00.1
  Device-2: AMD Starship/Matisse HD Audio vendor: ASRock
    driver: snd_hda_intel v: kernel bus-ID: 12:00.4
  Sound Server-1: ALSA v: k5.15.7-1-MANJARO running: yes
  Sound Server-2: sndio v: N/A running: no
  Sound Server-3: JACK v: 1.9.19 running: no
  Sound Server-4: PulseAudio v: 15.0 running: yes
  Sound Server-5: PipeWire v: 0.3.40 running: yes
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel bus-ID: 07:00.0
  IF: wlp7s0 state: down mac: <filter>
  Device-2: Intel I211 Gigabit Network vendor: ASRock driver: igb v: kernel
    port: e000 bus-ID: 09:00.0
  IF: enp9s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-3: Realtek RTL8125 2.5GbE vendor: ASRock driver: r8169 v: kernel
    port: d000 bus-ID: 0b:00.0
  IF: enp11s0 state: down mac: <filter>
  IF-ID-1: wg0 state: unknown speed: N/A duplex: N/A mac: N/A
Bluetooth:
  Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 3-2:2
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Drives:
  Local Storage: total: 2.5 TiB used: 1.92 TiB (76.8%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO Plus 250GB
    size: 232.89 GiB temp: 46.9 C
  ID-2: /dev/nvme1n1 vendor: Samsung model: SSD 970 EVO Plus 250GB
    size: 232.89 GiB temp: 49.9 C
  ID-3: /dev/nvme2n1 vendor: Samsung model: SSD 970 EVO Plus 250GB
    size: 232.89 GiB temp: 47.9 C
  ID-4: /dev/sda vendor: Western Digital model: WD20EZRZ-00Z5HB0
    size: 1.82 TiB
Partition:
  ID-1: / size: 219.27 GiB used: 182.91 GiB (83.4%) fs: ext4 dev: /dev/dm-0
    mapped: luks-78d47a35-fb47-4d0e-b017-a7f88b2644d1
  ID-2: /boot/efi size: 299.4 MiB used: 424 KiB (0.1%) fs: vfat
    dev: /dev/nvme2n1p1
Swap:
  ID-1: swap-1 type: partition size: 8.8 GiB used: 81.5 MiB (0.9%)
    dev: /dev/dm-1 mapped: luks-c9fb1ecf-ca30-4a76-86d9-d22e7a0f0ef3
Sensors:
  System Temperatures: cpu: 40.5 C mobo: 41.5 C gpu: nvidia temp: 45 C
  Fan Speeds (RPM): fan-1: 0 fan-2: 1062 fan-3: 0 fan-4: 775 fan-5: 764
    fan-6: 0 fan-7: 909 gpu: nvidia fan: 36%
Info:
  Processes: 9633 Uptime: 7h 46m Memory: 31.27 GiB used: 21.07 GiB (67.4%)
  Init: systemd Compilers: gcc: 11.1.0 clang: 13.0.0 Packages: 2870
  Shell: Zsh v: 5.8 inxi: 3.3.11

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:24 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
dmitrii-gaicocommented, Jul 20, 2022

@plamut @mnn Hello. I apologize for the delay. Please let me know if you are still experiencing any issue with running latest Daedalus build otherwise I would like to close the ticket. Thank you in advance!

1reaction
plamutcommented, Feb 18, 2022

Hello, I seem to have the same problem, but on Ubuntu. I wanted to upgrade my Daedalus wallet to the 4.8.0 version, but when running the installer, the following error occurred:

./nix/store/s74k20bgs8bm8267mifzxsmkgm2n94hb-nix-user-chroot-2c52b5f/bin/nix-user-chroot: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory

I, too, believe I have libdl.so.2 installed:

 $ locate libdl.so.2
/lib/i386-linux-gnu/libdl.so.2
/lib/x86_64-linux-gnu/libdl.so.2
/snap/core/12725/lib/i386-linux-gnu/libdl.so.2
/snap/core/12725/lib/x86_64-linux-gnu/libdl.so.2
/snap/core18/2253/lib/i386-linux-gnu/libdl.so.2
/snap/core18/2253/lib/x86_64-linux-gnu/libdl.so.2
/snap/core18/2284/lib/i386-linux-gnu/libdl.so.2
/snap/core18/2284/lib/x86_64-linux-gnu/libdl.so.2
/snap/core20/1270/usr/lib/i386-linux-gnu/libdl.so.2
/snap/core20/1270/usr/lib/x86_64-linux-gnu/libdl.so.2
/snap/core20/1328/usr/lib/i386-linux-gnu/libdl.so.2
/snap/core20/1328/usr/lib/x86_64-linux-gnu/libdl.so.2

System info:

$ uname -mra
Linux black-box 4.15.0-153-generic #160-Ubuntu SMP Thu Jul 29 06:54:29 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/issue
Ubuntu 18.04.5 LTS \n \l

I also tried removing the existing Daedalus installation and re-installing the “missing” library, but no luck. Also tried the flight version of the wallet (4.9.0-FC1), but no luck.

Is there something else that I can try?

Also, if I can help with any additional info, please let me know. Thanks for your help in advance! (and, of course, all the work so far)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error while loading shared libraries: libdl.so.2 (and others), no ...
I feel lucky in stumbling across this solution, but wanted to post it up in case anyone else runs across this issue in...
Read more >
CentOS 7 LAMPP cannot open shared object file - ryan.chen
/bin/sh: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory /opt/lampp/bin/gettext: error while ...
Read more >
error while loading shared libraries: libdl.so.2: cannot open ...
I got the error when I run the Identity server ". ... error while loading shared libraries: libdl.so.2: cannot open shared object.
Read more >
/bin/sh: error while loading shared libraries: libdl.so.2: cannot ...
Today I have faced some library file issue while bringing up the OAM components. Environment Details. We have installed the base version of ......
Read more >
cannot open shared object file: No such file or directory
Your library is a dynamic library. You need to tell the operating system where it can locate it at runtime. To do so,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found