[lammps-users] Building LAMMPS for Mac

Dear All,

I am trying to build LAMMPS on my Mac machine (Snow Leopard). I have Xcode and fink (also fftw) installed. But I can not get it to build successfully. I tried both “make fink” and “make mac” and none of them worked. Before “make fink”, I issued “make” in the folder STUBS. I am copying here the log file. Please let me know if you can somehow help me out of this.

Regards,

Amir

LOG FILE (make fink):
.
.
.

"“MPI_Cart_get(int, int, int*, int*, int*)”, referenced from:
LAMMPS_NS::Comm::set_procs() in comm.o
“_fftw_create_plan”, referenced from:
fft_3d_create_plan(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int*)in fft3d.o
fft_3d_create_plan(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int*)in fft3d.o
fft_3d_create_plan(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int*)in fft3d.o
fft_3d_create_plan(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int*)in fft3d.o
fft_3d_create_plan(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int*)in fft3d.o
fft_3d_create_plan(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int*)in fft3d.o
“MPI_Allgather(void*, int, int, void*, int, int, int)”, referenced from:
remap_3d_create_plan(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)in remap.o
remap_3d_create_plan(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)in remap.o
LAMMPS_NS::Temper::command(int, char**)in temper.o
LAMMPS_NS::Temper::command(int, char**)in temper.o
LAMMPS_NS::Temper::command(int, char**)in temper.o
LAMMPS_NS::Temper::command(int, char**)in temper.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** […/lmp_fink] Error 1
make: *** [fink] Error 2

Your message doesn't make sense. Issuing make in src/STUBS
will simply build the dummy MPI library, not LAMMPS itself. Yet you
are getting a LAMMPS style error.

Please read doc/Section_start.html which tells you step-by-step
how to build LAMMPS for different configurations, e.g. yes/no MPI
intstalled, yes/no FFTW installed, etc.

Steve