title: Setting up G++ or ICC for mpi.h on Ubuntu
body: <p>I have never done any major programing outside of VS08. </p>
  
  <p>I am trying to compile a program called LAMMPS with either of the two relevant make files. One calls g++ and the other calls icc (Intel's compiler).</p>
  
  <p>icc produces this error:</p>
  
  <blockquote>
    <p>icc -O -DLAMMPS_GZIP  -DMPICH_SKIP_MPICXX  -DFFT_FFTW  -M write_restart.cpp > write_restart.d
    write_restart.cpp(15): catastrophic error: cannot open source file "mpi.h"
      #include "mpi.h"</p>
  </blockquote>
  
  <p>and g++ throws this error</p>
  
  <blockquote>
    <p>g++ -g -O -DLAMMPS_GZIP  -DMPICH_SKIP_MPICXX -DFFT_FFTW  -M verlet.cpp > verlet.d
    pointers.h:25: fatal error: mpi.h: No such file or directory
    compilation terminated.</p>
  </blockquote>
  
  <p>The mpi.h file is located in /usr/lib/openmpi/include</p>
  
  <p>It is my understanding that I need to set that $PATH variable which reads</p>
  
  <blockquote>
    <p>bash: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/opt/intel/bin:/usr/lib/openmpi/include:</p>
  </blockquote>
  
  <p>and $LD_LIBRARY_PATH which currently reads</p>
  
  <blockquote>
    <p>/usr/lib/openmpi/lib:</p>
  </blockquote>
  
  <p>SO, how does one include the mpi.h file? So that either icc or g++ find it?</p>