Why is mpirun refusing to work?
Mpirun creates the equivalent of a fresh login session for every job, so if any of your startup settings overwrite, say, the library paths, any of the settings introduced via modules will be lost. To check if this is causing the problems try running ldd on your application or try running the program without mpirun and look for linker errors. If everything looks fine you will need to check your startup files for any lines that set the LD_LIBRARY_PATH and add the current environment to it. E.g.