Forum - netcdf-fortran-4.5.2

Jump to navigation Jump to search
Overview > Topics > Porting > netcdf-fortran-4.5.2
[#24]

Dear all,

I confirmed that "make check" of netcdf-fortran-4.5.2 was passed by NEC C/C++ compiler version 2.5.1, 3.0.8 with the attached patch. This patch is necessary to create the shared library.

$ tar xzf netcdf-fortran-4.5.2.tar.gz
$ cd netcdf-fortran-4.5.2
$ patch -p0 < netcdf-fortran.patch
$ export CC=ncc-3.0.8
$ export FC=nfort-3.0.8
$ export LIBS="-lz -lhdf5 -lhdf5_hl -lnetcdf -ldl"
$ export LDFLAGS="-L<library directory path of zlib, hdf5 and netcdf-c>"
$ export CPPFLAGS="-I<include directory path of zlib, hdf5 and netcdf-c>"
$ export VE_LD_LIBRARY_PATH=<library path of zlib, hdf5, netcdf-c and netcdf-fortran>
$ ./configure --prefix=<netcdf-fortran install path>
$ make install
$ make check
Posted by NEC admin (administrator) on 17 June 2022 at 01:53.
Edited by NEC admin (administrator) on 20 June 2022 at 08:10.