<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Benedikt & Kwesi,<div class=""><br class=""></div><div class="">I had a similar problem a while ago. On Mac OS X, you can use a command such as</div><div class=""><br class=""></div><div class="">install_name_tool -change /usr/local/opt/gcc/lib/gcc/5/libgfortran.3.dylib /usr/local/lib/libgfortran.3.dylib /usr/local/opt/mpich/lib/libmpi.12.dylib</div><div class=""><br class=""></div><div class="">to change the symbolic libraries an application is looking for:</div><div class=""><br class=""></div><div class="">install_name_tool -h</div><div class=""><br class=""></div><div class="">install_name_tool [-change old new] ... [-rpath old new] ... [-add_rpath new] ... [-delete_rpath old] ... [-id name] input</div><div class=""><br class=""></div><div class="">Hope this helps.</div><div class=""><br class=""></div><div class="">Cheers, Dom</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 7/01/2017, at 2:25 PM, Kwesi Quagraine <<a href="mailto:starskykwesi@gmail.com" class="">starskykwesi@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="auto" class="">Great news. Cheers!!</div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Jan 7, 2017 3:22 PM, "Benedikt Becsi" <<a href="mailto:benedikt.becsi@boku.ac.at" class="">benedikt.becsi@boku.ac.at</a>> wrote:<br type="attribution" class=""><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-family:Helvetica,Arial,sans-serif;font-size:13px" class=""><div id="m_-243445300220108769GroupWiseSection_1483792077000_h0641229@groupwise.boku.ac.at_E27A1C8111E00000B86ED598C5A926B9_" class="m_-243445300220108769GroupWiseMessageBody"><div class="">Hey Kwesi,<br class=""><br class="">thanks again for your advice. It still ran into the same problem when I softlinked the library in /ncl_6.3.0/lib/. With some additional testing I found out the following:<br class="">NCL only started when I put <font color="#0000FF" class="">export DYLD_FALLBACK_LIBRARY_PATH=/<wbr class="">usr/local/Cellar/gcc/6.3.0_1/<wbr class="">lib/gcc/6</font> into my .bashrc file. Removing this line I received the same error as when I try to run the test script <font color="#0000FF" class="">ng4ex gsun01n -clean<font class=""> so I assumed that the problem was with the </font></font><span style="font-family:helvetica,arial,sans-serif;font-size:13.0px" class="">libstdc++.6.dylib library in my /usr/lib/ folder. Originally it was only a softlink to the </span>libstdc++.6.0.9.dylib library in the same folder. Since NCL was able to start when I put the export DYLD_FALLBACK_LIBRARY_PATH line into my .bashrc-file, but ng4ex produced the error, it is obvious that the ng4ex bin does not use the library specified in the .bashrc file, but rather the default on in /usr/lib/. So for now I got it to run by disabling the mac System Integrity Protection (SIP) and replacing the <span style="font-family:helvetica,arial,sans-serif;font-size:13.0px" class="">libstdc++.6.dylib softlink with the full library in </span><font color="#0000FF" class=""><font class="">usr/local/Cellar/gcc/6.3.0_1/<wbr class="">lib/gcc/6/, which is a homebrew gcc version I installed. Now it works perfectly, also ncl does start without the </font></font><font color="#0000FF" class=""><font class="">export DYLD_FALLBACK_LIBRARY_PATH line in my .bashrc-file. <br class="">However, this can't be an optimal solution, since I don't know which programs </font></font><font color="#0000FF" class=""><font class="">accessed the softlink</font></font><font color="#0000FF" class=""><font class=""> </font></font><font color="#0000FF" class=""><font class="">in /usr/lib/</font></font><font color="#0000FF" class=""><font class=""> and can't get redirected to </font></font>libstdc++.6.0.9.dylib anymore<font color="#0000FF" class=""><font class=""> because i deleted the softlink</font></font>. The real solution should be that I can tell ng4ex and ncl and all the other bins in the ncl environment that they have to access the library I specify in my .bashrc-file. Does anybody know if that's possible? From my testing I conclude that the .bashrc file only tells the NCL bin what to do.<br class=""><br class="">Thanks to all for your help!<br class=""></div><span class=""></span><span class="m_-243445300220108769GroupwiseReplyHeader"><br class="">>>> Kwesi Quagraine <<a href="mailto:starskykwesi@gmail.com" target="_blank" class="">starskykwesi@<wbr class="">gmail.com</a>> 05.01.17 17.11 Uhr >>><br class=""></span><div class="elided-text"><div dir="ltr" class=""><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><div dir="ltr" class=""><font color="#0000ff" class=""><span style="" class="">Kindly go into this folder rather;</span><br class=""></font><div class="gmail_default"><span style="font-family:helvetica,arial,sans-serif" class=""><font color="#0000ff" class=""><br class=""></font></span></div><div class="gmail_default"><font color="#0000ff" class=""><font face="helvetica, arial, sans-serif" class="">cd </font><span style="font-family:helvetica,arial,sans-serif;font-size:13.0px" class="">/usr/local/ncl_6.3.0/lib </span></font></div><div class="gmail_default"><span style="font-family:helvetica,arial,sans-serif;font-size:13.0px" class=""><font color="#0000ff" class=""><br class=""></font></span></div><div class="gmail_default"><span style="font-family:helvetica,arial,sans-serif;font-size:13.0px" class=""><font color="#0000ff" class="">sudo ln -s /location/given/by/locating/<wbr class="">libstdc++.6.dylib .</font></span></div><br class=""><font face="helvetica, arial, sans-serif" class=""> Also remember to exit your terminal and re-enter your terminal before starting ncl<br class=""></font><div class="gmail_default"><font face="helvetica, arial, sans-serif" class=""><br class=""></font></div><div class="gmail_default"><font face="helvetica, arial, sans-serif" class="">Hope it helps. Cheer!!</font></div></div></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Thu, Jan 5, 2017 at 5:40 PM, Benedikt Becsi <span class=""><<a href="mailto:benedikt.becsi@boku.ac.at" target="_blank" class="">benedikt.becsi@boku.ac.at</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 0.8ex;border-left:1.0px rgb(204,204,204) solid;padding-left:1.0ex"><div style="font-family:Helvetica,Arial,sans-serif;font-size:13px" class=""><div id="m_-243445300220108769m_-8011512137591260899GroupWiseSection_1483630335000_h0641229@groupwise.boku.ac.at_E27A1C8111E00000B86ED598C5A926B9_" class="m_-243445300220108769m_-8011512137591260899GroupWiseMessageBody"><div class="">Hi Kwesi, <br class=""><br class="">thanks for your quick response, I created softlinks to different locations of the <font color="#0000ff" class=""><span style="font-family:helvetica,arial,sans-serif" class=""><font class="">libstdc++.6.dylib library (three locations where located by "locate library") in your suggested folder (dind't exist btw), but unfortunately I still got the same error message every time:<span class=""><br class=""><br class=""><font color="#0000FF" class="">dyld: Symbol not found: __ZTTNSt7__cxx1118basic_<wbr class="">stringstreamIcSt11char_<wbr class="">traitsIcESaIcEEE<br class=""> Referenced from: /usr/local/ncl_6.3.0/bin/ncl<br class=""> Expected in: /usr/lib/libstdc++.6.dylib<br class=""> in /usr/local/ncl_6.3.0/bin/ncl</font><br class=""><br class=""></span>Any other idea?<br class="">Thank you very much!<br class=""></font></span></font></div><span class=""></span><span class="m_-243445300220108769m_-8011512137591260899GroupwiseReplyHeader"><br class="">>>> Kwesi Quagraine <<a href="mailto:starskykwesi@gmail.com" target="_blank" class="">starskykwesi@<wbr class="">gmail.com</a>> 05.01.17 13.57 Uhr >>><br class=""></span><div class=""><div class="m_-243445300220108769h5"><div dir="ltr" class=""><div class="gmail_default">Hello Benedikt, try these from your terminal;</div><div class="gmail_default"><br class=""></div><div class="gmail_default"><font color="#0000ff" class="">locate <span style="font-family:helvetica,arial,sans-serif" class="">libstdc++.6.dylib library</span></font></div><div class="gmail_default"><span style="font-family:helvetica,arial,sans-serif" class=""><font color="#0000ff" class=""><br class=""></font></span></div><div class="gmail_default"><font color="#0000ff" class=""><font face="helvetica, arial, sans-serif" class="">cd </font><span style="font-family:helvetica,arial,sans-serif;font-size:13.0px" class="">/usr/local/ncl_6.3.0/bin/<wbr class="">lib </span></font></div><div class="gmail_default"><span style="font-family:helvetica,arial,sans-serif;font-size:13.0px" class=""><font color="#0000ff" class=""><br class=""></font></span></div><div class="gmail_default"><span style="font-family:helvetica,arial,sans-serif;font-size:13.0px" class=""><font color="#0000ff" class="">sudo ln -s /location/given/by/locating/<wbr class="">libstdc++.6.dylib .</font></span></div><div class="gmail_default"><span style="font-family:helvetica,arial,sans-serif;font-size:13.0px" class=""><font color="#0000ff" class=""><br class=""></font></span></div><div class="gmail_default"><font face="helvetica, arial, sans-serif" class="">Kindly remember to put the dot at the end of the last command, it is just soft linking the location of the file to the current directory.</font></div><div class="gmail_default"><font face="helvetica, arial, sans-serif" class=""><br class=""></font></div><div class="gmail_default"><font face="helvetica, arial, sans-serif" class="">Hope it helps. Cheer!!</font></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Thu, Jan 5, 2017 at 1:54 PM, Benedikt Becsi <span class=""><<a href="mailto:benedikt.becsi@boku.ac.at" target="_blank" class="">benedikt.becsi@boku.ac.at</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 0.8ex;border-left:1.0px rgb(204,204,204) solid;padding-left:1.0ex"><div style="font-family:Helvetica,Arial,sans-serif;font-size:13px" class="">Dear all,<br class=""><br class="">installing ncl on Mac did work, but when I try to run the test script ng4ex gsun01n -clean I get the following error message:<br class=""><br class=""><font color="#0000FF" class="">dyld: Symbol not found: __ZTTNSt7__cxx1118basic_<wbr class="">stringstreamIcSt11char_<wbr class="">traitsIcESaIcEEE<br class=""> Referenced from: /usr/local/ncl_6.3.0/bin/ncl<br class=""> Expected in: /usr/lib/libstdc++.6.dylib<br class=""> in /usr/local/ncl_6.3.0/bin/ncl</font><br class=""><br class="">here are the details about my setup environment:<br class=""><br class=""><font color="#0000FF" class="">Benedikts-MacBook-Pro:bin ich$ which ncl<br class="">/usr/local/ncl_6.3.0/bin/ncl<br class="">Benedikts-MacBook-Pro:bin ich$ ncl -V<br class="">6.3.0<br class="">Benedikts-MacBook-Pro:bin ich$ otool -L `which ncl`<br class="">/usr/local/ncl_6.3.0/bin/ncl:<br class=""> /usr/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8)<br class=""> /usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8)<br class=""> /System/Library/Frameworks/<wbr class="">LDAP.framework/Versions/A/LDAP (compatibility version 1.0.0, current version 2.4.0)<br class=""> /opt/X11/lib/libfontconfig.1.<wbr class="">dylib (compatibility version 10.0.0, current version 10.0.0)<br class=""> /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)<br class=""> /opt/X11/lib/libXrender.1.<wbr class="">dylib (compatibility version 5.0.0, current version 5.0.0)<br class=""> /usr/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.5)<br class=""> /opt/X11/lib/libXpm.4.dylib (compatibility version 16.0.0, current version 16.0.0)<br class=""> /opt/X11/lib/libX11.6.dylib (compatibility version 10.0.0, current version 10.0.0)<br class=""> /opt/X11/lib/libXext.6.dylib (compatibility version 11.0.0, current version 11.0.0)<br class=""> /usr/local/lib/libstdc++.6.<wbr class="">dylib (compatibility version 7.0.0, current version 7.22.0)<br class=""> /usr/local/lib/libgomp.1.dylib (compatibility version 2.0.0, current version 2.0.0)<br class=""> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)<br class=""> /usr/local/lib/libgcc_s.1.<wbr class="">dylib (compatibility version 1.0.0, current version 1.0.0)<br class="">Benedikts-MacBook-Pro:bin ich$ env | grep NCARG<br class="">NCARG_ROOT=/usr/local/ncl_6.3.<wbr class="">0<br class="">Benedikts-MacBook-Pro:bin ich$ which gcc<br class="">/usr/local/Cellar/gcc/6.3.0_1/<wbr class="">bin/gcc<br class="">Benedikts-MacBook-Pro:bin ich$ which gfortran<br class="">/usr/local/Cellar/gcc/6.3.0_1/<wbr class="">bin/gfortran<br class="">Benedikts-MacBook-Pro:bin ich$ gfortran --version<br class="">GNU Fortran (Homebrew GCC 6.3.0_1) 6.3.0<br class="">Copyright (C) 2016 Free Software Foundation, Inc.<br class="">This is free software; see the source for copying conditions. There is NO<br class="">warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br class=""><br class="">Benedikts-MacBook-Pro:bin ich$ gcc --version<br class="">gcc (Homebrew GCC 6.3.0_1) 6.3.0<br class="">Copyright (C) 2016 Free Software Foundation, Inc.<br class="">This is free software; see the source for copying conditions. There is NO<br class="">warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br class=""></font><br class="">I put the following lines into my .bashrc file:<br class=""><br class=""><font color="#0000FF" class="">export NCARG_ROOT=/usr/local/ncl_6.3.<wbr class="">0<br class="">export PATH=$NCARG_ROOT/bin:$PATH<br class="">export PATH=/usr/local/Cellar/gcc/6.<wbr class="">3.0_1/bin:$PATH<br class="">export DYLD_FALLBACK_LIBRARY_PATH=/<wbr class="">usr/local/Cellar/gcc/6.3.0_1/<wbr class="">lib/gcc/6</font><br class=""><br class="">There seems to be a problem with my libstdc++.6.dylib library. The file in the /usr/lib/ directory is just an alias and points to a file named libstdc++.6.0.9.dylib. Could it be that ncl has problems with that version of the library?<br class=""><br class="">Thank you very much for the help!<br class="">All the best,<br class="">Benedikt Becsi</div> <br class="">______________________________<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=""> <br class=""></blockquote></div><br class=""><br class=""><div class=""><br class=""></div>-- <br class=""><div class="m_-243445300220108769m_-8011512137591260899gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class=""><div class=""><font face="trebuchet ms, sans-serif" color="#0000ff" class="">Try not to become a man of success but rather a man of value-Albert Einstein</font></div><div class=""><font face="trebuchet ms, sans-serif" color="#0000ff" class=""><br class=""></font></div><div class=""><font color="#0000ff" class=""><font face="trebuchet ms, sans-serif" class="">University of Cape Coast|</font><span style="font-family:"trebuchet ms",sans-serif;font-size:12.8px" class="">College of Agriculture and Natural Sciences|</span><span style="font-family:"trebuchet ms",sans-serif;font-size:12.8px" class="">Department of Physics|</span></font></div><div class=""><font face="trebuchet ms, sans-serif" color="#0000ff" class="">Team Leader|Recycle Up! Ghana|Technology Without Borders|</font></div><div class=""><font color="#0000ff" class=""><font face="trebuchet ms, sans-serif" class="">Other emails: </font><span style="font-family:"trebuchet ms",sans-serif;font-size:12.8px" class=""><a href="mailto:kwesi.quagraine@ucc.edu.gh" target="_blank" class="">kwesi.quagraine@ucc.<wbr class="">edu.gh</a>|</span><span style="font-family:"trebuchet ms",sans-serif;font-size:12.8px" class=""><a href="mailto:kwesi.quagraine@teog.de" target="_blank" class="">kwesi.quagraine@teog.de</a><wbr class="">|</span></font></div><div class=""><span style="font-family:"trebuchet ms",sans-serif;font-size:12.8px" class=""><font color="#0000ff" class="">Mobile: <a class="">+233266173582</a></font></span></div></div><div class=""><font face="trebuchet ms, sans-serif" color="#0000ff" class="">Skype: quagraine_cwasi</font></div><div class=""><font face="trebuchet ms, sans-serif" color="#0000ff" class="">Twitter: @Pkdilly</font></div><div class=""><br class=""></div></div></div></div></div></div></div></div> </div> </div></div></div></div> </blockquote></div><br class=""><br class=""><br class="">-- <br class=""><div class="m_-243445300220108769gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class=""><div class=""><font face="trebuchet ms, sans-serif" color="#0000ff" class="">Try not to become a man of success but rather a man of value-Albert Einstein</font></div><div class=""><font face="trebuchet ms, sans-serif" color="#0000ff" class=""><br class=""></font></div><div class=""><font color="#0000ff" class=""><font face="trebuchet ms, sans-serif" class="">University of Cape Coast|</font><span style="font-family:"trebuchet ms",sans-serif;font-size:12.8px" class="">College of Agriculture and Natural Sciences|</span><span style="font-family:"trebuchet ms",sans-serif;font-size:12.8px" class="">Department of Physics|</span></font></div><div class=""><font face="trebuchet ms, sans-serif" color="#0000ff" class="">Team Leader|Recycle Up! Ghana|Technology Without Borders|</font></div><div class=""><font color="#0000ff" class=""><font face="trebuchet ms, sans-serif" class="">Other emails: </font><span style="font-family:"trebuchet ms",sans-serif;font-size:12.8px" class=""><a href="mailto:kwesi.quagraine@ucc.edu.gh" target="_blank" class="">kwesi.quagraine@ucc.<wbr class="">edu.gh</a>|</span><span style="font-family:"trebuchet ms",sans-serif;font-size:12.8px" class=""><a href="mailto:kwesi.quagraine@teog.de" target="_blank" class="">kwesi.quagraine@teog.de</a><wbr class="">|</span></font></div><div class=""><span style="font-family:"trebuchet ms",sans-serif;font-size:12.8px" class=""><font color="#0000ff" class="">Mobile: <a href="tel:+233%2026%20617%203582" value="+233266173582" target="_blank" class="">+233266173582</a></font></span></div></div><div class=""><font face="trebuchet ms, sans-serif" color="#0000ff" class="">Skype: quagraine_cwasi</font></div><div class=""><font face="trebuchet ms, sans-serif" color="#0000ff" class="">Twitter: @Pkdilly</font></div><div class=""><br class=""></div></div></div></div></div></div></div></div> </div> </div></div></div>
</blockquote></div><br class=""></div>
_______________________________________________<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" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-install</a><br class=""></div></blockquote></div><br class=""></div></body></html>