![]() In this case, the package name that contains the libbz2.so.1.0 library is likely bzip2, and trying to uninstall would likely break various other items, as can be glanced from a long list of programs that will be removed if one tries to uninstall or purge the bzip2 package. There are two types of libraries-runtime libraries and development libraries. ![]() It’s a complex area, and the issue has been discussed often. For example, if you use static compiling, and a library that you’ve included in your software package (from the perspective of a software vendor) now has a security bug or critical update, it will likely mean that you have to re-release your software package, even if nothing has changed in your code.īut then again, relying on the user to install libraries, especially for complex programs, or when self-compilation of software is required, with the realization that end-users often struggle with such things, isn’t ideal either. required libraries) to be co-installed at the same time.īoth static and dynamic compiling have pros and cons. will often yield a set of other related things (i.e. This is why running a simple command like sudo apt install. A dynamically compiled binary will use the libraries installed, available, and shared on the user’s system.Īs you can immediately see, this would require the user to install any such required dependencies, unless the same is taken care of in the operating system or application vendor’s package management system and details. A statically compiled binary has the libraries (available on the developer system at the time of compiling) compiled into the resulting binary/executable. ![]() The difference between statically and dynamically compiled binaries is simple but has far-reaching consequences.
0 Comments
Leave a Reply. |