Despite compiling WRF, netcdf, etc successfully, the ./configure fails on WPS with the following:
Your Fortran + NETCDF did not run successfully.
Running fort_netcdf indicates it can't find the libnetcdff library, although it seems to be there!
jt2@littleboy2 WPS]$ ./fort_netcdf
./fort_netcdf: error while loading shared libraries: libnetcdff.so.7: cannot open shared object file: No such file or directory
[jt2@littleboy2 WPS]$
It is compiled as follows:
$FC ${FFLAGS} fort_netcdf.f -o fort_netcdf -L${NETCDF}/lib $NETCDFF -lnetcdf > /dev/null 2>&1
FC is gfortran
FFLAGS are -ffree-form -O -fconvert=big-endian -frecord-marker=4
NETCDF is /home/jt2/Build_WRF/LIBRARIES/libs/netcdf
NETCDFF is -lnetcdff
[jt2@littleboy2 WPS]$ ls $NETCDF/lib
libnetcdf.a libnetcdff.la libnetcdff.so.7 libnetcdf.la libnetcdf.so libnetcdf.so.15.2.0
libnetcdff.a libnetcdff.so libnetcdff.so.7.0.0 libnetcdf.settings libnetcdf.so.15 pkgconfig
[jt2@littleboy2 WPS]$
Your Fortran + NETCDF did not run successfully.
Running fort_netcdf indicates it can't find the libnetcdff library, although it seems to be there!
jt2@littleboy2 WPS]$ ./fort_netcdf
./fort_netcdf: error while loading shared libraries: libnetcdff.so.7: cannot open shared object file: No such file or directory
[jt2@littleboy2 WPS]$
It is compiled as follows:
$FC ${FFLAGS} fort_netcdf.f -o fort_netcdf -L${NETCDF}/lib $NETCDFF -lnetcdf > /dev/null 2>&1
FC is gfortran
FFLAGS are -ffree-form -O -fconvert=big-endian -frecord-marker=4
NETCDF is /home/jt2/Build_WRF/LIBRARIES/libs/netcdf
NETCDFF is -lnetcdff
[jt2@littleboy2 WPS]$ ls $NETCDF/lib
libnetcdf.a libnetcdff.la libnetcdff.so.7 libnetcdf.la libnetcdf.so libnetcdf.so.15.2.0
libnetcdff.a libnetcdff.so libnetcdff.so.7.0.0 libnetcdf.settings libnetcdf.so.15 pkgconfig
[jt2@littleboy2 WPS]$