<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>
<div>
<div>Thanks all, </div>
<div><br>
</div>
<div><span class="Apple-style-span" style="font-family: Calibri; font-size: medium; ">export LD_LIBRARY_PATH=path to your netcdf/lib directory:$LD_LIBRARY_PATH</span></div>
<div><span class="Apple-style-span" style="font-family: Calibri; font-size: medium; "><br>
</span></div>
<div><span class="Apple-style-span" style="font-family: Calibri; font-size: medium; ">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.</span></div>
<div><span class="Apple-style-span" style="font-family: Calibri; font-size: medium; "><br>
</span></div>
<div><span class="Apple-style-span" style="font-family: Calibri; font-size: medium; ">Dave</span></div>
<div><span class="Apple-style-span" style="font-family: Calibri; font-size: medium; "><br>
</span></div>
<div>
<div><font class="Apple-style-span" color="rgb(0, 0, 0)"><font class="Apple-style-span" face="Calibri">Dr. David J Smith</font></font></div>
<div><font class="Apple-style-span" color="rgb(0, 0, 0)"><font class="Apple-style-span" face="Calibri"><span class="Apple-style-span" style="font-size: 14px;">College of Science and Mathematics</span></font></font></div>
<div><font class="Apple-style-span" color="rgb(0, 0, 0)"><font class="Apple-style-span" face="Calibri"><span class="Apple-style-span" style="font-size: 14px;">University of the Virgin Islands</span></font></font></div>
<div><font class="Apple-style-span" color="rgb(0, 0, 0)"><font class="Apple-style-span" face="Calibri"><span class="Apple-style-span" style="font-size: 14px;">St. Thomas, VI 00802</span></font></font></div>
<div><font class="Apple-style-span" color="rgb(0, 0, 0)"><font class="Apple-style-span" face="Calibri"><span class="Apple-style-span" style="font-size: 14px;">340 693-1257</span></font></font></div>
<div><font class="Apple-style-span" color="rgb(0, 0, 0)"><font class="Apple-style-span" face="Calibri"><span class="Apple-style-span" style="font-size: 14px;">dsmith@uvi.edu</span></font></font></div>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Dominikus Heinzeller <<a href="mailto:xena.the.fire.goddess@googlemail.com">xena.the.fire.goddess@googlemail.com</a>><br>
<span style="font-weight:bold">Date: </span>Thu, 16 Oct 2014 17:01:19 +0200<br>
<span style="font-weight:bold">To: </span>Dave Smith <<a href="mailto:dsmith@uvi.edu">dsmith@uvi.edu</a>><br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:wrf-users@ucar.edu">wrf-users@ucar.edu</a>" <<a href="mailto:wrf-users@ucar.edu">wrf-users@ucar.edu</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Wrf-users] metgrid libnetcdff.so.5 can't find file<br>
</div>
<div><br>
</div>
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Hi David,
<div><br>
</div>
<div>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 <span style="font-size: 14px; font-family: Calibri, sans-serif; ">/usr/local/netcdf/lib
in your case)?</span></div>
<div><span style="font-size: 14px; font-family: Calibri, sans-serif; "><br>
</span></div>
<div><span style="font-size: 14px; font-family: Calibri, sans-serif; ">Cheers</span></div>
<div><span style="font-size: 14px; font-family: Calibri, sans-serif; "><br>
</span></div>
<div><span style="font-size: 14px; font-family: Calibri, sans-serif; ">Dom</span></div>
<div><br>
<div>
<div>On 16/10/2014, at 3:53 pm, David Smith <<a href="mailto:dsmith@uvi.edu">dsmith@uvi.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>
<div>Hi,</div>
<div><br>
</div>
<div> I successfully ran ungrib for a recent 3-day forecast, but when I tried to run metgrid, I got the following error.</div>
<div><br>
</div>
<div>
<div>./metgrid.exe: error while loading shared libraries: libnetcdff.so.5: cannot open shared object file: No such file or directory</div>
</div>
<div><br>
</div>
<div> 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. </div>
<div><br>
</div>
<div>Thanks for any ideas.</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>/aspendata/install/netcdf-fortran-4.2/fortran/.libs/libnetcdff.so.5</div>
<div>/aspendata/install/netcdf-fortran-4.2/fortran/.libs/libnetcdff.so.5.3.1</div>
<div>/usr/local/netcdf/lib/libnetcdff.so.5</div>
<div>/usr/local/netcdf/lib/libnetcdff.so.5.1.0</div>
<div>/usr/local/netcdf-4.1.3/fortran/.libs/libnetcdff.so.5</div>
<div>/usr/local/netcdf-4.1.3/fortran/.libs/libnetcdff.so.5.1.0</div>
<div>/usr/local/netcdf-4.1.3/fortran/.libs/libnetcdff.so.5.1.0T</div>
<div>/usr/local/netcdf-4.2.1.1/gcc/lib/libnetcdff.so.5</div>
<div>/usr/local/netcdf-4.2.1.1/gcc/lib/libnetcdff.so.5.3.1</div>
<div>/usr/local/savenetcdf-4.1.3/gcc/lib/libnetcdff.so.5</div>
<div>/usr/local/savenetcdf-4.1.3/gcc/lib/libnetcdff.so.5.1.0</div>
<div>/usr/local/savenetcdf-4.1.3/intel/lib/libnetcdff.so.5</div>
<div>/usr/local/savenetcdf-4.1.3/intel/lib/libnetcdff.so.5.1.0</div>
</div>
<div><br>
</div>
<div>
<div><font class="Apple-style-span" color="rgb(0, 0, 0)"><font class="Apple-style-span" face="Calibri">Dr. David J Smith</font></font></div>
<div><font class="Apple-style-span" color="rgb(0, 0, 0)"><font class="Apple-style-span" face="Calibri">College of Science and Mathematics</font></font></div>
<div><font class="Apple-style-span" color="rgb(0, 0, 0)"><font class="Apple-style-span" face="Calibri">University of the Virgin Islands</font></font></div>
<div><font class="Apple-style-span" color="rgb(0, 0, 0)"><font class="Apple-style-span" face="Calibri">St. Thomas, VI 00802</font></font></div>
<div><font class="Apple-style-span" color="rgb(0, 0, 0)"><font class="Apple-style-span" face="Calibri">340 693-1257</font></font></div>
<div><font class="Apple-style-span" color="rgb(0, 0, 0)"><font class="Apple-style-span" face="Calibri"><a href="mailto:dsmith@uvi.edu">dsmith@uvi.edu</a></font></font></div>
</div>
</div>
</div>
<div><br>
</div>
</div>
_______________________________________________<br>
Wrf-users mailing list<br>
<a href="mailto:Wrf-users@ucar.edu">Wrf-users@ucar.edu</a><br>
<a href="http://mailman.ucar.edu/mailman/listinfo/wrf-users">http://mailman.ucar.edu/mailman/listinfo/wrf-users</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</span>
</body>
</html>