[lammps-users] Building Lammps Trouble

When I use the make linux command I get the error:

icc -O -DFFT_FFTW -DLAMMPS_GZIP -DMPICH_IGNORE_CXX_SEEK -M write_restart.cpp > write_restart.d
/bin/sh: icc: command not found
make[1]: *** [write_restart.d] Error 127
make[1]: Leaving directory `/home/James/LAMMPSstuff/lammps-25Aug09/src/Obj_linux'
make: *** [linux] Error 2

So I tried performing gmake instead and got this error:

In file included from fft3d_wrap.h:18,
                  from pppm.cpp:32:
fft3d.h:164:18: fftw.h: No such file or directory
gmake[1]: *** [pppm.d] Error 1
gmake[1]: Leaving directory `/home/James/LAMMPSstuff/lammps-25Aug09/src/Obj_mac'
gmake: *** [mac] Error 2

I then continued to the do the suggested:

make makelist
make -f Makefile.list linux

and got this error:

icc -O -DFFT_FFTW -DLAMMPS_GZIP -DMPICH_IGNORE_CXX_SEEK -M verlet.cpp > verlet.d
/bin/sh: icc: command not found
make[1]: *** [verlet.d] Error 127
make[1]: Leaving directory `/home/James/LAMMPSstuff/lammps-25Aug09/src/Obj_linux'
make: *** [linux] Error 2

and then tried to the same thing only using gmake again and got this error:

In file included from fft3d_wrap.h:18,
                  from fft3d_wrap.cpp:15:
fft3d.h:164:18: fftw.h: No such file or directory
gmake[1]: *** [fft3d_wrap.d] Error 1
gmake[1]: Leaving directory `/home/James/LAMMPSstuff/lammps-25Aug09/src/Obj_mac'
gmake: *** [mac] Error 2

I am not sure what to do now.

The error message is quite clear. When it says “No such file found”, it means that you haven’t install that or you need to specify the path to that.

It’s better to read the manual about how to compile lammps, which is indeed a non-trivial thing.

Good luck.