Build Lammps

Hi,

I am trying to build lmp_openmpi on Ubuntu…but an error happened:

region_prism.o region_sphere.o region_union.o remap.o remap_wrap.o replicate.o respa.o run.o set.o special.o thermo.o timer.o universe.o update.o variable.o velocity.o verlet.o write_restart.o -lsfftw -lstdc++ -o …/lmp_openmpi
/usr/bin/ld: cannot find -lsfftw
collect2: ld returned 1 exit status
make[1]: *** […/lmp_openmpi] Error 1
make[1]: Leaving directory `/home/chao/Desktop/Programs–Lammps/lammps-6Feb12/src/Obj_openmpi’
make: *** [openmpi] Error 2

I checked my fftw and it’s fine…and I also followed manual to correct the path of FFT

FFT_INC = -DFFTW_SIZE
FFT_PATH =
FFT_LIB = -lsfftw

Could anyone help find a solution?

Best,
Chao

Hi,

I am trying to build lmp_openmpi on Ubuntu....but an error happened:

region_prism.o region_sphere.o region_union.o remap.o remap_wrap.o
replicate.o respa.o run.o set.o special.o thermo.o timer.o universe.o
update.o variable.o velocity.o verlet.o write_restart.o -lsfftw -lstdc++
-o ../lmp_openmpi
/usr/bin/ld: cannot find -lsfftw
collect2: ld returned 1 exit status
make[1]: *** [../lmp_openmpi] Error 1
make[1]: Leaving directory
`/home/chao/Desktop/Programs--Lammps/lammps-6Feb12/src/Obj_openmpi'
make: *** [openmpi] Error 2

I checked my fftw and it's fine....and I also followed manual to correct the

how do you conclude that?
you obviously don't have the
correct FFTW library or the
matching development package
installed.

path of FFT
FFT_INC = -DFFTW_SIZE
FFT_PATH =
FFT_LIB = -lsfftw

Could anyone help find a solution?

not without a crystal ball.

axel.

Just follow steps in the with attached file. I followed the same steps for Mac as well Ubuntu. In both it worked fine. I guess, you need to consider fftw3 instead fftw2.5.

Credit goes to Fumihiro CHIBA…

27May12-28May12-on-OS-X-10-7.pdf (150 KB)