[lammps-users] Trouble in making the lampps

Hi, everyone.

I am new to lampps now and want to make it at my desktop.

Calculation Environment:
Quad-core AMD X4
Red hat 4.1.2-42;
Linux version 2.6.18-
gcc 4.1.2
mpich2 /usr/local/mpich2-1.0.6/

I have downloeded and unzip the package as in my home folder, for example
  /home/liu/lamppsxxx/

now
make g\+\+ \[[email protected]\.\.\.1291\.\.\. src\] make g++
make[1]: Entering directory `/home/ualiu/lammps-17Apr09/src/Obj_g++'
Makefile:40: angle_charmm.d: No such file or directory
Makefile:40: angle_cosine.d: No such file or directory
Makefile:40: angle_cosine_delta.d: No such file or directory
Makefile:40: angle_cosine_squared.d: No such file or directory
Makefile:40: angle.d: No such file or directory
Makefile:40: angle_harmonic.d: No such file or directo
.........
g++ -g -O -DFFT_FFTW -DLAMMPS_GZIP -DMPICH_IGNORE_CXX_SEEK -M write_restart.cpp > write_restart.d
write_restart.cpp:14:17: error: mpi.h: No such file or directory
make[1]: *** [write_restart.d] Error 1
make[1]: Leaving directory `/home/ualiu/lammps-17Apr09/src/Obj_g++'
make: *** [g++] Error 2

It was said that no *.d files and mpi.h.

Do I need edit the Makefile and how to do?

Thank you so much!

Liu

The error is no mpi.h. Please read doc/Section_start.html
about building LAMMPS. You either need your Makefile.foo
to point to an mpi.h you have installed on your box, or use
the STUBS option if you're going to run serially.

Steve