[lammps-users] Making lammps

Dear Lammps users,

I am very new to Lammps, and trying to install it to our computer.
I got errors when I made lammps as following.

Nanako,

First try buillding LAMMPS without any of the optional libraries. Type:

"make no-all"

Before typing:

make <your_platform>

Please see: http://lammps.sandia.gov/doc/Section_start.html#2_2

Paul

Dear Paul,

Thank you very much for your quick reply.
I typed "make no-all" and tried "make serial" to build without fft nor MPI.
But I still have undefined reference errors such as:

/home/nanakot/Desktop/research/lammps-21Apr08/src/Obj_serial/write_restart.cpp:62: undefined reference to `MPI_Comm_rank(int, int*)'
/home/nanakot/Desktop/research/lammps-21Apr08/src/Obj_serial/write_restart.cpp:63: undefined reference to `MPI_Comm_size(int, int*)'
collect2: ld returned 1 exit status
make[1]: *** [../lmp_serial] Error 1
make[1]: Leaving directory `/home/nanakot/Desktop/research/lammps-21Apr08/src/Obj_serial'
make: *** [serial] Error 2

Would you please tell me what is going on about this?
I am not familiar with UNIX either, so I am very confused.
Thank you very much.

Best regards,
Nanako Takahashi

Crozier, Paul S wrote:

Try:

cd STUBS
make
cd ../
make serial

Paul

Dear Paul,

It works! Thank you very much.
I could finish compling with "Makefile.serial".
So next, I tried "Makefile.g++" including FFTW and MPICH added with some modification for -I and -L option.
And it didn't work, either as error as following.

Nanako,

You can run LAMMPS now as-is without getting the optional packages going. Go ahead and play with running it on your computer before you decide whether or not to try any of the optional packages. You can go into the examples folder and try running some of those. Something like:

cd examples/crack
../../lmp_g++_test < in.crack

To get the optional packages going, please read the documentation here:

http://lammps.sandia.gov/doc/Section_start.html#2_3

Paul