<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div style="direction: ltr; color: rgb(0, 0, 0);">
<div style="color: rgb(0, 0, 0);">
<div id="divRpF350539" style="direction: ltr;"><font size="2">Hi,</font></div>
<div>
<div style="direction: ltr; color: rgb(0, 0, 0);">
<div style="direction: ltr; color: rgb(0, 0, 0);">
<div><font size="2"><br class="Apple-interchange-newline">
my name is Andrea Alberti and I am interested in your packages in order to be able to print form hdf files.</font></div>
<div><font size="2">openID:&nbsp;<a href="https://www.earthsystemgrid.org/myopenid/andrea.alberti88" target="_blank">https://www.earthsystemgrid.org/myopenid/andrea.alberti88</a></font></div>
<div><font size="2"><br>
</font></div>
<div><font size="2">I am running my code in a cluster and then I&nbsp;simply would like to read (and plot) the hdf files in my machine (MacBook, where I&nbsp;have &nbsp;<span style="line-height: 1.1; background-color: rgb(255, 255, 255);">Anaconda for OS X with PYTHON 2.7).</span></font></div>
<div><span style="line-height: 1.1; background-color: rgb(255, 255, 255);"><font size="2"><br>
</font></span></div>
<div><font size="2"><span style="line-height: 1.1; background-color: rgb(255, 255, 255);">Following the instructions, I downloaded the&nbsp;</span>precompiled binaries for&nbsp;NCL and I used conda for&nbsp;PyNIO&nbsp;<span style="background-color: white;">(i.e.&nbsp;</span><span style="background-color: white;">conda
 install -c ncar pynio).</span></font></div>
<div><span style="background-color: white;"><font size="2"><br>
</font></span></div>
<div><span style="background-color: white;"><font size="2">1) I have NCL in:</font></span></div>
<div>
<p class="p1"><span class="s1"><font size="2">/Users/andrea/WORKSPACE/ncl_ncarg-6.2.1.MacOS_10.9_64bit_nodap_gcc481</font></span></p>
<p class="p1"><span class="s1"><font size="2"><br>
</font></span></p>
</div>
<div><span style="line-height: 1.1; background-color: rgb(255, 255, 255);"><font size="2">2) I added in the .bash_profile:
</font></span></div>
<div>
<p class="p1"><span class="s1"><font size="2">export NCARG_ROOT=/Users/andrea/WORKSPACE/ncl_ncarg-6.2.1.MacOS_10.9_64bit_nodap_gcc481</font></span></p>
<p class="p1"><span class="s1"><font size="2">export PATH=$NCARG_ROOT/bin:$PATH</font></span></p>
<p class="p1"><span class="s1"><font size="2">export DISPLAY=:0.0</font></span></p>
<p class="p1"><span class="s1"><font size="2">export DISPLAY=128.117.14.12:0</font></span></p>
<p class="p1"><span class="s1"><font size="2">export DISPLAY=localhost:13.0</font></span></p>
<p class="p1"><span class="s1"><font size="2"><br>
</font></span></p>
<p class="p1"><font size="2"><span class="s1">3) then, after source ~/</span><span style="line-height: 14.3px; background-color: rgb(255, 255, 255);">.bash_profile, I close the terminal and I open a new one.</span></font></p>
<p class="p1"><span style="line-height: 14.3px; background-color: rgb(255, 255, 255);"><font size="2"><br>
</font></span></p>
<p class="p1"><span style="line-height: 14.3px; background-color: rgb(255, 255, 255);"><font size="2">4)&nbsp;</font></span></p>
<p class="p1"><font size="2">which gcc</font></p>
<p class="p1"><span class="s1"><font size="2">/Users/andrea/anaconda2/bin/gcc</font></span></p>
<p class="p1"><span class="s1"><font size="2"><br>
</font></span></p>
<p class="p1"><span class="s1"><font size="2">gcc --version</font></span></p>
<p class="p1"><span class="s1"><font size="2"></font></span></p>
<p class="p1"><span class="s1"><font size="2">gcc (GCC) 4.8.5</font></span></p>
<p class="p1"><span class="s1"><font size="2"><br>
</font></span></p>
<p class="p1"><span class="s1"><font size="2">5) If I try the test:</font></span></p>
<p class="p1"><font size="2"><span class="s1"></span></font></p>
<pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; line-height: 16px; border-style: solid; border-width: 0px 0px 15px; border-color: transparent; background-color: rgb(255, 255, 255);"><font face="Tahoma" size="2">ng4ex gsun01n</font></pre>
<pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; line-height: 16px; border-style: solid; border-width: 0px 0px 15px; border-color: transparent; background-color: rgb(255, 255, 255);"><font face="Tahoma" size="2">I obtain the error:</font></pre>
<pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; line-height: 16px; border-style: solid; border-width: 0px 0px 15px; border-color: transparent; background-color: rgb(255, 255, 255);"><font face="Tahoma" size="2">
</font><p class="p1"><span class="s1"><font face="Tahoma" size="2">dyld: Library not loaded: /usr/local/lib/libgomp.1.dylib</font></span></p><p class="p1"><span class="s1"><font face="Tahoma" size="2">&nbsp; Referenced from: /Users/andrea/WORKSPACE/ncl_ncarg-6.2.1.MacOS_10.9_64bit_nodap_gcc481/bin/ncargpath</font></span></p><p class="p1"><span class="s1"><font face="Tahoma" size="2">&nbsp; Reason: image not found</font></span></p><font face="Tahoma" size="2">

6) According to the error page, I try to use MacPort to install gcc48</font></pre>
<pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; line-height: 16px; border-style: solid; border-width: 0px 0px 15px; border-color: transparent; background-color: rgb(255, 255, 255);"><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border-style: solid; border-width: 0px 0px 15px; border-color: transparent;"><font face="Tahoma" size="2">sudo port install gcc48</font></pre><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border-style: solid; border-width: 0px 0px 15px; border-color: transparent;"><font face="Tahoma" size="2">(but I obtain an error), so I try:</font></pre><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border-style: solid; border-width: 0px 0px 15px; border-color: transparent;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border-style: solid; border-width: 0px 0px 15px; border-color: transparent;"><font face="Tahoma" size="2">sudo port install gcc49</font></pre><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border-style: solid; border-width: 0px 0px 15px; border-color: transparent;"><font face="Tahoma" size="2">(and everything is ok)</font></pre><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border-style: solid; border-width: 0px 0px 15px; border-color: transparent;"><font face="Tahoma" size="2"><br></font></pre><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border-style: solid; border-width: 0px 0px 15px; border-color: transparent;"><font face="Tahoma" size="2">7) At this point I have  libgomp.1.dylib in  /usr/local/lib/gcc/4.9/</font></pre><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border-style: solid; border-width: 0px 0px 15px; border-color: transparent;"><font face="Tahoma" size="2"><br></font></pre><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border-style: solid; border-width: 0px 0px 15px; border-color: transparent;"><font face="Tahoma" size="2">QUESTION: I do not know what to do now. I guess that when I run &quot;</font><span style="font-family: Tahoma; font-size: small;">ng4ex gsun01n&quot;, </span><span style="font-family: Tahoma; font-size: small; line-height: normal; white-space: normal;">NCL should be linked with&nbsp;</span><span style="font-family: Tahoma; font-size: small;">/usr/local/lib/gcc/4.9/ and look for </span><span style="font-family: Tahoma; font-size: small;">libgomp.1.dylib (and other libraries) in </span><span style="font-family: Tahoma; font-size: small;">/usr/local/lib/gcc/4.9/ (instead of </span><span style="font-family: Tahoma; font-size: small;"> /usr/local/lib/)</span></pre></pre></pre>
</div>
<div><span style="line-height: 1.1; background-color: rgb(255, 255, 255);"><font size="2">Thanks in advance for the help,</font></span></div>
<div><span style="line-height: 1.1; background-color: rgb(255, 255, 255);"><font size="2">Andrea</font></span></div>
<div style="font-size: 10pt; font-family: Tahoma;"><span style="font-size:small; line-height:1.1; background-color:rgb(255,255,255)"><br>
</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>