<html><head><meta http-equiv=Content-Type content="text/html; charset=UTF-8"><META name="Author" content="GroupWise WebAccess"><style type="text/css"> 
body p 

        margin: 0px; 
}
</style></head><body style='font-family: Helvetica, Arial, sans-serif; font-size: 13px; '><div id="GroupWiseSection_1483792077000_h0641229@groupwise.boku.ac.at_E27A1C8111E00000B86ED598C5A926B9_" class="GroupWiseMessageBody"><div>Hey Kwesi,<br><br>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>NCL only started when I put <font color="#0000FF">export DYLD_FALLBACK_LIBRARY_PATH=/usr/local/Cellar/gcc/6.3.0_1/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">ng4ex gsun01n -clean<font color="#000000"> so I assumed that the problem was with the </font></font><span style="font-family: helvetica , arial , sans-serif;font-size: 13.0px;">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;">libstdc++.6.dylib softlink with the full library in </span><font color="#0000FF"><font color="#000000">usr/local/Cellar/gcc/6.3.0_1/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"><font color="#000000">export DYLD_FALLBACK_LIBRARY_PATH line in my .bashrc-file. <br>However, this can't be an optimal solution, since I don't know which programs </font></font><font color="#0000FF"><font color="#000000">accessed the softlink</font></font><font color="#0000FF"><font color="#000000"> </font></font><font color="#0000FF"><font color="#000000">in /usr/lib/</font></font><font color="#0000FF"><font color="#000000"> and can't get redirected to </font></font>libstdc++.6.0.9.dylib anymore<font color="#0000FF"><font color="#000000"> 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><br>Thanks to all for your help!<br></div><span></span><span class="GroupwiseReplyHeader"><br>&gt;&gt;&gt; Kwesi&nbsp;Quagraine&nbsp;&lt;starskykwesi@gmail.com&gt; 05.01.17 17.11 Uhr &gt;&gt;&gt;<br></span><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><div dir="ltr"><font color="#0000ff"><span style="color: rgb(0,0,0);">Kindly go into this folder rather;</span><br></font><div class="gmail_default" style="font-family:" trebuchet="" ms",sans-serif"=""><span style="font-family: helvetica , arial , sans-serif;"><font color="#0000ff"><br></font></span></div><div class="gmail_default"><font color="#0000ff"><font face="helvetica, arial, sans-serif">cd&nbsp;</font><span style="font-family: helvetica , arial , sans-serif;font-size: 13.0px;">/usr/local/ncl_6.3.0/lib&nbsp;</span></font></div><div class="gmail_default"><span style="font-family: helvetica , arial , sans-serif;font-size: 13.0px;"><font color="#0000ff"><br></font></span></div><div class="gmail_default"><span style="font-family: helvetica , arial , sans-serif;font-size: 13.0px;"><font color="#0000ff">sudo ln -s /location/given/by/locating/libstdc++.6.dylib .</font></span></div><br><font face="helvetica, arial, sans-serif" color="#000000">&nbsp;Also remember to exit your terminal and re-enter your terminal before starting ncl<br></font><div class="gmail_default"><font face="helvetica, arial, sans-serif" color="#000000"><br></font></div><div class="gmail_default"><font face="helvetica, arial, sans-serif" color="#000000">Hope it helps. Cheer!!</font></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 5, 2017 at 5:40 PM, Benedikt Becsi <span>&lt;<a href="mailto:benedikt.becsi@boku.ac.at" target="_blank">benedikt.becsi@boku.ac.at</a>&gt;</span> wrote:<br><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"><div id="m_-8011512137591260899GroupWiseSection_1483630335000_h0641229@groupwise.boku.ac.at_E27A1C8111E00000B86ED598C5A926B9_" class="m_-8011512137591260899GroupWiseMessageBody"><div>Hi Kwesi, <br><br>thanks for your quick response, I created softlinks to different locations of the <font color="#0000ff"><span style="font-family: helvetica , arial , sans-serif;"><font color="#000000">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><br><br><font color="#0000FF">dyld: Symbol not found: __ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE<br>&nbsp; Referenced from: /usr/local/ncl_6.3.0/bin/ncl<br>&nbsp; Expected in: /usr/lib/libstdc++.6.dylib<br>&nbsp;in /usr/local/ncl_6.3.0/bin/ncl</font><br><br></span>Any other idea?<br>Thank you very much!<br></font></span></font></div><span></span><span class="m_-8011512137591260899GroupwiseReplyHeader"><br>&gt;&gt;&gt; Kwesi&nbsp;Quagraine&nbsp;&lt;<a href="mailto:starskykwesi@gmail.com" target="_blank">starskykwesi@gmail.com</a>&gt; 05.01.17 13.57 Uhr &gt;&gt;&gt;<br></span><div><div class="h5"><div dir="ltr"><div class="gmail_default">Hello Benedikt, try these from your terminal;</div><div class="gmail_default"><br></div><div class="gmail_default"><font color="#0000ff">locate&nbsp;<span style="font-family: helvetica , arial , sans-serif;">libstdc++.6.dylib library</span></font></div><div class="gmail_default"><span style="font-family: helvetica , arial , sans-serif;"><font color="#0000ff"><br></font></span></div><div class="gmail_default"><font color="#0000ff"><font face="helvetica, arial, sans-serif">cd&nbsp;</font><span style="font-family: helvetica , arial , sans-serif;font-size: 13.0px;">/usr/local/ncl_6.3.0/bin/lib&nbsp;</span></font></div><div class="gmail_default"><span style="font-family: helvetica , arial , sans-serif;font-size: 13.0px;"><font color="#0000ff"><br></font></span></div><div class="gmail_default"><span style="font-family: helvetica , arial , sans-serif;font-size: 13.0px;"><font color="#0000ff">sudo ln -s /location/given/by/locating/libstdc++.6.dylib .</font></span></div><div class="gmail_default"><span style="font-family: helvetica , arial , sans-serif;font-size: 13.0px;"><font color="#0000ff"><br></font></span></div><div class="gmail_default"><font face="helvetica, arial, sans-serif" color="#000000">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" color="#000000"><br></font></div><div class="gmail_default"><font face="helvetica, arial, sans-serif" color="#000000">Hope it helps. Cheer!!</font></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 5, 2017 at 1:54 PM, Benedikt Becsi <span>&lt;<a href="mailto:benedikt.becsi@boku.ac.at" target="_blank">benedikt.becsi@boku.ac.at</a>&gt;</span> wrote:<br><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">Dear all,<br><br>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><br><font color="#0000FF">dyld: Symbol not found: __ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE<br>&nbsp; Referenced from: /usr/local/ncl_6.3.0/bin/ncl<br>&nbsp; Expected in: /usr/lib/libstdc++.6.dylib<br>&nbsp;in /usr/local/ncl_6.3.0/bin/ncl</font><br><br>here are the details about my setup environment:<br><br><font color="#0000FF">Benedikts-MacBook-Pro:bin ich$ which ncl<br>/usr/local/ncl_6.3.0/bin/ncl<br>Benedikts-MacBook-Pro:bin ich$ ncl -V<br>6.3.0<br>Benedikts-MacBook-Pro:bin ich$ otool -L `which ncl`<br>/usr/local/ncl_6.3.0/bin/ncl:<br>&nbsp;&nbsp;&nbsp; /usr/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8)<br>&nbsp;&nbsp;&nbsp; /usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8)<br>&nbsp;&nbsp;&nbsp; /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP (compatibility version 1.0.0, current version 2.4.0)<br>&nbsp;&nbsp;&nbsp; /opt/X11/lib/libfontconfig.1.dylib (compatibility version 10.0.0, current version 10.0.0)<br>&nbsp;&nbsp;&nbsp; /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)<br>&nbsp;&nbsp;&nbsp; /opt/X11/lib/libXrender.1.dylib (compatibility version 5.0.0, current version 5.0.0)<br>&nbsp;&nbsp;&nbsp; /usr/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.5)<br>&nbsp;&nbsp;&nbsp; /opt/X11/lib/libXpm.4.dylib (compatibility version 16.0.0, current version 16.0.0)<br>&nbsp;&nbsp;&nbsp; /opt/X11/lib/libX11.6.dylib (compatibility version 10.0.0, current version 10.0.0)<br>&nbsp;&nbsp;&nbsp; /opt/X11/lib/libXext.6.dylib (compatibility version 11.0.0, current version 11.0.0)<br>&nbsp;&nbsp;&nbsp; /usr/local/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.22.0)<br>&nbsp;&nbsp;&nbsp; /usr/local/lib/libgomp.1.dylib (compatibility version 2.0.0, current version 2.0.0)<br>&nbsp;&nbsp;&nbsp; /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)<br>&nbsp;&nbsp;&nbsp; /usr/local/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)<br>Benedikts-MacBook-Pro:bin ich$ env | grep NCARG<br>NCARG_ROOT=/usr/local/ncl_6.3.0<br>Benedikts-MacBook-Pro:bin ich$ which gcc<br>/usr/local/Cellar/gcc/6.3.0_1/bin/gcc<br>Benedikts-MacBook-Pro:bin ich$ which gfortran<br>/usr/local/Cellar/gcc/6.3.0_1/bin/gfortran<br>Benedikts-MacBook-Pro:bin ich$ gfortran --version<br>GNU Fortran (Homebrew GCC 6.3.0_1) 6.3.0<br>Copyright (C) 2016 Free Software Foundation, Inc.<br>This is free software; see the source for copying conditions.&nbsp; There is NO<br>warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br><br>Benedikts-MacBook-Pro:bin ich$ gcc --version<br>gcc (Homebrew GCC 6.3.0_1) 6.3.0<br>Copyright (C) 2016 Free Software Foundation, Inc.<br>This is free software; see the source for copying conditions.&nbsp; There is NO<br>warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br></font><br>I put the following lines into my .bashrc file:<br><br><font color="#0000FF">export NCARG_ROOT=/usr/local/ncl_6.3.0<br>export PATH=$NCARG_ROOT/bin:$PATH<br>export PATH=/usr/local/Cellar/gcc/6.3.0_1/bin:$PATH<br>export DYLD_FALLBACK_LIBRARY_PATH=/usr/local/Cellar/gcc/6.3.0_1/lib/gcc/6</font><br><br>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><br>Thank you very much for the help!<br>All the best,<br>Benedikt Becsi</div> <br>_______________________________________________<br> ncl-install mailing list<br> List instructions, subscriber options, unsubscribe:<br> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-install" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-install</a><br> <br></blockquote></div><br><br><div><br></div>-- <br><div class="m_-8011512137591260899gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><div><font face="trebuchet ms, sans-serif" color="#0000ff">Try not to become a man of success but rather a man of value-Albert Einstein</font></div><div><font face="trebuchet ms, sans-serif" color="#0000ff"><br></font></div><div><font color="#0000ff"><font face="trebuchet ms, sans-serif">University of Cape Coast|</font><span style="font-family: &quot;trebuchet ms&quot; , sans-serif;font-size: 12.8px;">College of Agriculture and Natural Sciences|</span><span style="font-family: &quot;trebuchet ms&quot; , sans-serif;font-size: 12.8px;">Department of Physics|</span></font></div><div><font face="trebuchet ms, sans-serif" color="#0000ff">Team Leader|Recycle Up! Ghana|Technology Without Borders|</font></div><div><font color="#0000ff"><font face="trebuchet ms, sans-serif">Other emails:&nbsp;</font><span style="font-family: &quot;trebuchet ms&quot; , sans-serif;font-size: 12.8px;"><a href="mailto:kwesi.quagraine@ucc.edu.gh" target="_blank">kwesi.quagraine@ucc.edu.gh</a>|</span><span style="font-family: &quot;trebuchet ms&quot; , sans-serif;font-size: 12.8px;"><a href="mailto:kwesi.quagraine@teog.de" target="_blank">kwesi.quagraine@teog.de</a>|</span></font></div><div><span style="font-family: &quot;trebuchet ms&quot; , sans-serif;font-size: 12.8px;"><font color="#0000ff">Mobile: <a target="_blank">+233266173582</a></font></span></div></div><div><font face="trebuchet ms, sans-serif" color="#0000ff">Skype: quagraine_cwasi</font></div><div><font face="trebuchet ms, sans-serif" color="#0000ff">Twitter: @Pkdilly</font></div><div><br></div></div></div></div></div></div></div></div> </div> </div></div></div></div> </blockquote></div><br><br><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><div><font face="trebuchet ms, sans-serif" color="#0000ff">Try not to become a man of success but rather a man of value-Albert Einstein</font></div><div><font face="trebuchet ms, sans-serif" color="#0000ff"><br></font></div><div><font color="#0000ff"><font face="trebuchet ms, sans-serif">University of Cape Coast|</font><span style="font-family: &quot;trebuchet ms&quot; , sans-serif;font-size: 12.8px;">College of Agriculture and Natural Sciences|</span><span style="font-family: &quot;trebuchet ms&quot; , sans-serif;font-size: 12.8px;">Department of Physics|</span></font></div><div><font face="trebuchet ms, sans-serif" color="#0000ff">Team Leader|Recycle Up! Ghana|Technology Without Borders|</font></div><div><font color="#0000ff"><font face="trebuchet ms, sans-serif">Other emails:&nbsp;</font><span style="font-family: &quot;trebuchet ms&quot; , sans-serif;font-size: 12.8px;"><a href="mailto:kwesi.quagraine@ucc.edu.gh" target="_blank">kwesi.quagraine@ucc.edu.gh</a>|</span><span style="font-family: &quot;trebuchet ms&quot; , sans-serif;font-size: 12.8px;"><a href="mailto:kwesi.quagraine@teog.de" target="_blank">kwesi.quagraine@teog.de</a>|</span></font></div><div><span style="font-family: &quot;trebuchet ms&quot; , sans-serif;font-size: 12.8px;"><font color="#0000ff">Mobile: +233266173582</font></span></div></div><div><font face="trebuchet ms, sans-serif" color="#0000ff">Skype: quagraine_cwasi</font></div><div><font face="trebuchet ms, sans-serif" color="#0000ff">Twitter: @Pkdilly</font></div><div><br></div></div></div></div></div></div></div></div> </div> </div></body></html>