when compile, configure: error: fftw3 cannot be linked

182 views
Skip to first unread message

qian gao

unread,
Jun 20, 2023, 7:29:22 AM6/20/23
to MBX-users
Hello,
When I run ./configure, it gives me this error "configure: error: fftw3 cannot be linked. Please define FFTW_HOME", actually I have set the FFTW_HOME by this command line "export FFTW_HOME=/share/apps/fftw/3.3.8/single-threads" , but it does not work. And I am sure this address is where fftw3.h and fftw3.so can be found . Could you please tell me why and what can I do?
Best wishes,
Qian

Ethan Bull-vulpe

unread,
Jun 20, 2023, 5:25:05 PM6/20/23
to MBX-users
Hello Qian,

Can you try adding your fftw3 lib directory to the LD_LIBRARY_PATH environment variable. No promises this will solve the issue, but I've seen similar problems solved this way.

You can do it like this:
```
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/your/path/to/fftw3/lib
```

-Ethan

qian gao

unread,
Jun 21, 2023, 7:14:41 AM6/21/23
to MBX-users

Thanks a lot, Ethan. I found my problem is that the single-thread version installed is single precision, when I change it to double precision, it works. 
Reply all
Reply to author
Forward
0 new messages