Forum - netcdf-fortran 4.6.0

Jump to navigation Jump to search
Overview > Topics > Porting > netcdf-fortran 4.6.0
[#128]

Hello,

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

$ tar xzf netcdf-fortran-4.6.0.tar.gz
$ cd netcdf-fortran-4.6.0
$ patch -p0 < netcdf-fortran-4.6.0.patch
$ export CC=ncc-4.0.0
$ export FC=nfort-4.0.0
$ 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 Mit-niki on 16 February 2023 at 08:42.
Edited by Mit-niki on 16 February 2023 at 09:09.