It will install any new library in that directory # ldconfig -n -v /usr/lib To install a library file you need to copy the file inside /usr/lib and then run ldconfig (as root). To list the shared libraries # ldd /bin/ls We do this in order to avoid or resolve dependencies and conflicts. Installing new libraries means that you need to maintain the software that depends on these libraries. This means that the code compiled with dynamically linked libraries has a smaller memory footprint then if it were linked statically. These are also shared libraries and are loaded into memory as they are needed. However this disadvantage is that the resulting code tends to be long and so uses large amount of system resources. this can have advantage of producing executable code that runs quickly. These are compiled together with a program to produce a single piece of executable code. Software libraries can be linked in two ways: This avoids having to rewrite the code for functions that are used repeatedly. These are the collection of software that are re used by other programs. Shared libraries relies heavily on concept of libraries. I have already written an article with step by step instructions to load modules from kernel during boot stage and also a guide to blacklist any module during boot up stage.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |