Where is libnetcdf.a and libnetcdff.a in NetCDF?

Hello,
I am trying to finish the step-8 from here Availability/Download of the BAMS/Models-3 I/O API
of I/O API 3.2 installation. Also, step-8 in the readme file from I/O APIV3.2 (attached). The step-8 is related to NetCDF library.

I have installed netcdf-Fortran 4.2 and netcdf 4.3.3.1 for Linux Centos 7. When I use
nc-config --libs and nf-config --libs, I get lnetcdf and lnetcdff.

But according to step-8 in the above link " Acquire and build the netCDF library, libnetcdf.a (and libnetcdff.a for netCDF-4.1 or later), for each configuration. The netCDF home page is Unidata | NetCDF For each configuration,copy or link the resulting libnetcdf.a (and libnetcdff.a, if you’re building netCDF version 4.1 or later) to the appropriate object directory $BASEDIR/${BIN}"

And Step-8 from read me file "get Netcdf (for netcdf, get both netcdf-fortran and netcdf-c) and build “libnetcdf.a” ".

How can I built “libnetcdf.a” and “libnetcdff.a” and link/copy to the I/O API $BIN folder?

Thanks

README.txt (7.7 KB)

For each of these, go to its top level directory and do the command
find . -name '.a’*
to find out where the netCDF build-system has stashed the library.

Sorry, that probably needs to go into the instructions…

Thank you so much. I got this
[root@adeq /]# find -name ‘libnetcdf.a’
./home/IqbalHossan/Desktop/Build_WRF/LIBRARIES/netcdf-4.1.3/liblib/.libs/libnetcdf.a
./home/IqbalHossan/Desktop/Build_WRF/LIBRARIES/netcdf/lib/libnetcdf.a
./home/IqbalHossan/miniconda3/pkgs/libnetcdf-4.7.1-nompi_h94020b1_101/lib/libnetcdf.a
./home/IqbalHossan/miniconda3/envs/ncl_stable/lib/libnetcdf.a
./root/Documents/softwares/netcdf-4.1.3/liblib/.libs/libnetcdf.a
./root/Documents/softwares/netcdf/lib/libnetcdf.a
[root@adeq /]# find -name ‘libnetcdff.a’
./home/IqbalHossan/Desktop/Build_WRF/LIBRARIES/netcdf-4.1.3/fortran/.libs/libnetcdff.a
./home/IqbalHossan/Desktop/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a
./home/IqbalHossan/miniconda3/pkgs/netcdf-fortran-4.4.5-h55403cb_1003/lib/libnetcdff.a
./home/IqbalHossan/miniconda3/envs/ncl_stable/lib/libnetcdff.a
./root/Documents/softwares/netcdf-4.1.3/fortran/.libs/libnetcdff.a
./root/Documents/softwares/netcdf/lib/libnetcdff.a

Perhaps I wasn’t clear that “its top level directory” meant the top-level directory of that netCDF C or Fortran build…

(8) in the I/O API installation instructions says "Pick one of each, and copy it to the relevant ioapi3-2/${BIN} directory. At a guess, you might pick
/root/Documents/softwares/netcdf/lib/libnetcdf.a
/root/Documents/softwares/netcdf/lib/libnetcdff.a

Thank you so much.

I did that.