1/9/2024 0 Comments Youtube p4mergeLibrust-gobject-sys-dev/focal 0.9.0-2 amd64įFI bindings to libgobject-2.0 - Rust source code Now, apt provides the search option that can be used for searching a package and knowing its version before installing it. The version number is important because some programs depend on a specific version of the library and if they don’t find, they complain about it. The problem is with libgobject version 2.0. Let’s say you see this error: error while loading shared libraries: libgobject-2.0.so.0: cannot open shared object file: No such file or directory So, the alternate method is to install the required program and it should create the library automatically. The ldconfig cannot do anything if there is no library file in the first place. If you do not have the program installed on your system, you won’t have its library file. The above discussed method fixes the issue if the library in question is available in your system. Alternate method to fix ‘cannot open shared object file’ error If not, you can do some investigation and try to fix the issue the way it is mentioned in the next section. I hope this quick fix helps you in eliminating the nasty error while loading shared libraries message in Ubuntu and other Linux. ldconfig checks the header and filenames of the libraries it encounters when determining which versions should have their links updated. The cache is used by the run-time linker, ld.so or ld-linux.so. Ldconfig creates the necessary links and cache to the most recent shared libraries found in the directories specified on the command line, in the file /etc/ld.so.conf, and in the trusted directories ( /lib and /usr/lib). Now if you wonder how did this tiny command fixed this problem, you should read the man page of ldconfig which says: These generated libraries are usually located in /lib or /usr/lib directories. It is called shared object because this library file can be shared by several programs. so (shared object) is a compiled library file. What are shared object files? How does the above command fixes the issue? But before that, let me tell you what does the above command do. However, if it doesn’t, I have discussed another method to handle this error. This one liner should solve the problem in most cases. One quick way to fix this “error while loading shared libraries” automatically is to use ldconfig.Īll you need to do is to open terminal (Ctrl+Alt+T) and type the following command: sudo /sbin/ldconfig -v Fixing ‘cannot open shared object file: No such file or directory’ error
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |