Generally, the concept of DLLs means that many applications can share the same DLL file. However, in many cases, applications may introduce a changed version of a particular DLL which is already present on a system, either overwriting the old copy (which can, in turn, break compatibility with other applications), or install another copy, wasting disk space, memory space and slowing program load times because it takes more time to locate the right DLL among many.
As time goes by, the DLL-hell problem can become only worse, since software that installed the unnecessary DLLs is unlikely to remove them when uninstalled. This could eventually cause a chaos of thousands of mysterious DLL-files, some of which are necessary for the system to function normally, while others are just wasting space, and with no way to distinguish between them.
DLL-hell as described above is a very common phenomenon on Microsoft Windows systems, as they have limited facilities for system file management and versioning of libraries (and existing programs often disrespect the few facilities that do exist). Many "DLL-hell" problems are less likely on Unix-like systems, because there are a large number of standards and conventions that enable having multiple different DLL versions available simultaneously, Unix-like systems' search systems for libraries tend to be efficient (so load times are not strongly affected), and most tend to have package managers to support automated management of DLLs (including automated update of a library, and removal once a version of a library is no longer needed).
However, even with systems with standard locations for dynamic libraries and careful versioning schemes, problems may be encountered with the use of such libraries. For example, the GNOME desktop environment, common on Linux and other Unix-like systems, is notorious for bundling an enormous number of libraries. Even though the versioned dynamic linking largely solves the runtime issues, the sheer number of libraries (which must be retrieved and installed separately on some systems) is in itself a burden. Additionally, whilst the system provides facilities for installing side-by-side versions of the runtime libraries, it doesn't provide much assistance for side-by-side installs of the header files required for compiling the programs. However, these issues mainly inconvenience developers and people who compile their software from source, rather than end users who usually download precompiled software from their distribution provider. Distributions tend to use package managers that significantly reduce these problems for end-users.
There are several measures known to avoid DLL-hell, which have to be used simultaneously, for optimal results:
Search Encyclopedia
|
Featured Article
|