Skip to content

Error while loading shared libraries | Cannot open shared object file | Library not found #50

Answered by gtdang
gtdang asked this question in Q&A
Discussion options

You must be logged in to vote

Many programs are compiled with dynamic linking to libraries on which they depend. The dynamic linker called ld looks for these dependencies during run time and complains if it can't find them.

Example:

libmpichcxx.so not found

Here, it is looking for a library which is part of MPI implementations. You can load a module like mvapich2 so that the path to this library is added to LD_LIBRARY_PATH and can be found by the run time linker. It might happen that only a particular version is required. A web search on the library name also might reveal what software package it belongs to.

If you want to know what all shared libraries are required during run time by an executable, you can use the l…

Replies: 1 comment

Comment options

gtdang
Apr 13, 2023
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by gtdang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant