I am trying to install netcdf4 on my PC which has Ubuntu 16.04 as the OS. I am using gcc and gfortran as the C and fortran compiler. I started off installing zlib compression library(version 1.2.11) with shared library as follows:
NCDIR=/home/kcube/CDO2/install_dir
CFLAGS=-fPIC ./configure --prefix=/${NCDIR}
make -j 4
make install
Then I installed mpi for parallel IO support for netcdf:
./configure --prefix=${NCDIR} --enable-shared
make install
Then I tried to install hdf5 as it is required for netCDF-4:
CC=${NCDIR}/bin/mpicc ./configure --enable-parallel --prefix=${NCDIR} --with-zlib=${NCDIR} CFLAGS=-fPIC
make -j 8
make check
The make check fails with the following error:
make[4]: Entering directory ‘/home/kcube/CDO2/hdf5-1.10.4/testpar’
Testing t_mpi
t_mpi Test Log
time: cannot run mpiexec: No such file or directory
Command exited with non-zero status 127
0.00user 0.00system 0:00.00elapsed ?%CPU (0avgtext+0avgdata 1168maxresident)k
0inputs+0outputs (0major+27minor)pagefaults 0swaps
Makefile:1436: recipe for target ‘t_mpi.chkexe_’ failed
make[4]: *** [t_mpi.chkexe_] Error 1
make[4]: Leaving directory ‘/home/kcube/CDO2/hdf5-1.10.4/testpar’
Makefile:1545: recipe for target ‘build-check-p’ failed
make[3]: *** [build-check-p] Error 1
make[3]: Leaving directory ‘/home/kcube/CDO2/hdf5-1.10.4/testpar’
Makefile:1416: recipe for target ‘test’ failed
make[2]: *** [test] Error 2
make[2]: Leaving directory ‘/home/kcube/CDO2/hdf5-1.10.4/testpar’
Makefile:1217: recipe for target ‘check-am’ failed
make[1]: *** [check-am] Error 2
make[1]: Leaving directory ‘/home/kcube/CDO2/hdf5-1.10.4/testpar’
Makefile:654: recipe for target ‘check-recursive’ failed
make: *** [check-recursive] Error 1
It seems to be issue related to parallel IO but don’t know how to fix it.