Hello,
I have encountered this exact error when running real.exe:
./real.exe: symbol lookup error: /share/apps/netcdf/4.2.1.1/intel/13.0.2.146/lib/libnetcdff.so.5: undefined symbol: ncopts
But here is the situation. I am running this on a supercomputer with loadable modules (including NetCDF) and have the same setup in my own account and have done successful runs. I am now trying to get everything set up in a colleague's account but have run into this error. Everything up to this point went smoothly (compiling WRF, generating wrf.exe, real.exe, compiling WPS, generating geogrid, ungrib, and metgrid).
This is WRF 3.9.1.1, compiler option 15 and WPS 3.9.1 compiler option 17. It does look like the NetCDF libraries are recognized, and are version 4.1.3, the identical libraries as the ones I use in my own setup.
I am at a loss to explain the different behavior. The grib files are different than mine, and so the met*.nc files are different, but briefly viewing them in ncview makes it seem like they're fine. Both are GFS analyses on a 0.5° grid, but from different years.
Any clues of what to try would be appreciated, but the ones suggested earlier in this thread were not necessary in my own setup.
Thank you,
Brian
P.S. When I issue "ldd real.exe" here is the output:
linux-vdso.so.1 => (0x00007fff613c8000)
libnetcdff.so.5 => /usr/lib64/libnetcdff.so.5 (0x00007f3023cde000)
libnetcdf.so.7 => /share/opt/MATLAB/R2017a/bin/glnxa64/libnetcdf.so.7 (0x00007f3020990000)
libmpigf.so.4 => /share/opt/intel/impi/4.1.1.036/intel64/lib/libmpigf.so.4 (0x00007f3020760000)
libmpi.so.4 => /share/opt/intel/impi/4.1.1.036/intel64/lib/libmpi.so.4 (0x00007f30200ff000)
libdl.so.2 => /share/sys65/root/lib64/libdl.so.2 (0x00000038d1c00000)
librt.so.1 => /share/sys65/root/lib64/librt.so.1 (0x00000038d2000000)
libpthread.so.0 => /share/sys65/root/lib64/libpthread.so.0 (0x00000038d1800000)
libm.so.6 => /share/sys65/root/lib64/libm.so.6 (0x00000038d2400000)
libc.so.6 => /share/sys65/root/lib64/libc.so.6 (0x00000038d1400000)
libgcc_s.so.1 => /share/sys65/root/lib64/libgcc_s.so.1 (0x00000038d6800000)
libnetcdf.so.6 => /usr/lib64/libnetcdf.so.6 (0x00000038d7400000)
libhdf5_hl.so.6 => /usr/lib64/libhdf5_hl.so.6 (0x00000038d7000000)
libhdf5.so.6 => /usr/lib64/libhdf5.so.6 (0x00007f301fb14000)
libcurl.so.4 => /usr/lib64/libcurl.so.4 (0x0000003786e00000)
libgfortran.so.3 => /usr/lib64/libgfortran.so.3 (0x00007f301f822000)
libz.so.1 => /share/sys65/root/lib64/libz.so.1 (0x00000038d1000000)
libssl.so.1.0.0 => /share/opt/MATLAB/R2017a/bin/glnxa64/libssl.so.1.0.0 (0x00007f301f5b0000)
libcrypto.so.1.0.0 => /share/opt/MATLAB/R2017a/bin/glnxa64/libcrypto.so.1.0.0 (0x00007f301f169000)
libhdf5_hl.so.8 => /share/opt/MATLAB/R2017a/bin/glnxa64/libhdf5_hl.so.8 (0x00007f301ef38000)
libhdf5.so.8 => /share/opt/MATLAB/R2017a/bin/glnxa64/libhdf5.so.8 (0x00007f301eaa7000)
/lib64/ld-linux-x86-64.so.2 (0x0000003296400000)
libidn.so.11 => /share/sys65/root/lib64/libidn.so.11 (0x00000038de000000)
libldap-2.4.so.2 => /usr/lib64/libldap-2.4.so.2 (0x0000003786600000)
libgssapi_krb5.so.2 => /share/sys65/root/lib64/libgssapi_krb5.so.2 (0x0000003b36600000)
libkrb5.so.3 => /share/sys65/root/lib64/libkrb5.so.3 (0x0000003b36e00000)
libk5crypto.so.3 => /share/sys65/root/lib64/libk5crypto.so.3 (0x0000003289e00000)
libcom_err.so.2 => /share/sys65/root/lib64/libcom_err.so.2 (0x0000003b36a00000)
libssl3.so => /usr/lib64/libssl3.so (0x0000003784e00000)
libsmime3.so => /usr/lib64/libsmime3.so (0x0000003785600000)
libnss3.so => /usr/lib64/libnss3.so (0x0000003783e00000)
libnssutil3.so => /usr/lib64/libnssutil3.so (0x0000003783a00000)
libplds4.so => /usr/lib64/libplds4.so (0x0000003783600000)
libplc4.so => /usr/lib64/libplc4.so (0x0000003784600000)
libnspr4.so => /usr/lib64/libnspr4.so (0x0000003784200000)
libssh2.so.1 => /usr/lib64/libssh2.so.1 (0x0000003b6dc00000)
liblber-2.4.so.2 => /usr/lib64/liblber-2.4.so.2 (0x0000003786200000)
libresolv.so.2 => /share/sys65/root/lib64/libresolv.so.2 (0x00000038d3000000)
libsasl2.so.2 => /usr/lib64/libsasl2.so.2 (0x0000003785e00000)
libkrb5support.so.0 => /share/sys65/root/lib64/libkrb5support.so.0 (0x0000003289200000)
libkeyutils.so.1 => /share/sys65/root/lib64/libkeyutils.so.1 (0x0000003289a00000)
libssl.so.10 => /usr/lib64/libssl.so.10 (0x0000003b6d400000)
libcrypto.so.10 => /usr/lib64/libcrypto.so.10 (0x0000003b6d000000)
libcrypt.so.1 => /share/sys65/root/lib64/libcrypt.so.1 (0x00000038d5400000)
libselinux.so.1 => /share/sys65/root/lib64/libselinux.so.1 (0x0000003286200000)
libfreebl3.so => /usr/lib64/libfreebl3.so (0x0000003782e00000)