You can simply create a symbolic link like so:

$ whereis libdl.so.2
libdl.so.2: /usr/lib/libdl.so.2 /usr/lib32/libdl.so.2
$ sudo ln -s /usr/lib/libdl.so.2 /usr/lib/libdl.so
$ sudo ln -s /usr/lib32/libdl.so.2 /usr/lib32/libdl.so

In my case that's enough for MonoGame.

Answer from mukhinid on Stack Exchange
🌐
Ask Ubuntu
askubuntu.com › questions › 987740 › how-to-install-dl
16.04 - How to install dl - Ask Ubuntu
December 19, 2017 - $ sudo aptitude install libc6-dev ... will be installed, upgraded, or removed. ... # Options for development COMPILER = g++ #CFLAGS = -c -Wall -ansi CFLAGS = -fPIC -c # Options for release #CFLAGS = -c -Wall -O client: $(COMPILER) $(CFLAGS) ...
Discussions

linux - How to address crash due to missing libdl.so on Ubuntu 22? - Stack Overflow
The dev glibc package is a transitive dependency of gcc. It's very common for gcc to be installed on Linux machines (developer machines and end-user machines alike), so it's very common for libdl.so to be accidentally available. More on stackoverflow.com
🌐 stackoverflow.com
How to install libdl.so.2 package on solaris 10
Dear Everyone, Greetings! I am trying to install libdl.so.2 packages, however, I couldn't get the exact one so could you help me to get the one mentioned before? I thought the package seemed for the Linux OS package what is for Solaris one? I really appreciate any help you can provide. Regards. More on community.unix.com
🌐 community.unix.com
0
0
July 13, 2023
Missing libdl.so and other basic libraries
While using the new .net 8.0 i got this super weird error, on monday, everything worked fine, last build was on 00:15 gmt +1 (or 2 no idea actually like gets summertime accounted or not?) Well what... More on github.com
🌐 github.com
7
1
asp.net - How to install libdl.so on linux contianers? - Stack Overflow
I am using Visual Studio .net Core with Linux Docker Contianers. I am attempting to use dlopen, which is part of the libdl.so library. I get: DllNotFoundException . Unable to load shared library... More on stackoverflow.com
🌐 stackoverflow.com
August 1, 2018
🌐
GitHub
github.com › GaloisInc › libdl
GitHub - GaloisInc/libdl · GitHub
Instructions on how to download ... or $> make shared or just $> make To install in the default path (/usr/local/lib): #> make install To customize the install path change DESTPREFIX and DESTDIR in the Makefile....
Starred by 5 users
Forked by 4 users
Languages   C
🌐
Pkgs.org
pkgs.org › download › libdl.so.2
Libdl.so.2 Download for Linux (rpm xbps)
Download libdl.so.2 linux packages for AlmaLinux, Amazon Linux, CentOS, Fedora, Mageia, OpenMandriva, openSUSE, PCLinuxOS, Rocky Linux, Void Linux
🌐
Linux Mint Forums
forums.linuxmint.com › board index › main edition support › software & applications
[SOLVED] Missing libdl.so.2 Error during installation - Linux Mint Forums
April 13, 2010 - Q30. Redhat Enterprise V3.0 missing libdb.so.2 library(10) Answer: Redhat Enterprise V3.0 installations done by the user might be missing the /usr/lib/libdb.so.2 library file. This prevents Delta from starting. This file is part of the GNOME desktop environment, typically we use the KDE environment.
Top answer
1 of 1
5

TL;DR: This is a building issue with the application, the application was incorrectly built and linked against libdl.so. For Linux support, the software must be rebuilt and linked to libdl.so.2 instead.

In this specific stack trace, the crash is in the C# pythonnet stack, fixed in pythonnet >= 3.0

More Explanation:

This is the standard glibc library. It's often linked automatically when binaries are created or it's often hardcoded in specific builds (the library is used to load further libraries).

The library is libdl.so.2 in Linux distributions (Debian, RHEL, Ubuntu, etc...). It was historically libdl.so in older operating systems and Unix variants.

Both have been coexisting for a while and causing confusion:

  • On CentOS, libdl.so can be installed by sudo yum install glibc-devel
  • On Debian and Ubuntu <=20, libdl.so can be installed by sudo apt-get install libc6-dev
  • On Ubuntu >= 22, libdl.so no longer exists, it can't be installed by libc6-dev (nor gcc).

