<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Mary,<br>
    <br>
    Thanks! This totally helped me find the problem.<br>
    <br>
    I forgot to mention that I'm using a mac (10.9.5)<br>
    <blockquote><tt>&gt; mdfind -name libgomp.1</tt><tt><br>
      </tt><tt>/usr/local/Cellar/gcc/4.8.2/lib/gcc/x86_64-apple-darwin13.1.0/4.8.2/libgomp.1.dylib</tt><tt><br>
      </tt><tt>/usr/local/Cellar/gcc/4.8.2/lib/gcc/x86_64-apple-darwin13.1.0/4.8.2/i386/libgomp.1.dylib</tt><tt><br>
      </tt><tt>/usr/local/Cellar/gcc/4.9.2_1/lib/gcc/4.9/libgomp.1.dylib</tt><tt><br>
      </tt><tt>/usr/local/Cellar/gcc/4.9.2_1/lib/gcc/4.9/i386/libgomp.1.dylib</tt><tt><br>
      </tt><tt>/usr/local/octave/3.8.0/lib/libgcc/libgomp.1.dylib</tt><tt><br>
      </tt><tt>/usr/local/lib/i386/libgomp.1.dylib<br>
        <br>
        &gt; gcc --version<br>
        gcc (GCC) 4.8.1<br>
        <br>
        &gt; which gcc<br>
        /usr/local/bin/gcc<br>
      </tt></blockquote>
    I was able to use a symbolic link so that libgomp.1.dylib points to
    version associated with gcc 4.9, and this resolved the issue.<br>
    <blockquote><tt>&gt; ln -s
        /usr/local/Cellar/gcc/4.9.2_1/lib/gcc/4.9/libgomp.1.dylib </tt><tt><tt>/usr/local/lib/libgomp.1.dylib</tt><br>
        <br>
        &gt; ls -l /usr/local/lib/libgomp.1.dylib<br>
        /usr/local/lib/libgomp.1.dylib -&gt;
        /usr/local/Cellar/gcc/4.9.2_1/lib/gcc/4.9/libgomp.1.dylib<br>
      </tt></blockquote>
    Thanks,<br>
    Walter<br>
    <br>
    <div class="moz-cite-prefix">On 2/10/15 6:49 PM, Mary Haley wrote:<br>
    </div>
    <blockquote
