<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Thanks Mary,<br>
    I installed gcc5 using macports. I made soft links to /usr/local/lib
    and that has fixed the problem:<br>
    $ ls -l /usr/local/lib/libgomp.1.dylib <br>
    lrwxr-xr-x  1 root  admin  35 27 Jan 09:39
    /usr/local/lib/libgomp.1.dylib -&gt;
    /opt/local/lib/gcc5/libgomp.1.dylib<br>
    <br>
    Cheers,<br>
    Jatin<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 27/01/2016 12:15 AM, Mary Haley
      wrote:<br>
    </div>
    <blockquote
cite="mid:CACNN_C+xCectTXNc+32=rvc-Mvz49njNvn44qdT6YFkPGc4XLw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_default" style="font-size:small">Jatin,</div>
        <div class="gmail_default" style="font-size:small"><br>
        </div>
        <div class="gmail_default" style="font-size:small">You may try
          upgrading your gcc/gfortran compilers.  My guess is that with
          your previous version of MacOS, you installed the gcc/gfortran
          compilers from this site:</div>
        <div class="gmail_default" style="font-size:small"><br>
        </div>
        <div class="gmail_default" style=""><a moz-do-not-send="true"
            href="http://hpc.sourceforge.net">http://hpc.sourceforge.net</a><br>
        </div>
        <div class="gmail_default" style=""><br>
        </div>
        <div class="gmail_default" style="">which puts things in
          /usr/local/.</div>
        <div class="gmail_default" style=""><br>
        </div>
        <div class="gmail_default" style="">If you download a new
          gcc/gfortran (using the ones for El Capitan) from the above
          site, it should also install to /usr/local, and it should give
          you the /usr/local/libgomp.1.dylib file.</div>
        <div class="gmail_default" style=""><br>
        </div>
        <div class="gmail_default" style="">--Mary</div>
        <div class="gmail_default" style=""><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Mon, Jan 25, 2016 at 7:05 PM, Jatin
          Kala <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:jatin.kala.jk@gmail.com" target="_blank">jatin.kala.jk@gmail.com</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"> Well, this is
              interesting, on a different mac, on which I have been
              running ncl for more than 6 months now, grepping for LD
              under env, still returns nothing. <br>
              <br>
              Running:<br>
              $ ng4ex gsun01n -clean<br>
              <br>
              gives me the same error:<br>
              <br>
              134:~ Jatin$ ng4ex gsun01n -clean<span class=""><br>
                dyld: Library not loaded: /usr/local/lib/libgomp.1.dylib<br>
              </span>   Referenced from:
              /Users/Jatin/ncl-6.2.1/bin/ncargpath<span class=""><br>
                  Reason: image not found<br>
                Trace/BPT trap<br>
                <br>
              </span> This is a mac where i installed ncl without any
              issues around June 2015, i updated to OS X El Capitan
              around September/October 2015 i think, but did not
              re-check my ncl installation....This seems to be related
              to updating to OS X El Capitan?<br>
              Can anyone else reproduce this issue?<br>
              <br>
              Cheers,<br>
              Jatin
              <div>
                <div class="h5"><br>
                  <br>
                  <br>
                  <div>On 26/01/2016 9:51 AM, Jatin Kala wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">Thanks Mary, see below, grepping for
                      LD returns nothing.<br>
                      <div><br>
                        <br>
                        134:~ jatinkala$ env | grep NCARG<br>
                        NCARG_ROOT=/usr/local/ncl-6.3.0<br>
                        134:~ jatinkala$ env | grep LD<br>
                        134:~ jatinkala$ which ncl<br>
                        /usr/local/ncl-6.3.0/bin/ncl<br>
                        134:~ jatinkala$ otool -L `which ncl`<br>
                        /usr/local/ncl-6.3.0/bin/ncl:<br>
                            /opt/X11/lib/libpng15.15.dylib
                        (compatibility version 34.0.0, current version
                        34.0.0)<br>
                            /opt/X11/lib/libcairo.2.dylib (compatibility
                        version 11203.0.0, current version 11203.16.0)<br>
                            /opt/X11/lib/libfontconfig.1.dylib
                        (compatibility version 10.0.0, current version
                        10.0.0)<br>
                            /opt/X11/lib/libpixman-1.0.dylib
                        (compatibility version 33.0.0, current version
                        33.6.0)<br>
                            /opt/X11/lib/libfreetype.6.dylib
                        (compatibility version 18.0.0, current version
                        18.2.0)<br>
                            /opt/X11/lib/libXrender.1.dylib
                        (compatibility version 5.0.0, current version
                        5.0.0)<br>
                            /usr/lib/libbz2.1.0.dylib (compatibility
                        version 1.0.0, current version 1.0.5)<br>
                            /usr/lib/libiconv.2.dylib (compatibility
                        version 7.0.0, current version 7.0.0)<br>
                            /opt/X11/lib/libXpm.4.dylib (compatibility
                        version 16.0.0, current version 16.0.0)<br>
                            /opt/X11/lib/libX11.6.dylib (compatibility
                        version 10.0.0, current version 10.0.0)<br>
                            /opt/X11/lib/libXext.6.dylib (compatibility
                        version 11.0.0, current version 11.0.0)<br>
                            /usr/local/lib/libgfortran.3.dylib
                        (compatibility version 4.0.0, current version
                        4.0.0)<br>
                            /usr/local/lib/libquadmath.0.dylib
                        (compatibility version 1.0.0, current version
                        1.0.0)<br>
                            /usr/local/lib/libstdc++.6.dylib
                        (compatibility version 7.0.0, current version
                        7.20.0)<br>
                            /usr/local/lib/libgomp.1.dylib
                        (compatibility version 2.0.0, current version
                        2.0.0)<br>
                            /usr/lib/libSystem.B.dylib (compatibility
                        version 1.0.0, current version 1213.0.0)<br>
                            /usr/local/lib/libgcc_s.1.dylib
                        (compatibility version 1.0.0, current version
                        1.0.0)<br>
                        134:~ jatinkala$ which gcc<br>
                        /usr/bin/gcc<br>
                        134:~ jatinkala$ which gfortran<br>
                        /usr/local/bin/gfortran<br>
                        134:~ jatinkala$ <br>
                        <br>
                      </div>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">On Tue, Jan 26, 2016 at
                        5:46 AM, Mary Haley <span dir="ltr">&lt;<a
                            moz-do-not-send="true"
                            href="mailto:haley@ucar.edu" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:haley@ucar.edu">haley@ucar.edu</a></a>&gt;</span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <div dir="ltr">
                            <div class="gmail_default"
                              style="font-size:small">Jatin,</div>
                            <div class="gmail_default"
                              style="font-size:small"><br>
                            </div>
                            <div class="gmail_default"
                              style="font-size:small">I think there is
                              something wrong with your environment.  In
                              general, you shouldn't be needing to
                              create softlinks or set DYLD_XXXXX.</div>
                            <div class="gmail_default"
                              style="font-size:small"><br>
                            </div>
                            <div class="gmail_default"
                              style="font-size:small">What does the
                              following report on your system:</div>
                            <div class="gmail_default"
                              style="font-size:small"><br>
                            </div>
                            <div class="gmail_default"
                              style="font-size:small">env | grep NCARG</div>
                            <div class="gmail_default"
                              style="font-size:small">env | grep LD</div>
                            <div class="gmail_default"
                              style="font-size:small">which ncl<br>
                              otool -L `which ncl`</div>
                            <div class="gmail_default"
                              style="font-size:small">which gcc</div>
                            <div class="gmail_default"
                              style="font-size:small">which gfortran</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>
                          <div class="gmail_extra"><br>
                            <div class="gmail_quote">
                              <div>
                                <div>On Sun, Jan 24, 2016 at 6:38 PM,
                                  Jatin Kala <span dir="ltr">&lt;<a
                                      moz-do-not-send="true"
                                      href="mailto:jatin.kala.jk@gmail.com"
                                      target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:jatin.kala.jk@gmail.com">jatin.kala.jk@gmail.com</a></a>&gt;</span>
                                  wrote:<br>
                                </div>
                              </div>
                              <blockquote class="gmail_quote"
                                style="margin:0 0 0 .8ex;border-left:1px
                                #ccc solid;padding-left:1ex">
                                <div>
                                  <div>
                                    <div dir="ltr">
                                      <div>
                                        <div>
                                          <div>
                                            <div>
                                              <div>
                                                <div>
                                                  <div>
                                                    <div>
                                                      <div>Hi,<br>
                                                      </div>
                                                      I am trying to
                                                      install ncl on a
                                                      new mac:<br>
                                                    </div>
                                                    OX X El Capitan,
                                                    10.11.3<br>
                                                    <br>
                                                  </div>
                                                  The pre-compiled
                                                  binary is:<br>
