SOLVED: Fatal Error by charmc.../usr/bin/ld: cannot find -lsrfftw. Please help!

From: Jose Borreguero (
Date: Wed Feb 13 2013 - 12:34:49 CST

I managed to find the error, which I post here because is useful for the
people to know:

once uncompressed, contains libraries under directory fftw/lib/. However,
Makefile expects libraries to reside under fftw/lib64/.
I did a softlink (ln -s lib lib64) which solved the little nuisance.

I think NAMD developers should ship this softlink in their


---------- Forwarded message ----------
From: Jose Borreguero <>
Date: Tue, Feb 12, 2013 at 6:26 PM
Subject: namd-l: Fatal Error by charmc.../usr/bin/ld: cannot find -lsrfftw.
Please help!
To: NAMD-l <>

I'm trying to compile NAMD. I took these steps:

Sources under SRC=/shared/local/namd/NAMD_2.9_Linux-x86_64-mpi_shared/
I have $SRC/fftw/ which I installed from wget
I edited $SRC/arch/Linux-x86_64.fftw and set
FFTDIR=/shared/local/namd/NAMD_2.9_Linux-x86_64-mpi_shared/fftw. Should I
use relative paths instead?
cd $SRC/
./config Linux-x86_64-g++ --charm-arch mpi-linux-x86_64
cd Linux-x86_64-g++/

I end up with ld complaining it cannot find -lsrfftw. Any help is very much

Jose M. Borreguero

This archive was generated by hypermail 2.1.6 : Wed Dec 31 2014 - 23:20:55 CST