The dev glibc package is a transitive dependency of gcc. It's very common for gcc to be installed on Linux machines (developer machines and end-user machines alike), so it's very common for libdl.so to be accidentally available. It's not part of the base operating system and should not be expected to be available.

Software that have been linked to libdl.so will crash when the library is not available. It's a long standing issue. It's getting more noticeable due to Ubuntu 22 lately, it was only noticeable in containers and minimal OS install before (no gcc).

In this specific stack trace, the crash was in the C# pythonnet stack, the linking was fixed in pythonnet >= 3.0

🌐
Unix Community
community.unix.com › solaris
How to install libdl.so.2 package on solaris 10 - Solaris - Unix Linux Community
July 13, 2023 - Dear Everyone, Greetings! I am trying to install libdl.so.2 packages, however, I couldn't get the exact one so could you help me to get the one mentioned before? I thought the package seemed for the Linux OS package w…
Find elsewhere
🌐
Debian
packages.debian.org › cgi-bin › search_contents.pl
Debian -- Package Contents Search Results -- libdl.so.2
JavaScript is disabled in your browser · Please enable JavaScript to proceed · A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser
🌐
Stack Overflow
stackoverflow.com › questions › 51621227 › how-to-install-libdl-so-on-linux-contianers
asp.net - How to install libdl.so on linux contianers? - Stack Overflow
August 1, 2018 - I was going to download the .so somewhere and put it in the execution path. Unfortunately I could not find a straight copy of libdl.so.
🌐
Ubuntu
packages.ubuntu.com › search
Ubuntu – Package Contents Search Results -- libdl.so
You have searched for paths that end with libdl.so in suite trusty, all sections, and all architectures.
🌐
Google Groups
groups.google.com › g › c-rtmp-server › c › IFQ6XRN0qIo
how can I install libdl in Ubuntu
Hi all, I want to run CRTMPSERVER in Ubuntu 10.10, but I can not find the package of libdl. Could any one give me a help? Thanks very much Robin ... Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message ... it is already installed (as part of base installation) Вівторок, 3 квітня 2012 р., 14:54:41 UTC+3 користувач Robin написав:
🌐
Debian
packages.debian.org › search
Debian -- Package Contents Search Results -- libdl.so
You have searched for paths that end with libdl.so in suite bookworm, all sections, and all architectures.
🌐
GitHub
github.com › veldrid › veldrid › issues › 143
Unable to load shared library 'libdl' · Issue #143 · veldrid/veldrid
December 11, 2018 - Exception: Unhandled Exception: Sytem.TypeInitializationException: The Type initializer for 'veldrid.sdl2.sdl2Native' threw an exception. --> system.dllnotfoundexception: Unable to load shared library 'libdl' at NativeLibraryLoader.libdl.dlopen . . at veldrid.startuputilities.veldridstartup.createwindow ·
Author   veldrid
🌐
MariaDB
mariadb.com › kb › en › is-it-possible-to-build-the-library-without-dependency-on-libdl
Is it possible to build the library without dependency on libdl? - MariaDB Knowledge Base
I am building the library from source, and my use case requires me to use the static library. Is it possible to remove the dependency on libdl? It looks like this is used to load the plugin libraries at runtime. I do not plan on using these plugins.
🌐
USC
neuroimage.usc.edu › discussions
DUNEURO error libdl.so.2 - Discussions - Brainstorm
May 18, 2020 - Hi everyone, I was trying to use DUNEURO for the FEM forward model but I have the following error: DUNEURO> Installation path: /home/duma/.brainstorm/bst_duneuro/bin/bst_duneuro_meeg_linux64 DUNEURO> Writing temporary files to: /home/duma/.brainstorm/tmp DUNEURO> System call: "/home/duma/....
🌐
DLLme
dllme.com › dll › files › libdl
libdl.dll : Free .DLL Download
August 17, 2024 - Download and install libdl.dll to fix missing or corrupted dll errors.
🌐
GitHub
github.com › benjamimgois › goverlay › issues › 4
Getting "can't get libdl.so" in Pop!_OS 22.04 · Issue #4 · benjamimgois/goverlay
July 25, 2022 - Hi, I tried to install GOverlay through the Pop!_Shop but unfortunately I wasn't able to even start the program. I ran goverlay it in the terminal, and I got the message: can't get libdl.so. Is there any workaround to this issue?
Author   benjamimgois