ncl_ncarg-6.3.0.MacOS_10.10_64bit_nodap_gcc492.tar.gz<br>
                                                  <br>
                                                </div>
                                                ncl -v works:<br>
                                                $ ncl -v<br>
                                                Unknown option `-v'<br>
                                                 Copyright (C) 1995-2015
                                                - All Rights Reserved<br>
                                                 University Corporation
                                                for Atmospheric Research<br>
                                                 NCAR Command Language
                                                Version 6.3.0<br>
                                                 The use of this
                                                software is governed by
                                                a License Agreement.<br>
                                                 See <a
                                                  moz-do-not-send="true"
href="http://www.ncl.ucar.edu/" target="_blank"><a class="moz-txt-link-freetext" href="http://www.ncl.ucar.edu/">http://www.ncl.ucar.edu/</a></a>
                                                for more details.<br>
                                                ncl 0&gt; <br>
                                                <br>
                                                <br>
                                              </div>
                                              but the ng4ex command
                                              fails, even though i have
                                              set
                                              DYLD_FALLBACK_LIBRARY_PATH
                                              to gcc5:<br>
                                              <br>
                                              $ echo
                                              $DYLD_FALLBACK_LIBRARY_PATH<br>
                                              /opt/local/lib/gcc5<br>
                                              $ ls -l
                                              /opt/local/lib/gcc5/libgomp.1.dylib
                                              <br>
                                              lrwxr-xr-x  1 root  admin 
                                              37 22 Jan 17:38
                                              /opt/local/lib/gcc5/libgomp.1.dylib
                                              -&gt;
                                              /opt/local/lib/libgcc/libgomp.1.dylib<br>
                                              $ ng4ex gsun01n -clean<br>
                                              dyld: Library not loaded:
/usr/local/lib/libgomp.1.dylib<br>
                                                Referenced from:
                                              /usr/local/ncl-6.3.0/bin/ncargpath<br>
                                                Reason: image not found<br>
                                              Trace/BPT trap<br>
                                              <br>
                                            </div>
                                            contents of .profile:<br>
                                            $ cat ~/.profile <br>
                                            <br>
                                            # MacPorts Installer
                                            addition on
                                            2016-01-22_at_14:17:32:
                                            adding an appropriate PATH
                                            variable for use with
                                            MacPorts.<br>
                                            export
                                            PATH="/opt/local/bin:/opt/local/sbin:$PATH"<br>
                                            # Finished adapting your
                                            PATH environment variable
                                            for use with MacPorts.<br>
                                            export
                                            DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib/gcc5<br>
                                            export
                                            NCARG_ROOT=/usr/local/ncl-6.3.0<br>
                                            export
                                            PATH=$NCARG_ROOT/bin:$PATH<br>
                                            export
                                            DYLD_LIBRARY_PATH=/usr/local/gfortran/lib/<br>
                                            export CLICOLOR=1<br>
                                            export
                                            LSCOLORS=ExFxCxDxBxegedabagacad<br>
                                            <br>
                                            <br>
                                          </div>
                                          Any ideas?<br>
                                        </div>
                                        Cheers,<br>
                                      </div>
                                      Jatin<br>
                                      <div>
                                        <div><br>
                                          <div>
                                            <div><br>
                                              <br>
                                              <br>
                                              <br>
                                              <br>
                                              <br>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                    <br>
                                  </div>
                                </div>
_______________________________________________<br>
                                ncl-install mailing list<br>
                                List instructions, subscriber options,
                                unsubscribe:<br>
                                <a moz-do-not-send="true"
                                  href="http://mailman.ucar.edu/mailman/listinfo/ncl-install"
                                  rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-install</a><br>
                                <br>
                              </blockquote>
                            </div>
                            <br>
                          </div>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                  </blockquote>
                  <br>
                </div>
              </div>
              <span class="HOEnZb"><font color="#888888">
                  <pre cols="72">-- 
Dr. Jatin Kala
Lecturer in Atmospheric Science
Murdoch University,Perth, Western Australia
Tel: <a moz-do-not-send="true" href="tel:%28%2B618%29%209360%206297" value="+61893606297" target="_blank">(+618) 9360 6297</a>
<a moz-do-not-send="true" href="http://www.jatinkala.com/" target="_blank">http://www.jatinkala.com/</a>

</pre>
                </font></span></div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Dr. Jatin Kala
Lecturer in Atmospheric Science
Murdoch University,Perth, Western Australia
Tel: (+618) 9360 6297
<a class="moz-txt-link-freetext" href="http://www.jatinkala.com/">http://www.jatinkala.com/</a>

</pre>
  </body>
</html>