Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

Error while generating VR topography: "libnetcdff.so.7: cannot open shared object file: No such file or directory"

James King

James King
Member
Hi all,

I'm working with MUSICA and need to generate a topography file for my variable-resolution grid. I am following the instructions for the 'Topo' tool. When I run ./cube_to_target, the script fails with:

error while loading shared libraries: libnetcdff.so.7: cannot open shared object file: No such file or directory

I have the NetCDF module loaded but I am not sure what's causing this problem. Any tips would be most welcome. I'm running CESM2.2.0 on Cheyenne.

Thanks,

James
 

zarzycki

New Member
This error is likely because the version of cube_to_target being invoked was not compiled against the loaded netcdf libraries (i.e., what you see with module show). If you look at the topo tool source, you'll see that the make system is querying the current environment for linking...

Code:
FC = $(shell nc-config --fc)
LDFLAGS = $(shell nc-config --flibs)
FFLAGS = -c $(shell nc-config --fflags)

(if you run
Code:
nc-config --flibs
, you'll see what I mean)

I would suggest doing a git pull, make clean, then rebuilding the topo tool, then invoking the binaries.

Hope that helps!
 
Top