[ncl-install] libudunits2.0.dylib
Trostel, John M.
john.trostel at gtri.gatech.edu
Fri Feb 24 16:01:59 MST 2017
What happens if you soft link /opt/local/lib/libudunits2.dylib to /opt/local/lib/libudunits2.0.dylib?
ln -s /opt/local/lib/libudunits2.dylib /opt/local/lib/libudunits2.0.dylib
--
John Trostel
Director - Severe Storms Research Center
Georgia Tech Research Institute
Atlanta, GA 30332-0857
________________________________________
From: ncl-install-bounces at ucar.edu <ncl-install-bounces at ucar.edu> on behalf of Haase, Jennifer S <jhaase at ucsd.edu>
Sent: Friday, February 24, 2017 5:58 PM
To: Mary Haley
Cc: ncl-install at ucar.edu
Subject: Re: [ncl-install] libudunits2.0.dylib
Hi Mary,
OKay looking at what you suggest, there is a problem with the file name:
jhaase at kaibab:~> ls -l /opt/local/lib/libudunits2.0.dylib
ls: /opt/local/lib/libudunits2.0.dylib: No such file or directory
jhaase at kaibab:~>
jhaase at kaibab:~> ls -l /opt/local/lib/libudunits2*
-rwxr-xr-x 1 root admin 95496 Feb 19 20:38 /opt/local/lib/libudunits2.dylib*
for some reason now it wants 2 instead of 2.0
I don’t know why that changed
Any suggestions for what to do from here?
Jennifer
> On Feb 24, 2017, at 2:51 PM, Mary Haley <haley at ucar.edu> wrote:
>
> 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
>
-------------------------------------------------
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
More information about the ncl-install
mailing list