I installed mpich-3.0.4 not in a default location. I installed it based on the mpich installer's guidance.
However when I try to run:
mpiexec -n 4 -f machinefile ./mpich-3.0.4/examples/cpi
It gives me an error, which is:
./mpitrial/official_examples/cpi: error while loading shared libraries: libmpich.so.3: cannot open shared object file: No such file or directory
I had set PATH and LD_LIBRARY_PATH. But is still gives me that error.
Finally I just typed:
sudo apt-get install mpich2
Afterwards, I can run the mpiexec without error.
Why did this happen?