Monday, September 28, 2009

OpenMPI, CentOS Linking Error - libmpi.so.0 :cannot open shared object file: No such file or directory

I was installing OpenMPI on CentOS 5.x. After installation, I  tried to  use pirun, I encountered this error
libmpi.so.0 :cannot open shared object file: No such file or directory

The reason for the error is that the the loader is not able to find the libmpi.so because /usr/local/lib is not in its PATH

To resolve the issues, you have to do the following
# vim /etc/ld.so.conf
(Add the /usr/local/lib into the file)
# ldconfig

No comments: