libmpi.so.40 Not Found When Performing Parallel MPI Application Debugging
Symptom
Parallel MPI application debugging fails and the following error is reported:
Failed to launch lldb-server: /root/devkitdemo-devkitdemo-23.0.1/Compiler_and_Debugger/mpi_demo/kunpeng/a5459915/lldb-server: error while loading shared libraries: libmpi.so.40: cannot open shared object file: No such file or directory.
Key Process and Cause Analysis
libmpi.so.40 is not found.
Conclusion and Solution
Install Open MPI 4.1.4 or a later version. For details, see Installing Open MPI.
After the installation is complete, set the environment variable:
export LD_LIBRARY_PATH=/opt/test/openmpi_414/lib:$LD_LIBRARY_PATH
/opt/test/openmpi_414/lib indicates the Open MPI installation path.
Parent topic: FAQs