Hello, When installing netCDF-Fortran, you do not need to specify many of these flags. You can ignore the warnings about unrecognized options, or exclude those options. What you need to do is specify the FC flag, e.g. FC=mpifort, in addition to the CC and CXX flags. I hope this helps, have a great evening! -Ward > Full Name: Maria Torres > Email Address: address@hidden > Organization: CICIMAR-IPN > Package Version: Netcdf-fortran-4.4.5 > Operating System: Ubuntu 18.04 > Hardware: > Description of problem: Hi, > > I have successfully built the netcdf-c (v-4.6.3) when I've tried to install > netCDF- fortran (v-4.4.5 and I tried with v-4.4.4) with my configure: > > % ==================== > export CC=mpicc > export CXX=mpicxx > > CPPFLAGS='-I/home/asouza/libraries/hdf5/include/ > -I/home/asouza/libraries/netcdf-c/include' > LDFLAGS='-L/home/asouza/libraries/hdf5/lib > -L/home/asouza/libraries/netcdf-c/lib' ./configure --disable-dap > --disable-dap-remote-tests --enable-netcdf-4 --enable-shared > --enable-parallel-tests --prefix=/home/asouza/libraries/netcdf-fortran > > % ======================= > > I had this warning: > > % ======================= > configure: WARNING: unrecognized options: --disable-dap, > --disable-dap-remote-tests, --enable-netcdf-4 > % ======================= > > so, when I do the "make" and "make check"" I have this error: > > % ======================= > ... > gfortran -DHAVE_CONFIG_H -I. -I.. -I../libsrc -I../fortran -I../fortran > -I/home/asouza/libraries/hdf5/include/ > -I/home/asouza/libraries/netcdf-c/include -I../fortran -g -O2 -c -o > f90tst_parallel.o f90tst_parallel.F90 > f90tst_parallel.F90:43: Error: Can't open included file 'mpif.h' > Makefile:1337: recipe for target 'f90tst_parallel.o' failed > make: *** [f90tst_parallel.o] Error 1 > make: Leaving directory '/home/asouza/nemo-ersem/netcdf-fortran/nf_test' > Makefile:1875: recipe for target 'check-am' failed > make: *** [check-am] Error 2 > make: Leaving directory '/home/asouza/nemo-ersem/netcdf-fortran/nf_test' > Makefile:545: recipe for target 'check-recursive' failed > make: *** [check-recursive] Error 1 > % ======================= > > How can I resolved this? > > My pre-requisites: > > HDF5-version 1.10.5 > zlib-version 1.2.11 > MPICH and gfortran > Ubuntu 18.04 > > (add my nc-config.in and configure of netcdf-c) > > Ticket Details =================== Ticket ID: WZI-174080 Department: Support netCDF Priority: Normal Status: Closed =================== NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.