<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Yunpeng,<div class=""><br class=""></div><div class="">I think that the <font face="Menlo" class="">$NCARG_LIB</font> and <font face="Menlo" class="">$NCARG_INC</font> environment variables are unnecessary in your situation; just setting <font face="Menlo" class="">$NCARG_ROOT</font> should be enough.</div><div class=""><br class=""></div><div class="">NCL makes certain assumptions about the directory structure under <font face="Menlo" class="">$NCARG_ROOT</font>, but <font face="Menlo" class="">$NCARG_LIB</font> and <font face="Menlo" class="">$NCARG_INC</font> (as well as <a href="https://www.ncl.ucar.edu/Document/Language/env.shtml" class="">several other variables</a>) can be used to override these assumptions. Normally, when NCL tries to load the sysresfile or access color maps, it assumes that the relevant files are located in <font face="Menlo" class="">$NCARG_ROOT/lib/ncarg</font>.</div><div class=""><br class=""></div><div class="">However, when <font face="Menlo" class="">$NCARG_LIB</font> is set, any file that is usually found under <font face="Menlo" class="">$NCARG_ROOT/lib</font> is instead assumed to be located in the same relative path under <font face="Menlo" class="">$NCARG_LIB</font>. For example, instead of finding the sysresfile at <font face="Menlo" class="">$NCARG_ROOT/lib/ncarg/sysresfile</font> (<font face="Menlo" class="">/Users/yunpengshan/equipment/researchtools/NCL640/<b class="">lib</b>/ncarg/sysresfile</font>), NCL assumes it should look for <font face="Menlo" class="">$NCARG_LIB/ncarg/sysresfile</font> (<font face="Menlo" class="">/Users/yunpengshan/equipment/researchtools/NCL640/<b class="">bin</b>/ncarg/sysresfile</font>), and I believe this may be causing the warnings you observed.</div><div class=""><br class=""></div><div class="">I hope this helps,</div><div class="">Kevin</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 19, 2017, at 11:21 AM, Yunpeng Shan <<a href="mailto:yunpengshan2014@gmail.com" class="">yunpengshan2014@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hello Kevin,<div class=""><br class=""></div><div class="">This is the output of your command:</div><div class=""><div style="margin: 0px; font-size: 24px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">NCARG_ROOT=/Users/yunpengshan/equipment/researchtools/NCL640/</span></div><div style="margin: 0px; font-size: 24px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">NCARG_LIB=/Users/yunpengshan/equipment/researchtools/NCL640//bin</span></div><div style="margin: 0px; font-size: 24px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">NCARG_INC=/Users/yunpengshan/equipment/researchtools/NCL640//include</span></div></div><div class=""><span style="font-variant-ligatures:no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures:no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures:no-common-ligatures" class="">I set up the environment like I did for the Linux system. But it does not work well in Mac</span></div><div class=""><span style="font-variant-ligatures:no-common-ligatures" class=""><br class=""></span></div><div class="">Thank you very much for your help</div><div class=""><br class=""></div><div class="">With best wishes</div><div class=""><br class=""></div><div class="">Yunpeng Shan</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Thu, Oct 19, 2017 at 9:38 AM, Kevin Hallock <span dir="ltr" class=""><<a href="mailto:hallock@ucar.edu" target="_blank" class="">hallock@ucar.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Hi Yunpeng,<div class=""><br class=""></div><div class="">Could you please run the command “<font face="Menlo" class="">env | grep NCARG</font>” and reply with the output?</div><div class=""><br class=""></div><div class="">Based on the path of your NCL640 directory, the sysresfile file and colormaps directory should exist in the /Users/yunpengshan/equipment/<wbr class="">researchtools/NCL640/<b class="">lib</b>/ncarg directory. I wonder if one of the $NCARG_* environment variables could be causing this.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Kevin </div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class=""><div class="h5"><div class="">On Oct 19, 2017, at 9:45 AM, Yunpeng Shan <<a href="mailto:yunpengshan2014@gmail.com" target="_blank" class="">yunpengshan2014@gmail.com</a>> wrote:</div><br class="m_4350946395430719737Apple-interchange-newline"></div></div><div class=""><div class=""><div class="h5"><div dir="ltr" class=""><span style="font-size:12.8px" class="">Hello, </span><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class="">I attempted to install a NCL 6.4.0 on my MacBook Pro. All of the installation processes were successful. But when I run the ncl command, I was informed by some warnings:</div><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class=""><div style="margin:0px;font-size:24px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">warning:Unable to load System Resource File /Users/yunpengshan/equipment/r<wbr class="">esearchtools/NCL640/bin/ncarg/<wbr class="">sysresfile</span></div><div style="margin:0px;font-size:24px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">warning:WorkstationClassInitia<wbr class="">lize:Unable to access rgb color database - named colors unsupported:[errno=2]</span></div><div style="margin:0px;font-size:24px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">warning:["Palette.c":1850]:Nhl<wbr class="">LoadColormapFiles: Invalid colormap directory: /Users/yunpengshan/equipment/r<wbr class="">esearchtools/NCL640/bin/ncarg/<wbr class="">colormaps</span></div></div><div style="font-size:12.8px" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""><br class=""></span></div><div style="font-size:12.8px" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">I checked the path in bin/ there is no a folder named ncarg or colormaps. </span></div><div style="font-size:12.8px" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""><br class=""></span></div><div style="font-size:12.8px" class="">Please help me to solve such a problem.</div><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class="">Thank you very much for your help.</div><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class="">With best wishes</div><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class="">Yunpeng Shan</div></div></div></div>
______________________________<wbr class="">_________________<br class="">ncl-install mailing list<br class="">List instructions, subscriber options, unsubscribe:<br class=""><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-install" target="_blank" class="">http://mailman.ucar.edu/<wbr class="">mailman/listinfo/ncl-install</a><br class=""></div></blockquote></div><br class=""></div></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></body></html>