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

From: Jose Borreguero (borreguero_at_gmail.com)
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:

Package
http://www.ks.uiuc.edu/Research/namd/libraries/fftw-linux-x86_64.tar.gz,
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
fftw-linux-x86_64.tar.gz<http://www.ks.uiuc.edu/Research/namd/libraries/fftw-linux-x86_64.tar.gz>package.

-Jose

---------- Forwarded message ----------
From: Jose Borreguero <borreguero_at_gmail.com>
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 <namd-l_at_ks.uiuc.edu>

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
http://www.ks.uiuc.edu/Research/namd/libraries/fftw-linux-x86_64.tar.gz
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++/
make

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

Jose M. Borreguero

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