Hi Dmitri
I just tried to install netcdf package for octave in a new computer, and got the following error:
.....
make: Entering directory '/tmp/oct-z96xxP/netcdf/src'
/usr/bin/mkoctfile --verbose -DHAVE_OCTAVE_ -v -I/usr/local/netcdf/include __netcdf__.cc -L/usr/local/netcdf/lib -lnetcdf
g++ -c -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-4.0.0/octave/.. -I/usr/include/octave-4.0.0/octave -I/usr/include/hdf5/serial -I/usr/include/mpi -pthread -fopenmp -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -I/usr/local/netcdf/include -DHAVE_OCTAVE_ __netcdf__.cc -o __netcdf__.o
g++ -shared -Wl,-Bsymbolic -o __netcdf__.oct __netcdf__.o -L/usr/local/netcdf/lib -lnetcdf -L/usr/lib/x86_64-linux-gnu/octave/4.0.0 -L/usr/lib/x86_64-linux-gnu -loctinterp -loctave -Wl,-Bsymbolic-functions -Wl,-z,relro
make: Leaving directory '/tmp/oct-z96xxP/netcdf/src'
copyfile /tmp/oct-z96xxP/netcdf/src/__netcdf__.oct /tmp/oct-z96xxP/netcdf/inst/x86_64-pc-linux-gnu-api-v50+
/home/cdw/octave/netcdf-1.0.7/x86_64-pc-linux-gnu-api-v50+/__netcdf__.oct: failed to load: libnetcdf.so.7: cannot open shared object file: No such file or directory
error: called from 'doc_cache_create>create_cache' in file /usr/share/octave/4.0.0/m/help/doc_cache_create.m near line 106, column 18
>> quit
warning: load_path: /home/cdw/octave/netcdf-1.0.7/x86_64-pc-linux-gnu-api-v50+: No such file or directory
address@hidden:~$ locate libnetcdf.so.7
/home/cdw/Software/netcdf/C/liblib/.libs/libnetcdf.so.7
/home/cdw/Software/netcdf/C/liblib/.libs/libnetcdf.so.7.2.0
/usr/local/netcdf/lib/libnetcdf.so.7
/usr/local/netcdf/lib/libnetcdf.so.7.2.0
address@hidden:~$ ls /usr/local/netcdf/lib
libnetcdf.a libnetcdf.settings libnetcdf.so.7 pkgconfig
libnetcdf.la libnetcdf.so libnetcdf.so.7.2.0
address@hidden:~$