[lammps-users] compiling lammps

Hi everyone
i'm trying to compile lammps on a debian-based machine but i have this error:

/usr/bin/ld: cannot find -lfftw
collect2: ld returned 1 exit status
make[1]: *** [../lmp_debian] Error 1
make[1]: Leaving directory `/home/xxxxxx/lammps-21May08/src/Obj_debian'
make: *** [debian] Error 2

fftw-2-1-5 is installed and Makefile.debian is:

# debian = Debian, g++, MPICH, FFTW
SHELL = /bin/sh
#.IGNORE:
# System-specific settings
CC = g++
CCFLAGS = -g -O -I/usr/lib/mpich/include/ -DFFT_NONE -DLAMMPS_GZIP
DEPFLAGS = -M
LINK = g++
LINKFLAGS = -g -O -L/usr/lib/mpich/lib
USRLIB = -lfftw -lmpich
SYSLIB =
ARCHIVE = ar
ARFLAGS = -rc
SIZE = size
# Link target
\(EXE\): (OBJ)
        \(LINK\) (LINKFLAGS) \(OBJ\) (USRLIB) \(SYSLIB\) \-o (EXE)
        \(SIZE\) (EXE)
# Library target
lib: \(OBJ\) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(ARCHIVE) \(ARFLAGS\) (EXE) \(OBJ\) \# Compilation rules %\.o:%\.cpp &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(CC) \(CCFLAGS\) \-c <
\.d:.cpp
        \(CC\) (CCFLAGS) \(DEPFLAGS\) < > @ \# Individual dependencies DEPENDS = (OBJ:.o=.d)
include $(DEPENDS)

So, can anybody help me? any suggestion/idea to compile lammps?
Thanks in advance
wv

As it says, the linker is not finding a file like libfftw.a - if it is not
in the usual place, like /usr/local/bin, then you have to tell it
where FFTW installed it - e.g. by adding a -L to the LINKPATH,
as for MPICH.

Steve