<div dir="ltr"><div class="gmail_default" style="font-size:small">Dachao,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">In the future, please post NCL installation questions to <a href="mailto:ncl-install@ucar.edu">ncl-install@ucar.edu</a> and not <a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>. You need to subscribe first:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style=""><a href="http://www.ncl.ucar.edu/Support/email_lists.shtml">http://www.ncl.ucar.edu/Support/email_lists.shtml</a><br></div><div class="gmail_default" style=""><br></div><div class="gmail_default" style="">I had to google this error, because I'm not sure what the cause of it might be. You might also want to try this, because there were several possible causes of this error, along with suggested solutions. The main cause seems to be if you've used "brew" to install some other local software, which then may have caused a libpng library to get installed in a different location with a different version than what XQuartz provides. If you have DYLD_LIBRARY_PATH set to point to the "brew" location of your png library, then NCL might fail because it wants the XQuartz version of this library.</div><div class="gmail_default" style=""><br></div><div class="gmail_default" style="">You should have this library installed on your system if you have XQuartz installed, which is what provides an X server on your Mac system. The X server is needed if you plan to use NCL and send the graphical output to an "x11" window.</div><div class="gmail_default" style=""><br></div><div class="gmail_default" style="">If you type the following from a Terminal window:</div><div class="gmail_default" style="">
<p class=""><font face="monospace, monospace">find /opt -name 'libpng*dylib' -print</font></p><p class="">this will help you see what libpng libraries you do have. </p><p class="">Have you installed any software using "brew"? Just in case, you may want to see if there are other PNG libraries in /usr/local:</p><p class=""><font face="monospace, monospace">find /usr/local -name 'libpng*dylib' -print</font></p><p class="">and then finally, check if the DYLD_LIBRARY_PATH or LD_LIBRARY_PATH environment variables are set:</p><p class=""><font face="monospace, monospace">env | grep LD</font></p></div><div class="gmail_default" style="">If you have libpng files in both /usr/local and /opt, and you have "libpng15.15.dylib" in the /opt</div><div class="gmail_extra"><div class="gmail_default" style="font-size:small">location, then try NOT setting DYLD_LIBRARY_PATH and see if "ncl -V" works.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If it still doesn't work, then send email to <a href="mailto:ncl-install@ucar.edu">ncl-install@ucar.edu</a> and include the output from all the UNIX commands I asked you to type.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_quote">On Thu, Sep 24, 2015 at 9:15 PM, 66kqkq <span dir="ltr"><<a href="mailto:66kqkq@163.com" target="_blank">66kqkq@163.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="line-height:1.7;color:rgb(0,0,0);font-size:14px;font-family:Arial"><div>Dear all,</div><div><br></div><div>I want to install NCL on the OS X Yosemite 10.10.4, but I met a problem:</div><div><br></div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(175,173,36)"><b>myaccount@kindaichous-MacBook-Pro</b><span style="color:rgb(195,55,32)"><b> lib$</b></span><span style="color:rgb(0,0,0)"> ncl</span></p></div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">dyld: Library not loaded: /opt/X11/lib/libpng15.15.dylib</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"> Referenced from: /Users/jindc/soft_install/ncl/bin/ncl</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"> Reason: image not found</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Trace/BPT trap: 5</p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-family:Arial;font-size:14px;line-height:23px">I don't know how to figure it out, any suggestion is appreciated.</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-family:Arial;font-size:14px;line-height:23px"><br></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-family:Arial;font-size:14px;line-height:23px">Best,</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-family:Arial;font-size:14px;line-height:23px">Dachao Jin</span></p></div></div><br><br><span title="neteasefooter"><p> </p></span><br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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>
<br></blockquote></div><br></div></div>