[ncl-talk] Failure with current Macports version of NCL 6.4.0
Kevin Hallock
hallock at ucar.edu
Mon Jul 23 14:42:02 MDT 2018
Hi Dave,
I’m sorry for the delay in responding to you.
Unfortunately, we (NCL developers) have no control over the Macports version of NCL, so I’m not sure how much we’ll be able to help if using Macports is a requirement.
As an alternative, you may want to try installing NCL using the “conda” package manager (see our documentation <http://ncl.ucar.edu/Download/conda.shtml> for more info). “Conda” is a binary package manager, so it is not necessary to compile NCL (and its dependencies) like it is with Macports, so the installation should take ~2 minutes (mostly spent downloading) rather than 20+. An additional perk of using “conda” is that it’s cross-platform; NCL, PyNGL, PyNIO, and WRF-Python are all available via “conda” for both Mac and Linux (and Windows for WRF-Python). Also, I am the primary maintainer of the “conda-forge” NCL, PyNGL, and PyNIO packages (Bill Ladwig handles WRF-Python), so we are much more involved in the build process on “conda” than we are on Macports.
I hope this helps!
Kevin
> On Jul 20, 2018, at 6:24 PM, Dave Allured - NOAA Affiliate <dave.allured at noaa.gov> wrote:
>
> This might also be important:
>
> mac56:/home/dallured/ncl/6.5.0 136> ldd /opt/local/lib/libnetcdf.11.dylib
> /opt/local/lib/libnetcdf.11.dylib:
> /opt/local/lib/libnetcdf.11.dylib (compatibility version 11.0.0, current version 11.4.0)
> /opt/local/lib/libhdf5_hl.100.dylib (compatibility version 102.0.0, current version 102.0.0)
> /opt/local/lib/libhdf5.101.dylib (compatibility version 103.0.0, current version 103.0.0)
> /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.50.4)
> /opt/local/lib/libcurl.4.dylib (compatibility version 10.0.0, current version 10.0.0)
>
> mac56:/home/dallured/ncl/6.5.0 137> /opt/local/bin/h5dump --version
> h5dump: Version 1.10.2
>
> mac56:/home/dallured/ncl/6.5.0 138> /opt/local/bin/ncdump --version
> <snip>
> netcdf library version 4.4.1.1 of Jun 8 2018 03:07:16 $
>
>
> On Fri, Jul 20, 2018 at 6:07 PM, Dave Allured - NOAA Affiliate <dave.allured at noaa.gov <mailto:dave.allured at noaa.gov>> wrote:
> All,
>
> This minimal test fails with the current Macports NCL version. It seems to work fine with a local NCL 6.4.0 built from source, or with 6.4.0 on our Linux system. We suspect a Macports build problem or library problem.
>
> This should just print "99" if it is working correctly. This fails for all four possible setfileoption format values.
>
> procedure test3 ()
> begin
> setfileoption ("nc", "Format", "Classic")
> x = 99
> print (x+"")
> end
>
> begin
> test3 ()
> end
>
> mac56:/home/dallured/ncl 106> /opt/local/bin/ncl test3.ncl
> NCAR Command Language Version 6.4.0
>
> fatal:Variable (x) is undefined
> fatal:["Execute.c":8640]:Execute: Error occurred at or near line 5 in file test3.ncl
> fatal:["Execute.c":8640]:Execute: Error occurred at or near line 9 in file test3.ncl
>
> Macports version info (trimmed):
>
> mac56:/home/dallured/ncl 108> port info ncarg
> Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'.
> ncarg @6.4.0_9 (science)
> Variants: accelerate, g95, gcc44, gcc45, gcc46, gcc47, gcc48, gcc49, gcc5, gcc6, [+]gcc7
> Build Dependencies: hdf5, triangle, flex, gcc7
> Library Dependencies: cairo, proj, gdal, udunits2, vis5d, hdfeos, hdfeos5, wgrib2, curl, libpng, libxml2, gsl,
> xorg-libXaw, libgcc
> Runtime Dependencies: esmf, rangs-gshhs-ncarg
> Platforms: darwin
>
> System info:
>
> mac56:/home/dallured/ncl 111> uname -a
> Darwin mac56.psd.ad <http://mac56.psd.ad/> 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64
>
> mac56:/home/dallured/ncl 112> ldd /opt/local/bin/ncl
> /opt/local/bin/ncl:
> /opt/local/lib/libnetcdf.11.dylib (compatibility version 11.0.0, current version 11.4.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 25.0.0, current version 25.0.0)
> /opt/local/lib/proj5/lib/libproj.13.dylib (compatibility version 15.0.0, current version 15.0.0)
> /opt/local/lib/libjpeg.9.dylib (compatibility version 13.0.0, current version 13.0.0)
> /opt/local/lib/libudunits2.dylib (compatibility version 0.0.0, current version 0.0.0)
> /opt/local/lib/libexpat.1.dylib (compatibility version 8.0.0, current version 8.7.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 51.0.0, current version 51.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.12.0)
> /opt/local/lib/libXrender.1.dylib (compatibility version 5.0.0, current version 5.0.0)
> /opt/local/lib/libfontconfig.1.dylib (compatibility version 13.0.0, current version 13.1.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 22.0.0, current version 22.0.0)
> /opt/local/lib/libiconv.2.dylib (compatibility version 9.0.0, current version 9.0.0)
> /opt/local/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.6)
> /opt/local/lib/libgsl.23.dylib (compatibility version 24.0.0, current version 24.0.0)
> /opt/local/lib/libgslcblas.0.dylib (compatibility version 1.0.0, current version 1.0.0)
> /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.4.dylib (compatibility version 5.0.0, current version 5.0.0)
> /opt/local/lib/libgcc/libgomp.1.dylib (compatibility version 2.0.0, current version 2.0.0)
> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.50.4)
>
> Does anyone have any insights? Thanks for your help.
>
> --Dave
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180723/5855cd8a/attachment.html>
More information about the ncl-talk
mailing list