configure: error: unable to link a simple MPI-IO Fortran program


#1

Hello
This is my first attempt to install hdf5 library on a local directory (without root access).
So, please consider my as novice and guide me accordingly :slight_smile:
My problem is similar to what is reported here:

I want to install hdf5 library with --enable-fortran.
If I use --enable-fortran (see my complete configure script)
then I get the warning: configure: error: unable to link a simple MPI-IO Fortran program
without using -enable-fortran, the configuration goes well.

./configure MPIF90=mpiifort F90=mpiifort F77=mpiifort CC=mpiicc --enable-parallel --enable-shared --enable-fortran --prefix=/home/kcbhamu/soft/hdf5-1.12.0

here are my installed compilers:

mpiifort
/opt/intel/compilers_and_libraries_2020.2.254/linux/mpi/intel64/bin/mpiifort
mpicc
/opt/intel/compilers_and_libraries_2020.2.254/linux/mpi/intel64/bin/mpicc
mpiicc
/opt/intel/compilers_and_libraries_2020.2.254/linux/mpi/intel64/bin/mpiicc

Please guide me how I can install hdf5 library in my local directory (without getting root access) on a centos based (with slurm job scheduler cluster).

Thank you very much,

Regards
Bhamu