NAMD Wiki: NamdCompile
(instructions on compiling NAMD and its accessories)
Primary directions for building NAMD are at http://www.ks.uiuc.edu/Research/namd/development.html
Full compilation of NAMD needs fftw, tcl and VMD plugins You can download precompiled libraries from NAMD download page, but in case you have to compile yourself, here is how you do it:
*To compile TCL 8.3:
./configure --disable-shared --prefix={somewhere} make make install
*To compile fftw 2.1.5:
download from www.fftw.org. Note you should download fftw version 2, there is major API changes in fftw version 3 and is not compataible with fftw2. ./configure --enable-float --enable-type-prefix --enable-static --prefix={somewhere} make make install
*To compile plugins, download VMD and compile