title: Install MPICH2 cannot fild libmpi.so.1 ( uninstalled openmpi already)
body: <p>I installed mpich2 using:</p>
  
  <pre><code>./configure --prefix=/usr/mpich2-install --enable-threads --enable-shared
  
  make
  
  make install
  </code></pre>
  
  <p>But when I run a MPI program, there is a error:</p>
  
  <pre><code>./exe_framework: error while loading shared libraries: libmpi.so.1: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>Then, I modified LD_LIBRARY_PATH to : /usr/mpich2-install/lib.   But the error is still there. I checked /usr/mpich2-install/lib. The out put of ls is:</p>
  
  <pre><code>-rw-r--r--. 1 root root  673560 Apr  8 17:44 libfmpich.a
  -rwxr-xr-x. 1 root root     959 Apr  8 17:44 libfmpich.la
  lrwxrwxrwx. 1 root root      19 Apr  8 17:44 libfmpich.so -&gt; libfmpich.so.10.0.4
  lrwxrwxrwx. 1 root root      19 Apr  8 17:44 libfmpich.so.10 -&gt; libfmpich.so.10.0.4
  -rwxr-xr-x. 1 root root  256790 Apr  8 17:44 libfmpich.so.10.0.4
  -rw-r--r--. 1 root root 5631824 Apr  8 17:44 libmpich.a
  -rw-r--r--. 1 root root  259262 Apr  8 17:44 libmpichcxx.a
  -rwxr-xr-x. 1 root root     973 Apr  8 17:44 libmpichcxx.la
  lrwxrwxrwx. 1 root root      21 Apr  8 17:44 libmpichcxx.so -&gt; libmpichcxx.so.10.0.4
  lrwxrwxrwx. 1 root root      21 Apr  8 17:44 libmpichcxx.so.10 -&gt; libmpichcxx.so.10.0.4
  -rwxr-xr-x. 1 root root  184546 Apr  8 17:44 libmpichcxx.so.10.0.4
  -rw-r--r--. 1 root root   10994 Apr  8 17:44 libmpichf90.a
  -rwxr-xr-x. 1 root root     973 Apr  8 17:44 libmpichf90.la
  lrwxrwxrwx. 1 root root      21 Apr  8 17:44 libmpichf90.so -&gt; libmpichf90.so.10.0.4
  lrwxrwxrwx. 1 root root      21 Apr  8 17:44 libmpichf90.so.10 -&gt; libmpichf90.so.10.0.4
  -rwxr-xr-x. 1 root root   12833 Apr  8 17:44 libmpichf90.so.10.0.4
  -rwxr-xr-x. 1 root root    1051 Apr  8 17:44 libmpich.la
  lrwxrwxrwx. 1 root root      18 Apr  8 17:44 libmpich.so -&gt; libmpich.so.10.0.4
  lrwxrwxrwx. 1 root root      18 Apr  8 17:44 libmpich.so.10 -&gt; libmpich.so.10.0.4
  -rwxr-xr-x. 1 root root 2764100 Apr  8 17:44 libmpich.so.10.0.4
  -rw-r--r--. 1 root root   23530 Apr  8 17:44 libmpl.a
  -rwxr-xr-x. 1 root root     919 Apr  8 17:44 libmpl.la
  lrwxrwxrwx. 1 root root      15 Apr  8 17:44 libmpl.so -&gt; libmpl.so.1.0.0
  lrwxrwxrwx. 1 root root      15 Apr  8 17:44 libmpl.so.1 -&gt; libmpl.so.1.0.0
  -rwxr-xr-x. 1 root root   20623 Apr  8 17:44 libmpl.so.1.0.0
  -rw-r--r--. 1 root root    4052 Apr  8 17:44 libopa.a
  -rwxr-xr-x. 1 root root     929 Apr  8 17:44 libopa.la
  lrwxrwxrwx. 1 root root      15 Apr  8 17:44 libopa.so -&gt; libopa.so.1.0.0
  lrwxrwxrwx. 1 root root      15 Apr  8 17:44 libopa.so.1 -&gt; libopa.so.1.0.0
  -rwxr-xr-x. 1 root root    7380 Apr  8 17:44 libopa.so.1.0.0
  drwxr-xr-x. 2 root root    4096 Apr  8 17:44 pkgconfig
  </code></pre>
  
  <p>There is no libmpi.so. I installed openMPI before. Now I have delete it using make uninstall. libmpi.so.1 is a file in openmpi/lib.</p>
  
  <p>The PATH is:</p>
  
  <pre><code>/usr/mpich2-install/bin/:/usr/mpich2-install/bin/:/usr/mpich2-install/bin/:/usr/openmpi-install/bin/:/usr/openmpi-install/bin/:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
  </code></pre>
  
  <p>The LD_LIBRARY_PATH is:</p>
  
  <pre><code>/usr/mpich2-install/lib/
  </code></pre>
  
  <p>ldd exe_framework is:</p>
  
  <pre><code>    linux-vdso.so.1 =&gt;  (0x00007fff33bff000)
      libpthread.so.0 =&gt; /lib64/libpthread.so.0 (0x00000036f1e00000)
      libm.so.6 =&gt; /lib64/libm.so.6 (0x00000036f2600000)
      libmpich.so.10 =&gt; /usr/mpich2-install/lib/libmpich.so.10 (0x00007f71533a2000)
      libopa.so.1 =&gt; /usr/mpich2-install/lib/libopa.so.1 (0x00007f71531a1000)
      libmpl.so.1 =&gt; /usr/mpich2-install/lib/libmpl.so.1 (0x00007f7152f9c000)
      librt.so.1 =&gt; /lib64/librt.so.1 (0x00000036f2200000)
      libc.so.6 =&gt; /lib64/libc.so.6 (0x00000036f1a00000)
      /lib64/ld-linux-x86-64.so.2 (0x00000036f1200000)
      libgfortran.so.3 =&gt; /usr/lib64/libgfortran.so.3 (0x00007f7152ca9000)
      libgcc_s.so.1 =&gt; /lib64/libgcc_s.so.1 (0x00000036fd600000)
  </code></pre>
  
  <p>Am I wrong during installation?</p>