[ncl-install] libudunits2.0.dylib

Mary Haley haley at ucar.edu
Fri Feb 24 15:51:06 MST 2017


Hi Jennifer,

Just an FYI: the MacPort version of NCL is not something that we put out,
so I'm not sure exactly how it was built.

I do wonder why it was working one day, and then not the next day.  It
looks like you do have the shared libraries in /opt/local/lib, for example,
" /opt/local/lib/libudunits2.0.dylib", so the fact that you are getting
this message:

dyld: Library not loaded: /opt/local/lib/libudunits2.0.dylib

is suspicious.

Was your machine upgraded by any chance, or maybe MacPorts was upgraded?

What happens if you type:

ls -l /opt/local/lib/libudunits*

?  I want to see if perhaps libudunits2.0.dylib is pointing to a stale or
empty file.

--Mary


On Thu, Feb 23, 2017 at 6:59 PM, Haase, Jennifer S <jhaase at ucsd.edu> wrote:

> Dear NCAR friends,
>
> I installed ncarg 6.3.0 on two mac workstations (yosemite 10.10.5) on Feb
> 9th using macports listed here:
> https://www.macports.org/ports.php?by=name&substr=ncarg
>
> using the command
> sudo port install ncarg
>
> and ncl worked fine.
>
> Today it doesn’t work, and I get the error:
>
> jhaase at chinle:~> ncl
> dyld: Library not loaded: /opt/local/lib/libudunits2.0.dylib
> Referenced from: /opt/local/bin/ncl
> Reason: image not found
> Trace/BPT trap
> jhaase at chinle:~>
>
> We have tried to reinstall ncarg with macports again today and keep
> getting the same error message along with others.
>
> I saw in a previous ncl-install thread Mary’s instructions to provide the
> following:
>
>
> env | grep NCARG
> env | grep LD
> which ncl
> otool -L `which ncl`
> which gcc
> which gfortran
>
> So I have typed those commands and provide the output below:
>
> jhaase at chinle:~> env | grep NCARG
> NCARG_ROOT=/opt/local
> jhaase at chinle:~> env | grep LD
> LD_LIBRARY_PATH=/opt/local/lib
> jhaase at chinle:~> exit
> logout
> Connection to chinle closed.
> jhaase at moenkopi:docs_system> ssh chinle
> Password:
> Last login: Thu Feb 23 15:42:04 2017 from moenkopi.ucsd.edu
> jhaase at chinle:~>
> jhaase at chinle:~>
> jhaase at chinle:~>
> jhaase at chinle:~> env | grep NCARG
> NCARG_ROOT=/opt/local
> jhaase at chinle:~> env | grep LD
> jhaase at chinle:~> which ncl
> /opt/local/bin/ncl
> jhaase at chinle:~> otool -L `which ncl`
> /opt/local/bin/ncl:
>         /opt/local/lib/libnetcdf.11.dylib (compatibility version 11.0.0,
> current version 11.3.0)
>         /opt/local/lib/hdfeos5/lib/libhe5_hdfeos.0.dylib (compatibility
> version 1.0.0, current version 1.0.0)
>         /opt/local/lib/hdfeos5/lib/libGctp.0.dylib (compatibility version
> 1.0.0, current version 1.0.0)
>         /opt/local/lib/libhdfeos.0.dylib (compatibility version 1.0.0,
> current version 1.0.0)
>         /opt/local/lib/libmfhdf.0.dylib (compatibility version 1.0.0,
> current version 1.0.0)
>         /opt/local/lib/libdf.0.dylib (compatibility version 1.0.0, current
> version 1.0.0)
>         /opt/local/lib/libgdal.20.dylib (compatibility version 22.0.0,
> current version 22.2.0)
>         /opt/local/lib/libproj.12.dylib (compatibility version 13.0.0,
> current version 13.0.0)
>         /opt/local/lib/libjpeg.9.dylib (compatibility version 12.0.0,
> current version 12.0.0)
>         /opt/local/lib/libudunits2.0.dylib (compatibility version 2.0.0,
> current version 2.0.0)
>         /opt/local/lib/libexpat.1.dylib (compatibility version 8.0.0,
> current version 8.2.0)
>         /opt/local/lib/libv5d.2.dylib (compatibility version 3.0.0,
> current version 3.0.0)
>         /opt/local/lib/libjasper.4.dylib (compatibility version 4.0.0,
> current version 5.0.0)
>         /opt/local/lib/libpng16.16.dylib (compatibility version 45.0.0,
> current version 45.0.0)
>         /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current
> version 1.2.11)
>         /opt/local/lib/libcairo.2.dylib (compatibility version 11403.0.0,
> current version 11403.8.0)
>         /opt/local/lib/libfontconfig.1.dylib (compatibility version
> 11.0.0, current version 11.2.0)
>         /opt/local/lib/libpixman-1.0.dylib (compatibility version 35.0.0,
> current version 35.0.0)
>         /opt/local/lib/libfreetype.6.dylib (compatibility version 20.0.0,
> current version 20.0.0)
>         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
> version 1213.0.0)
>         /opt/local/lib/libXrender.1.dylib (compatibility version 5.0.0,
> current version 5.0.0)
>         /opt/local/lib/libbz2.1.0.dylib (compatibility version 1.0.0,
> current version 1.0.6)
>         /opt/local/lib/libXpm.4.dylib (compatibility version 16.0.0,
> current version 16.0.0)
>         /opt/local/lib/libX11.6.dylib (compatibility version 10.0.0,
> current version 10.0.0)
>         /opt/local/lib/libXext.6.dylib (compatibility version 11.0.0,
> current version 11.0.0)
>         /opt/local/lib/libgcc/libgfortran.3.dylib (compatibility version
> 4.0.0, current version 4.0.0)
>         /opt/local/lib/libgcc/libgomp.1.dylib (compatibility version
> 2.0.0, current version 2.0.0)
> jhaase at chinle:~> which gcc
> /usr/bin/gcc
> jhaase at chinle:~> which gfortran
> gfortran: Command not found.
> jhaase at chinle:~> ncl
> dyld: Library not loaded: /opt/local/lib/libudunits2.0.dylib
> Referenced from: /opt/local/bin/ncl
> Reason: image not found
> Trace/BPT trap
> jhaase at chinle:~> ncl -V
> dyld: Library not loaded: /opt/local/lib/libudunits2.0.dylib
> Referenced from: /opt/local/bin/ncl
> Reason: image not found
> Trace/BPT trap
> jhaase at chinle:~>
>
>
>
> Do you have any advice? I was trying to use macports to install ncarg
> uniformly on several machines so that it would be easier to maintain.
>
> Note, in case this is useful, I am not entirely clear on the dependency on
> gfortran.
> I understood that if I installed gcc6 using macports it would include
> gfortran.
> However I have different results when looking for gfortran on the two
> machines, please see below.
> I don’t understand why both machines have gcc6 installed but only one has
> a path to gfortran and it isn’t in the same place as gcc.
> This may be an entirely different problem since ncl does not work on both
> machines.
>
> Machine 1 kaibab
> ------------------------
> jhaase at kaibab:ro_airborne> which gfortran
> /usr/local/bin/gfortran
> jhaase at kaibab:ro_airborne> which gcc
> /usr/bin/gcc
> jhaase at kaibab:ro_airborne> port info gcc6
> gcc6 @6.3.0_1 (lang)
> Sub-ports:            libgcc
> Variants:             universal
> Description:          The GNU compiler collection, including front ends
> for C, C++, Objective-C,
>                     Objective-C++, and Fortran.
> Homepage:             http://gcc.gnu.org/
> Library Dependencies: cctools, gmp, isl, ld64, libgcc, libiconv, libmpc,
> mpfr
> Runtime Dependencies: gcc_select
> Platforms:            darwin
> License:              {GPL-3+ Permissive}
> Maintainers:          none
>
> Machine 2 chinle
> -------------------------
> jhaase at chinle:~> which gfortran
> gfortran: Command not found.
> jhaase at chinle:~> gcc
> clang: error: no input files
> jhaase at chinle:~>
> jhaase at chinle:~>
> jhaase at chinle:~> which gfortran
> gfortran: Command not found.
> jhaase at chinle:~> which gcc
> /usr/bin/gcc
> jhaase at chinle:~> port info gcc6
> gcc6 @6.3.0_1 (lang)
> Sub-ports:            libgcc
> Variants:             universal
> Description:          The GNU compiler collection, including front ends
> for C, C++, Objective-C, Objective-C++, and
>                     Fortran.
> Homepage:             http://gcc.gnu.org/
> Library Dependencies: cctools, gmp, isl, ld64, libgcc, libiconv, libmpc,
> mpfr
> Runtime Dependencies: gcc_select
> Platforms:            darwin
> License:              {GPL-3+ Permissive}
> Maintainers:          none
> jhaase at chinle:~>
>
>
>
> Thank you,
> Jennifer
>
> -------------------------------------------------
> Jennifer S Haase
> Research Geophysicist
> Scripps Institution of Oceanography
> University of California, San Diego
> 9500 Gilman Dr.
> La Jolla, CA 92093-0225
> jhaase at ucsd.edu
> Phone: +1-858-534-8771
> Fax: +1-858-534-9833
>
> "Nature bats last.”
>
>
>
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20170224/2f00ab06/attachment.html 


More information about the ncl-install mailing list