cite="mid:CACNN_CJ7bjo2gYy-BxK4yxLvnz-4nSqAVkKx-DduxYDnu_W+Hg@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <div dir="ltr">
        <div class="gmail_default" style="font-size:small">What does the
          following report:</div>
        <div class="gmail_default" style="font-size:small"><br>
        </div>
        <div class="gmail_default" style="font-size:small">locate
          libgomp</div>
        <div class="gmail_default" style="font-size:small">gcc --version</div>
        <div class="gmail_default" style="font-size:small">which gcc</div>
        <div class="gmail_default" style="font-size:small"><br>
        </div>
        <div class="gmail_default" style="font-size:small">It's possible
          that you have multiple versions of gcc installed, but that
          when you run NCL, it's not finding the correct one.</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_default" style="font-size:small"><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Feb 10, 2015 at 11:05 AM,
          Walter Hannah <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:whannah@rsmas.miami.edu" target="_blank">whannah@rsmas.miami.edu</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> Hi,<br>
              <br>
              I'm trying to contour a scalar field with NCL. Previous
              emails about this problem (<a moz-do-not-send="true"
href="http://mailman.ucar.edu/pipermail/ncl-talk/2014-October/001165.html"
                target="_blank">see here</a>) seem to be related to the
              version of GCC. However, my version of GCC (4.8.1) is
              compatible with my version of NCL (6.2.1). So I think this
              is a different problem.<br>
              <br>
              Here's a simple script I use to re-create the problem:<br>
              <blockquote><small><tt>load
                    "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"</tt><tt><br>
                  </tt><tt>load
                    "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"</tt><tt><br>
                  </tt><tt>load
                    "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"</tt><tt><br>
                  </tt><tt>begin</tt><tt><br>
                  </tt><tt>    </tt><tt><br>
                  </tt><tt>    fig_type = "x11"</tt><tt><br>
                  </tt><tt>    fig_file = "test.sf"</tt><tt><br>
                  </tt><tt> </tt><tt><br>
                  </tt><tt>;====================================================================================================</tt><tt><br>
                  </tt><tt>; make up some random data</tt><tt><br>
                  </tt><tt>;====================================================================================================</tt><tt><br>
                  </tt><tt><br>
                  </tt><tt>    lat = (/-10,-10,-10,  0,  0,  0, 10, 10,
                    10/)</tt><tt><br>
                  </tt><tt>    lon = (/ 50, 60, 70, 50, 60, 70, 50, 60,
                    70/)</tt><tt><br>
                  </tt><tt><br>
                  </tt><tt>    lat@units = "degrees north"</tt><tt><br>
                  </tt><tt>    lon@units = "degrees east"</tt><tt><br>
                  </tt><tt><br>
                  </tt><tt>    data = fspan(0,100,dimsizes(lat))</tt><tt><br>
                  </tt><tt><br>
                  </tt><tt>;====================================================================================================</tt><tt><br>
                  </tt><tt>; Create plot</tt><tt><br>
                  </tt><tt>;====================================================================================================</tt><tt><br>
                  </tt><tt>    wks = gsn_open_wks(fig_type,fig_file)</tt><tt><br>
                  </tt><tt>    plot = new(1,graphic)</tt><tt><br>
                  </tt><tt><br>
                  </tt><tt>        res = True</tt><tt><br>
                  </tt><tt>        res@cnFillOn        = True</tt><tt><br>
                  </tt><tt>        res@cnLinesOn       = False</tt><tt><br>
                  </tt><tt>        res@sfYArray        = lat</tt><tt><br>
                  </tt><tt>        res@sfXArray        = lon</tt><tt><br>
                  </tt><tt><br>
                  </tt><tt>        res@mpMinLatF       = -40.</tt><tt><br>
                  </tt><tt>        res@mpMaxLatF       =  40.</tt><tt><br>
                  </tt><tt>        res@mpMinLonF       =  40.</tt><tt><br>
                  </tt><tt>        res@mpMaxLonF       = 110.</tt><tt><br>
                  </tt><tt><br>
                  </tt><tt>    plot(0) =
                    gsn_csm_contour_map(wks,data,res)</tt><tt><br>
                  </tt><tt>;====================================================================================================</tt><tt><br>
                  </tt><tt>;====================================================================================================</tt><tt><br>
                  </tt><tt>end</tt></small><br>
              </blockquote>
              If I run that script, I get this error:<br>
              <blockquote><tt>dyld: lazy symbol binding failed: Symbol
                  not found: _GOMP_parallel</tt><tt><br>
                </tt><tt>  Referenced from: /Users/whannah/NCL/bin/ncl</tt><tt><br>
                </tt><tt>  Expected in: /usr/local/lib/libgomp.1.dylib</tt><tt><br>
                </tt><tt><br>
                </tt><tt>dyld: Symbol not found: _GOMP_parallel</tt><tt><br>
                </tt><tt>  Referenced from: /Users/whannah/NCL/bin/ncl</tt><tt><br>
                </tt><tt>  Expected in: /usr/local/lib/libgomp.1.dylib</tt><tt><br>
                </tt><tt><br>
                </tt><tt>Trace/BPT trap: 5</tt><br>
              </blockquote>
              Another post about this online mentions the use of <i>DYLD_LIBRARY_PATH</i>,
              but I don't have this set.<br>
              <br>
              Any ideas on how to diagnose the problem here?<br>
              <br>
              Thanks,<br>
              Walter<br>
            </div>
            <br>
            _______________________________________________<br>
            ncl-talk mailing list<br>
            List instructions, subscriber options, unsubscribe:<br>
            <a moz-do-not-send="true"
              href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk"
              target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>