Fatal error: fftw3.h: No such file or directory

Hi all, I’m having trouble installing channelflow. I’ve run cmake succesfully, cmake log in the last section.

However, I get the following error when I run make install -j 8

fatal error: fftw3.h: No such file or directory
21 | #include <fftw3.h>
| ^~~~~~~~~
compilation terminated.


– configuring channelflow version 2.0.2
– Using GNU compiler options

– Starting system introspection
– Found FFTW
– FFTW_LIBRARY=/usr/lib/x86_64-linux-gnu/libfftw3.so
– FFTW_OMP_LIBRARY=FFTW_OMP_LIBRARY-NOTFOUND
– FFTW_MPI_LIBRARY=/usr/lib/x86_64-linux-gnu/libfftw3_mpi.so
– MPI libs:
– FFTW_MPI library: /usr/lib/x86_64-linux-gnu/libfftw3_mpi.so
– NetCDF include dir: /opt/anaconda3/include

– Include directories:
– Git revision e9209c9e71db8561bac719244603e8d817e05fc5
– Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)

###############################################
########### Configuration summary ###########
###############################################
Compiler: GNU 9.3.0
Build type: release
Install prefix: /usr/include
Building shared library: yes
Linking programs to: shared library

Libraries
MPI: enabled
netcdf (default file format): enabled
Parallel netcdf: disabled
HDF5 C++ (legacy file format): disabled

Channelflow components
nsolver: enabled
Python wrapper: disabled
GTest unit testing: enabled

– Configuring done
– Generating done
– Build files have been written to: /home/chihin/Repositories/channelflow/build