[Wrf-users] metgrid libnetcdff.so.5 can't find file
David Smith
dsmith at uvi.edu
Thu Oct 16 09:21:33 MDT 2014
Thanks all,
export LD_LIBRARY_PATH=path to your netcdf/lib directory:$LD_LIBRARY_PATH
Did the trick. Now I just have to figure out why that path is no longer being set in the WRF environment module we use.
Dave
Dr. David J Smith
College of Science and Mathematics
University of the Virgin Islands
St. Thomas, VI 00802
340 693-1257
dsmith at uvi.edu
From: Dominikus Heinzeller <xena.the.fire.goddess at googlemail.com<mailto:xena.the.fire.goddess at googlemail.com>>
Date: Thu, 16 Oct 2014 17:01:19 +0200
To: Dave Smith <dsmith at uvi.edu<mailto:dsmith at uvi.edu>>
Cc: "wrf-users at ucar.edu<mailto:wrf-users at ucar.edu>" <wrf-users at ucar.edu<mailto:wrf-users at ucar.edu>>
Subject: Re: [Wrf-users] metgrid libnetcdff.so.5 can't find file
Hi David,
This means that metgrid can't find libnetcdff.so.5. On linux you can also run "ldd metgrid.exe" to check this. Maybe the location of your libnetcdff.so.5 library is no longer in the system search path (environment variable LD_LIBRARY_PATH - should contain /usr/local/netcdf/lib in your case)?
Cheers
Dom
On 16/10/2014, at 3:53 pm, David Smith <dsmith at uvi.edu<mailto:dsmith at uvi.edu>> wrote:
Hi,
I successfully ran ungrib for a recent 3-day forecast, but when I tried to run metgrid, I got the following error.
./metgrid.exe: error while loading shared libraries: libnetcdff.so.5: cannot open shared object file: No such file or directory
Does this mean metgrid can't find libnetcdff.so.5 , or that libnetcdff.so.5 can't find a file or directory? One suggestion I found on wrfforum for a similar error suggested that the NETCDF environment was not properly set. But it was during the original compilation and metgrid has run without any errors for all previous runs. Does anyone have an idea of what might have happened to cause this error? (There was no other major installation/compilation that I know of that might have clobbered some links. I did try doing soft links to all the relevant libnetcdff.so.5 files below, but that didn't help.
Thanks for any ideas.
/aspendata/install/netcdf-fortran-4.2/fortran/.libs/libnetcdff.so.5
/aspendata/install/netcdf-fortran-4.2/fortran/.libs/libnetcdff.so.5.3.1
/usr/local/netcdf/lib/libnetcdff.so.5
/usr/local/netcdf/lib/libnetcdff.so.5.1.0
/usr/local/netcdf-4.1.3/fortran/.libs/libnetcdff.so.5
/usr/local/netcdf-4.1.3/fortran/.libs/libnetcdff.so.5.1.0
/usr/local/netcdf-4.1.3/fortran/.libs/libnetcdff.so.5.1.0T
/usr/local/netcdf-4.2.1.1/gcc/lib/libnetcdff.so.5
/usr/local/netcdf-4.2.1.1/gcc/lib/libnetcdff.so.5.3.1
/usr/local/savenetcdf-4.1.3/gcc/lib/libnetcdff.so.5
/usr/local/savenetcdf-4.1.3/gcc/lib/libnetcdff.so.5.1.0
/usr/local/savenetcdf-4.1.3/intel/lib/libnetcdff.so.5
/usr/local/savenetcdf-4.1.3/intel/lib/libnetcdff.so.5.1.0
Dr. David J Smith
College of Science and Mathematics
University of the Virgin Islands
St. Thomas, VI 00802
340 693-1257
dsmith at uvi.edu<mailto:dsmith at uvi.edu>
_______________________________________________
Wrf-users mailing list
Wrf-users at ucar.edu<mailto:Wrf-users at ucar.edu>
http://mailman.ucar.edu/mailman/listinfo/wrf-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/wrf-users/attachments/20141016/13207f4e/attachment.html
More information about the Wrf-users
mailing list