<div dir="ltr">Thanks for the suggestion. Unfortunately, no surprises or clues. Here is the output I got:<div><br></div><div><div>(0)<span style="white-space:pre">       </span>/usr</div><div>/usr</div><div>NCARG_ROOT=/usr</div></div><div><br></div><div>Maybe I will try the precompiled binary.</div><div>cheers,</div><div>Dave</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 16, 2018 at 1:38 PM, Dave Allured - NOAA Affiliate <span dir="ltr"><<a href="mailto:dave.allured@noaa.gov" target="_blank">dave.allured@noaa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">On my institutional system, the sys admins will sometimes put NCL inside a wrapper script, invisible to casual use.  This is done specifically to be able to redefine $NCARG_ROOT and make other possible changes, to make a working NCL.  You might check to see if something like this is active in your ubuntu install, and not working right.  The "where ncl" command may be useful.<div><br></div><div>You could try a test script with these tests, without first trying to "load" anything.</div><div><br></div><div>    print (getenv ("NCARG_ROOT"))</div><div>    system ("echo $NCARG_ROOT")</div><div>    system ("env | grep NCARG")</div><div><br></div><div>--Dave A.</div><div><div class="h5"><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 16, 2018 at 4:11 PM, Kevin Hallock via ncl-install <span dir="ltr"><<a href="mailto:ncl-install@ucar.edu" target="_blank">ncl-install@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Dave,<div><br></div><div>Are you using the <font face="Menlo">ncl-ncarg</font> package provided via apt on Ubuntu? I just tried running the same ‘<font face="Menlo">load "$NCARG_ROOT/lib/ncarg/nclscri<wbr>pts/csm/gsn_code.ncl"</font>’ command on an Ubuntu 16.04 system using NCL 6.3.0 from the <font face="Menlo">ncl-ncarg</font> apt package and experienced the same error.</div><div><br></div><div>I was, however, able to successfully run the “load” command on the same machine using one of our <a href="http://ncl.ucar.edu/Download/" target="_blank">precompiled binaries</a> (specifically <font face="Menlo">ncl_nca<wbr>rg-6.4.0-Debian8.6_64bit_gnu49<wbr>2.tar.gz</font> for Ubuntu 16.04).</div><div><br></div><div>I’m not sure why the <font face="Menlo">ncl-ncarg</font> package seems to be broken, but unfortunately we are not the maintainers of that package. If you continue to experience issues like this, I would strongly recommend using either a <a href="http://ncl.ucar.edu/Download/" target="_blank">precompiled NCL binary</a> or <a href="http://ncl.ucar.edu/Download/conda.shtml" target="_blank">installing NCL via conda</a>.</div><div><br></div><div>Additionally, the <font face="Menlo">ncl-ncarg</font> package provides NCL v6.3.0, which was released in March 2015. Both of the alternative installation methods I linked to currently offer NCL v6.4.0 (released February 2017) and will also offer NCL v6.5.0 for download when it is released in the near future.</div><div><br></div><div>I hope this helps!</div><div>Kevin</div><div><br><div><blockquote type="cite"><div>On Feb 16, 2018, at 3:36 PM, Dave Burns via ncl-install <<a href="mailto:ncl-install@ucar.edu" target="_blank">ncl-install@ucar.edu</a>> wrote:</div><br class="m_-7885993888983076921m_-3768259815080657095Apple-interchange-newline"><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_extra">Hello.</div><div class="gmail_extra">Executing ncl on a newly installed ubuntu box and an old ncl file that used to work generates this error:</div><div class="gmail_extra">>fatal:Could not open ($NCARG_ROOT/lib/ncarg/nclscri<wbr>pts/csm/gsn_code.ncl)</div><div class="gmail_extra">>fatal:error at line 2 in file proj1.ncl</div><div class="gmail_extra"><br></div><div class="gmail_extra">That's odd, because NCARG_ROOT is defined and that file is openable and has permissive permissions for all users:</div><div class="gmail_extra">>user@host:~/Downloads/1200/02<wbr>14$ echo $NCARG_ROOT</div><div class="gmail_extra">/usr</div><div class="gmail_extra"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">>user@host</span>:~/Downloads/1200/02<wbr>14$ ls -la $NCARG_ROOT/lib/ncarg/nclscrip<wbr>ts/csm/gsn_code.ncl</div><div class="gmail_extra">-rwxr-xr-x 1 root root 490093 Jan 28  2016 /usr/lib/ncarg/nclscripts/csm/<wbr>gsn_code.ncl</div><div class="gmail_extra">><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">user@host</span>:~/Downloads/1200/02<wbr>14$ head  $NCARG_ROOT/lib/ncarg/nclscrip<wbr>ts/csm/gsn_code.ncl</div><div class="gmail_extra">;</div><div class="gmail_extra">;      $Id: gsn_code.ncl,v 1.238.4.3 2010-05-06 17:13:26 haley Exp $</div><div class="gmail_extra">;;;;;</div><div class="gmail_extra"><br></div><div class="gmail_extra">So I am confused. The only way "could not open" would make sense was if ncl was opening the file for write access, which still doesn't make sense.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Here are the first lines from the ncl file:</div><div class="gmail_extra"><div class="gmail_extra"><br></div><div class="gmail_extra">load "$NCARG_ROOT/lib/ncarg/nclscri<wbr>pts/csm/gsn_code.ncl"      ; These four libraries are automatically</div><div class="gmail_extra">load "$NCARG_ROOT/lib/ncarg/nclscri<wbr>pts/csm/gsn_csm.ncl"       ; loaded from NCL V6.4.0 onward.</div><div class="gmail_extra">load "$NCARG_ROOT/lib/ncarg/nclscri<wbr>pts/csm/contributed.ncl"   ; No need for user to explicitly load.</div><div><br></div><div><br></div><div>How do I fix this?</div><div>thanks,</div><div>Dave</div></div></div></div></div></blockquote></div></div></div></blockquote></div></div></div></div></div></div>
</blockquote></div><br></div>