title: Loading shared library in open-mpi/ mpi-run
body: <p>I'm trying to run my program using torque scheduler using mpi run. Though in my pbs file I load all the library by </p>
  
  <pre><code>export LD_LIBRARY_PATH=/path/to/library
  </code></pre>
  
  <p>yet it gives error i.e. </p>
  
  <pre><code>error while loading shared libraries: libarmadillo.so.3: 
  cannot open shared object file: No such file or directory. 
  </code></pre>
  
  <p>I guess error lies in variable LD_LIBRARY_PATH not set in all the nodes. How would I make it work?</p>