Compilation of delft3d under centos 7 Can't open module file 'netcdf.mod' - Forum - Delft3D
Forum
- Home
- 3. Archive
- General
- Compilation on Linux
- Compilation of delft3d under centos 7 Can't open module file 'netcdf.mod'
Compilation of delft3d under centos 7 Can't open module file 'netcdf.mod'
Compilation of delft3d under centos 7 Can't open module file 'netcdf.mod'
Youngling Post: 1 Join Date: 8/7/18 Recent PostsHello. I am trying to help a student who needs this software to work under centos 7. I know nothing about it.
First try using
./autogen.sh
./configure
make
libtool: compile: gfortran -DHAVE_CONFIG_H -I. -I../../../../..
-I../../../../../utils_lgpl/deltares_common/packages/deltares_common/src
-I/include -DWITH_DELFTONLINE -g -O2 -ffree-line-length-none -cpp -c
netcdf_utils.F90 -fPIC -o .libs/netcdf_utils.o
Warning:
Nonexistent include directory "/include"
netcdf_utils.F90:33.4:
use netcdf
1
Fatal Error: Can't open module file
'netcdf.mod' for reading at (1): No such file or directory
make[6]: *** [netcdf_utils.lo] Error 1
...
I have installed via yum:
environment-modules-3.2.10-10.el7.x86_64
openmpi-1.10.7-1.el7.x86_64
openmpi-devel-1.10.7-1.el7.x86_64
mpich-3.0-3.0.4-10.el7.x86_64
hdf5-openmpi-1.8.12-10.el7.x86_64
netcdf-fortran-4.2-16.el7.x86_64
hdf5-mpich-1.8.12-10.el7.x86_64
netcdf-mpich-4.3.3.1-5.el7.x86_64
netcdf-openmpi-4.3.3.1-5.el7.x86_64
hdf5-openmpi-devel-1.8.12-10.el7.x86_64
netcdf-openmpi-devel-4.3.3.1-5.el7.x86_64
mpich-3.0-devel-3.0.4-10.el7.x86_64
hdf5-mpich-devel-1.8.12-10.el7.x86_64
netcdf-mpich-devel-4.3.3.1-5.el7.x86_64
netcdf-fortran-mpich-4.2-16.el7.x86_64
netcdf-fortran-openmpi-4.2-16.el7.x86_64
netcdf-fortran-openmpi-devel-4.2-16.el7.x86_64
netcdf-fortran-mpich-devel-4.2-16.el7.x86_64
netcdf-fortran-devel-4.2-16.el7.x86_64
openmpi3-3.0.0-1.el7.x86_64
openmpi3-devel-3.0.0-1.el7.x86_64
But none of it helped.
I tried downloading netcdf-4.6.1.tar.gz and built and installed it locally and set
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
and
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/netcdf.pc
But nothing helps. It always gives same error.
second method attempt:
./build.sh -gnu
which sets bizarre things like
export MPIFC="/opt/mpich2-1.4.1-gcc-4.6.2/bin/mpif90" (which does not exist)
20180807.200056 :: Running make ds-install &>
logs/make.log
20180807.200056 :: Make fails!
in logs/make.log
/opt/mpich2-1.4.1-gcc-4.6.2/bin/mpif90 -DWITH_DELFTONLINE -O2
-ffree-line-length-none -cpp -c -o version_number.o
version_number.f90
make[5]:
/opt/mpich2-1.4.1-gcc-4.6.2/bin/mpif90: Command not found
Starting to give up hope that it would even be possible to compile this software on a centos 7 machine.
Does anyone know what she or I are doing wrong here? Has anyone succeeded without buying expensive intel compiler and just using gnu under centos 7 or RHEL 7?
Thank you very much.
RE: Compilation of delft3d under centos 7 Can't open module file 'netcdf.m
Padawan Posts: 97 Join Date: 1/3/11 Recent PostsHi Gary,
Does binary "/opt/mpich2-1.4.1-gcc-4.6.2/bin/mpif90" exist?
It is important that the mpich version you use is compiled with exactly the same compiler as you plan to use for Delft3D. It might be wise to download the mpich source code and compile it yourself, just to be sure.
Regards,
Adri