<div dir="ltr"><div>f you do a</div><div><br></div><div>%> <b>which</b> WRAPIT</div><div><br></div><div>you will see that it is a 'csh' script</div><div><br></div><div>%> less /path-to-WRAPIT/WRAPIT</div><div><br></div><div>you will see that the 1st line is</div><div><br></div><div><b>#!/bin/csh -f</b><br></div><div><br></div><div>A person sent the following offline. Although <b>ncl_filedump </b>is mentioned, the same issue applies to <b>WRAPIT</b><br></div><div><br></div><div>---</div><div><div>Hi,</div><div><br></div><div>I might add that we have been getting 
recent reports of<b> ncl_filedump</b> SEGV-ing on Ubuntu systems. We don't have
 access at the moment to such a system to verify and track down the 
problem. However, as I recall, the issue is related to the C-shell (csh)
 on those systems (ncl_filedump is actually a C-shell script that 
ultimately calls into NCL to do the work).  If your system is indeed 
Ubuntu, a work-around seems to be to use the tahoe-shell instead 
(<span class="gmail-il">tcsh</span>).  That can be done by editing ncl_filedump, r<span style="color:rgb(0,0,255)"><b>eplacing the first 
line:</b></span></div><div><span style="color:rgb(0,0,255)"><b><br></b></span></div><div><span style="color:rgb(0,0,255)"><b>    #!/bin/csh -f</b></span></div><div><span style="color:rgb(0,0,255)"><b><br></b></span></div><div><span style="color:rgb(0,0,255)"><b>with <br></b></span></div><div><span style="color:rgb(0,0,255)"><b><br></b></span></div><div><span style="color:rgb(0,0,255)"><b>   #!/bin/<span class="gmail-il">tcsh</span> -f</b></span></div><div><br></div><div>----</div><div>This 'fix' also works for <b>ncl_convert2nc</b> and <b>ncl_filedump</b><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 13, 2019 at 7:39 AM Dennis Shea <<a href="mailto:shea@ucar.edu">shea@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>This does work one two systems and not on the third.</div><div>Looks like a library is missing:  <font face="monospace">libmpc.so.2</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">The following is for people that know about installation issues. <br></font></div><div><font face="monospace">I have attached the two codes used by WRAPIT.<br></font></div><div><br></div><div>What version of NCL are you using?</div><div>Also, the output from <br></div><div><br></div><div>%> uname -a</div><div>%> gcc --version</div><div>%> ncl -V<br></div><div><br></div><div>----</div><div><b>The following is <span style="color:rgb(0,0,255)">successful</span></b><br></div><div><b>%></b> uname -a<br>Linux <a href="http://logan.cgd.ucar.edu" target="_blank">logan.cgd.ucar.edu</a> 3.10.0-957.12.1.el7.x86_64 #1 SMP Mon Apr 29 14:59:59 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux</div><div><br></div><div><b>%></b> gcc --version<br>gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36)</div><div><br></div><div><b>%></b> ncl -V<br>6.5.0</div><div><br></div><div><b>WRAPIT</b> cal_fr.stub cal_fr.f90<br> <br>WRAPIT Version: 120209<br>COMPILING cal_fr.f90<br>LINKING<br>END WRAPIT</div><div>---</div><div><b>%></b> uname -a<br>Linux cheyenne4 3.12.62-60.64.8-default #1 SMP Tue Oct 18 12:21:38 UTC 2016 (42e0a66) x86_64 x86_64 x86_64 GNU/Linux</div><div><br></div><div>%> gcc --version<br>gcc (SUSE Linux) 4.8.5</div><div><br></div><div>%> ncl -V<br><b>6.6.2</b></div><div><b></b><br>%> <b>WRAPIT</b> cal_fr.stub cal_fr.f90<br> <br>WRAPIT Version: 120209<br>COMPILING cal_fr.f90<br>LINKING<br>END WRAPIT<br>-</div><div>---<br></div><div><b>The following <span style="color:rgb(0,0,255)">fails</span>.</b></div><div><b><br></b></div><div><b>%>  </b>uname -a<b><br></b>Darwin sherkin 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64</div><div><br></div><div><b>%></b> gcc --version<br>gcc (GCC) 6.2.0</div><div><br></div><div>%> <span style="color:rgb(0,0,255)"><b>WRAPIT</b></span> cal_fr.stub cal_fr.f90<br> <br>WRAPIT Version: 120209<br><span style="color:rgb(255,0,0)"><b>WRAPIT.c:4:19: fatal error: stdio.h: No such file or directory<br> #include <stdio.h></b></span><br>                   ^<br>compilation terminated.<br>COMPILING cal_fr.f90<br>LINKING<br>gcc: error: WRAPIT.o: No such file or directory<br>rm: WRAPIT.o: No such file or directory<br>END WRAPIT<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 12, 2019 at 9:47 PM flyeh <<a href="mailto:flyeh@gate.sinica.edu.tw" target="_blank">flyeh@gate.sinica.edu.tw</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u><div><div><span style="background-color:rgb(255,255,255)"><font face="monospace">Hello,</font></span></div><div><span style="background-color:rgb(255,255,255)"><font face="monospace"><br></font></span></div><div><font face="monospace"><span class="gmail-m_6361005625488341171gmail-m_-3512249562903525337quotelev1" style="background-color:rgb(255,255,255)">I am trying to do a WRAPIT on the attached code, but it fails with :</span><br></font></div><div><div><font face="monospace"><br></font></div><div><font face="monospace">WRAPIT Version: 120209</font></div><div><font face="monospace">/data1/opt/gcc-4.8.5/libexec/gcc/x86_64-unknown-linux-gnu/4.8.5/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory COMPILING cal_fr.f90</font></div><div><font face="monospace">/data1/opt/gcc-4.8.5/libexec/gcc/x86_64-unknown-linux-gnu/4.8.5/f951: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory LINKING</font></div><div><font face="monospace">gcc: error: WRAPIT.o: No such file or directory</font></div><div><font face="monospace">gcc: error: cal_fr.o: No such file or directory</font></div><div><font face="monospace">rm: cannot remove `WRAPIT.o': No such file or directory</font></div><div><font face="monospace">rm: cannot remove `cal_fr.o': No such file or directory</font></div><div><font face="monospace">END WRAPIT</font></div></div><div><font face="monospace"><br></font></div><div><pre>Does anyone know how to fix it?</pre><pre><br></pre><pre>Tanks in advance, </pre><pre>Regards,</pre><pre>Ariel </pre></div></div>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>
</blockquote></div>