<div dir="ltr"><div>Hi Berny,</div><div><br></div><div>The command ng4ex is actually a C-shell (csh) script, and the NCL distribution has a number of others (eg, ncl_filedump, ncl_convert2nc, etc). Lately we have been getting reports of these scripts causing a SEGV specifically on Ubuntu systems. We don't know why and we do not have ready access to an Ubuntu platform. I would be interested to know if other/any/all C-shell scripts cause the problem as well.</div><div><br></div><div>The workaround however is to replace the C-shell with the tahoe-shell - tcsh. That can be done in several ways:</div><div><br></div><div>i) at the system level, replace /usr/bin/csh with a symlink to /usr/bin/tcsh. <br></div><div><br></div><div>ii) patch the various ncl utilities by replacing the first line:</div><div><br></div><div> #!/bin/csh -f</div><div>with</div><div> #!/bin/tcsh -f</div><div><br></div><div>You can track down where these utilities are on the disk, by for example:</div><div><br></div><div> which ng4ex</div><div><br></div><div>I hope that helps. I am going to load up an Ubuntu virtual machine and see if I can replicate the problem.</div><div><br></div><div>Rick</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 5, 2019 at 1:12 PM Berny Chaimite via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@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 dir="ltr">...which ncl, output is: /usr/local/ncarg/bin/ncl</div><div dir="ltr">NCAR Command Language Version 6.5.0<br><div><div dir="ltr" class="gmail-m_-8233138468307051845gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><span style="background-color:rgb(255,255,255)"><b style="color:rgb(204,204,204)"> </b><b><font size="2" face="monospace, monospace" color="#999999"><span style="color:rgb(255,255,255)">-----</span></font></b></span><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"></span></span><span><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"></span></span></span><span><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"></span></span></span><span><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"></span></span></span><span><span><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"></span></span></span></span><span></span><span><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"></span></span></span><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span></span><span><span><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"><font size="2" face="monospace, monospace">----------------------------------------</font></span></span></span></span><br><div style="margin-left:80px"><span><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"></span></span></span><span><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"><font size="2" face="monospace, monospace">Berny A. Chaimite</font></span></span></span><br></div><span><span style="color:rgb(153,153,153)"></span></span><span><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"><font size="2" face="monospace, monospace">----------------------------------------</font></span></span><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"></span></span></span><br><span></span></blockquote></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"><font size="2" face="monospace, monospace">Atmospheric and Climate Sciences Student</font></span></span><br><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"><font size="2" face="monospace, monospace">Department of Physics </font></span></span><br><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"><font size="2" face="monospace, monospace">Eduardo Mondlane University</font></span></span><br></blockquote></div><div><div dir="ltr"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"><font size="2" face="monospace, monospace"><u><br>Contact</u>: </font></span></span><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"></span></span></div></blockquote><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"><font size="2" face="monospace, monospace"><font size="1">+258 </font>846041931/870434233 <br></font><i><font size="2" face="monospace, monospace"></font></i></span></span></blockquote><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"><font size="2" face="monospace, monospace">Maputo, Mozambique </font><b><font size="2" face="monospace, monospace"><br></font></b></span></span></blockquote><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><blockquote></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px"></blockquote><blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px"></blockquote><blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px"></blockquote><blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px"></blockquote><blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px"></blockquote></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Berny Chaimite <<a href="mailto:bchaimite@gmail.com" target="_blank">bchaimite@gmail.com</a>> escreveu no dia sexta, 5/07/2019 à(s) 21:06:<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><font size="4">Hi, I'm installing ncl 6.5 (the files is <i>ncl_ncarg-6.5.0-Debian9.4_64bit_gnu630.tar.gz</i>) in ubuntu 19.04 (<b><i>uname -m</i></b>: <span style="background-color:rgb(255,255,0)">x86_64</span>; <b><i>gcc -v</i></b>: <span style="background-color:rgb(255,255,0)">gcc version 8.3.0 (Ubuntu 8.3.0-6ubuntu1)</span> ). <br></font></div><div><font size="4"><font size="4">In <i>.bashrc</i> file Im added: "export NCARG_ROOT=/usr/local/ncarg"<br> "export PATH=$NCARG_ROOT/bin:~/bin:/usr/bin:/bin/etc:/usr/X11R6/bin:/usr/local/bin"</font></font></div><div><font size="4"><font size="4"><br></font></font></div><div><font size="4"><font size="4"><font size="4">When I run <i><span style="background-color:rgb(255,255,0)">ng4ex gsun01n</span></i> in command line, appears: <br></font></font></font></div><div><font size="4"><font size="4"><font size="4"><br></font></font></font></div><div><font size="4"><font size="4"><font size="4"><span style="color:rgb(255,255,255)"><span style="background-color:rgb(116,27,71)">NCAR Graphics NCL Example <gsun01n><br>Segmentation fault (core dumped)<br>This example was set up to display the output to an<br>X11 window.<br> Copying gsun01n.ncl<br>cp: cannot stat '/usr/local/ncarg/lib/ncarg/nclex//gsun01n.ncl': No such file or directory<br>Running NCL...<br>gsun01n.ncl: No such file or directory.<br>ncl failed.</span></span><br></font></font></font></div><div><font size="4"><font size="4"><font size="4"><br></font></font></font></div><div><font size="4"><font size="4"><font size="4"><br></font></font></font></div><div><font size="4"><font size="4"><font size="4">Regards,</font></font></font></div><div><font size="4"><font size="4"><font size="4">Berny Chaimite<br></font></font></font></div><div><div dir="ltr" class="gmail-m_-8233138468307051845gmail-m_-4461930532848240085gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><span style="background-color:rgb(255,255,255)"><b style="color:rgb(204,204,204)"> </b><b><font size="2" face="monospace, monospace" color="#999999"><span style="color:rgb(255,255,255)">-----</span></font></b></span><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"></span></span><span><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"></span></span></span><span><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"></span></span></span><span><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"></span></span></span><span><span><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"></span></span></span></span><span></span><span><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"></span></span></span><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span></span><span><span><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"><font size="2" face="monospace, monospace">----------------------------------------</font></span></span></span></span><br><div style="margin-left:80px"><span><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"></span></span></span><span><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"><font size="2" face="monospace, monospace">Berny A. Chaimite</font></span></span></span><br></div><span><span style="color:rgb(153,153,153)"></span></span><span><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"><font size="2" face="monospace, monospace">----------------------------------------</font></span></span><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"></span></span></span><br><span></span></blockquote></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"><font size="2" face="monospace, monospace">Atmospheric and Climate Sciences Student</font></span></span><br><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"><font size="2" face="monospace, monospace">Department of Physics </font></span></span><br><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"><font size="2" face="monospace, monospace">Eduardo Mondlane University</font></span></span><br></blockquote></div><div><div dir="ltr"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"><font size="2" face="monospace, monospace"><u><br>Contact</u>: </font></span></span><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"></span></span></div></blockquote><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"><font size="2" face="monospace, monospace"><font size="1">+258 </font>846041931/870434233 <br></font><i><font size="2" face="monospace, monospace"></font></i></span></span></blockquote><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)"><font size="2" face="monospace, monospace">Maputo, Mozambique </font><b><font size="2" face="monospace, monospace"><br></font></b></span></span></blockquote><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><blockquote></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px"></blockquote><blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px"></blockquote><blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px"></blockquote><blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px"></blockquote><blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px"></blockquote></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></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></blockquote></div>