[Met_help] [rt.rap.ucar.edu #80053] History for V6.0 Install Issues

John Halley Gotway via RT met_help at ucar.edu
Fri Apr 14 10:58:52 MDT 2017


----------------------------------------------------------------
  Initial Request
----------------------------------------------------------------

Hi,

I'm having trouble getting MET to install.  Here's where it's failing (excerpt from the Make install log):

make[3]: Entering directory `/gpfs/h/WXQC/met-6.0/src/libcode/vx_nc_util'
g++ -DHAVE_CONFIG_H -I. -I../../..  -I../../../src/basic/vx_cal -I../../../src/basic/vx_config -I../../../src/basic/vx_log -I../../../src/basic/vx_math -I../../../src/basic/vx_util -I../../../src/l
ibcode/vx_afm -I../../../src/libcode/vx_analysis_util -I../../../src/libcode/vx_color -I../../../src/libcode/vx_data2d -I../../../src/libcode/vx_data2d_factory -I../../../src/libcode/vx_data2d_grib
 -I../../../src/libcode/vx_data2d_grib2 -I../../../src/libcode/vx_data2d_nccf -I../../../src/libcode/vx_data2d_nc_met -I../../../src/libcode/vx_data2d_nc_pinterp -I../../../src/libcode/vx_geodesy -
I../../../src/libcode/vx_gnomon -I../../../src/libcode/vx_grid -I../../../src/libcode/vx_gsl_prob -I../../../src/libcode/vx_nav -I../../../src/libcode/vx_nc_util -I../../../src/libcode/vx_pb_util -
I../../../src/libcode/vx_plot_util -I../../../src/libcode/vx_ps -I../../../src/libcode/vx_pxm -I../../../src/libcode/vx_render -I../../../src/libcode/vx_regrid -I../../../src/libcode/vx_shapedata -
I../../../src/libcode/vx_solar -I../../../src/libcode/vx_statistics -I../../../src/libcode/vx_stat_out -I../../../src/libcode/vx_time_series -I../../../src/libcode/vx_tc_util -I/h/WXQC/met-5.1/lib/
netcdf-4.1.3/compiled/include -I/h/WXQC/met-5.1/lib/g2clib-1.4.0 -I/h/WXQC/met-5.1/lib/gsl-1.15/include -DBLOCK4 -DWITH_GRIB2 -DMET_BASE="\"/h/WXQC/met-6.0/share/met\""  -g -MT libvx_nc_util_a-nc_v
ar_info.o -MD -MP -MF .deps/libvx_nc_util_a-nc_var_info.Tpo -c -o libvx_nc_util_a-nc_var_info.o `test -f 'nc_var_info.cc' || echo './'`nc_var_info.cc
In file included from nc_var_info.cc:24:
nc_utils.h:22:18: error: netcdf: No such file or directory
In file included from nc_var_info.cc:24:
nc_utils.h:23: error: ânetCDFâ is not a namespace-name
nc_utils.h:23: error: expected namespace-name before â;â token
In file included from nc_var_info.cc:24:
nc_utils.h:66: error: ISO C++ forbids declaration of âNcAttâ with no type
nc_utils.h:66: error: expected â,â or â...â before â*â token

Indeed there is no file named "netcdf" in the directory.  I see it's the result of an "include <netcdf>" statement, but I can't tell if this is assumed to be an environmental variable or if there should be a physical file by that name.

I can provide more if you need it.  Sorry about those extraneous "â" characters... I'm not sure why they are there.

Thanks,
Matt



----------------------------------------------------------------
  Complete Ticket History
----------------------------------------------------------------

Subject: V6.0 Install Issues
From: John Halley Gotway
Time: Tue Apr 04 13:18:44 2017

Hello Matt,

I'm not surprised that you'd receive an error when compiling MET 6.0
using
the previous MET 5.2 environment.  In 6.0 we've made a large change
from
using NetCDF 3 to 4.

You'll need to have both NetCDF 4 and HDF5, upon which NetCDF 4 is
built,
installed.  Please take a look at the MET Users Guide, the online
tutorial,
or run ./configure --help for info about compiling.

Thanks,
John

On Tue, Apr 4, 2017 at 3:08 PM, SITTEL, MATTHEW C CTR USAF AFWA 16
WS/WXN
via RT <met_help at ucar.edu> wrote:

>
> Tue Apr 04 13:08:45 2017: Request 80053 was acted upon.
> Transaction: Ticket created by matthew.sittel.ctr at us.af.mil
>        Queue: met_help
>      Subject: V6.0 Install Issues
>        Owner: Nobody
>   Requestors: matthew.sittel.ctr at us.af.mil
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
>
>
> Hi,
>
> I'm having trouble getting MET to install.  Here's where it's
failing
> (excerpt from the Make install log):
>
> make[3]: Entering directory `/gpfs/h/WXQC/met-
6.0/src/libcode/vx_nc_util'
> g++ -DHAVE_CONFIG_H -I. -I../../..  -I../../../src/basic/vx_cal
> -I../../../src/basic/vx_config -I../../../src/basic/vx_log
> -I../../../src/basic/vx_math -I../../../src/basic/vx_util
-I../../../src/l
> ibcode/vx_afm -I../../../src/libcode/vx_analysis_util
> -I../../../src/libcode/vx_color -I../../../src/libcode/vx_data2d
> -I../../../src/libcode/vx_data2d_factory -I../../../src/libcode/vx_
> data2d_grib
>  -I../../../src/libcode/vx_data2d_grib2
-I../../../src/libcode/vx_data2d_nccf
> -I../../../src/libcode/vx_data2d_nc_met
-I../../../src/libcode/vx_data2d_nc_pinterp
> -I../../../src/libcode/vx_geodesy -
> I../../../src/libcode/vx_gnomon -I../../../src/libcode/vx_grid
> -I../../../src/libcode/vx_gsl_prob -I../../../src/libcode/vx_nav
> -I../../../src/libcode/vx_nc_util -I../../../src/libcode/vx_pb_util
-
> I../../../src/libcode/vx_plot_util -I../../../src/libcode/vx_ps
> -I../../../src/libcode/vx_pxm -I../../../src/libcode/vx_render
> -I../../../src/libcode/vx_regrid -I../../../src/libcode/vx_shapedata
-
> I../../../src/libcode/vx_solar -I../../../src/libcode/vx_statistics
> -I../../../src/libcode/vx_stat_out
-I../../../src/libcode/vx_time_series
> -I../../../src/libcode/vx_tc_util -I/h/WXQC/met-5.1/lib/
> netcdf-4.1.3/compiled/include -I/h/WXQC/met-5.1/lib/g2clib-1.4.0
> -I/h/WXQC/met-5.1/lib/gsl-1.15/include -DBLOCK4 -DWITH_GRIB2
> -DMET_BASE="\"/h/WXQC/met-6.0/share/met\""  -g -MT libvx_nc_util_a-
nc_v
> ar_info.o -MD -MP -MF .deps/libvx_nc_util_a-nc_var_info.Tpo -c -o
> libvx_nc_util_a-nc_var_info.o `test -f 'nc_var_info.cc' || echo
> './'`nc_var_info.cc
> In file included from nc_var_info.cc:24:
> nc_utils.h:22:18: error: netcdf: No such file or directory
> In file included from nc_var_info.cc:24:
> nc_utils.h:23: error: ânetCDFâ is not a namespace-name
> nc_utils.h:23: error: expected namespace-name before â;â token
> In file included from nc_var_info.cc:24:
> nc_utils.h:66: error: ISO C++ forbids declaration of âNcAttâ with no
type
> nc_utils.h:66: error: expected â,â or â...â before â*â token
>
> Indeed there is no file named "netcdf" in the directory.  I see it's
the
> result of an "include <netcdf>" statement, but I can't tell if this
is
> assumed to be an environmental variable or if there should be a
physical
> file by that name.
>
> I can provide more if you need it.  Sorry about those extraneous "â"
> characters... I'm not sure why they are there.
>
> Thanks,
> Matt
>
>
>

------------------------------------------------
Subject: RE: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0 Install Issues
From: SITTEL, MATTHEW C CTR USAF AFWA 16 WS/WXN
Time: Tue Apr 04 14:26:56 2017

Hi John,

I have version 4.1.3 for NetCDF (we used it to build 5.2), and I have
all 3 sets of HDF libraries installed: HDF (4.2.3), HDF5 (5.1.10.0)
and HDFEOS.

I think I have the directories in the Makefile, populated by
environment variables, set correctly, as follows:

MET_BUFR = /h/WXQC/met-6.0/lib/BUFRLIB_v10-0-1
MET_BUFRLIB = /h/WXQC/met-6.0/lib/BUFRLIB_v10-0-1
MET_CAIRO =
MET_CAIROINC =
MET_CAIROLIB =
MET_FREETYPE =
MET_FREETYPEINC =
MET_FREETYPELIB =
MET_GRIB2C = /h/WXQC/met-6.0/lib/g2clib-1.4.0
MET_GRIB2CINC = /h/WXQC/met-6.0/lib/g2clib-1.4.0
MET_GRIB2CLIB = /h/WXQC/met-6.0/lib/g2clib-1.4.0
MET_GSL = /h/WXQC/met-6.0/lib/gsl-1.15
MET_GSLINC = ${MET_GSL}/include
MET_GSLLIB = ${MET_GSL}/lib
MET_HDF = /h/WXQC/met-6.0/lib/HDF4.2r3
MET_HDF5 = /h/WXQC/met-6.0/lib/hdf5-1.10.0
MET_HDF5INC = ${MET_HDF5}/include
MET_HDF5LIB = ${MET_HDF5}/lib
MET_HDFEOS = /h/WXQC/met-6.0/lib/hdfeos
MET_HDFEOSINC = ${MET_HDFEOS}/include
MET_HDFEOSLIB = ${MET_HDFEOS}/lib
MET_HDFINC = ${MET_HDF}/include
MET_HDFLIB = ${MET_HDF}/lib
MET_NETCDF = /h/WXQC/met-6.0/lib/netcdf-4.1.3
MET_NETCDFINC = ${MET_NETCDF}/include
MET_NETCDFLIB = ${MET_NETCDF}/lib

Do you see anything here that might be the issue?

Thanks,
Matt

-----Original Message-----
From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
Sent: Tuesday, April 4, 2017 2:19 PM
To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL
<matthew.sittel.ctr at us.af.mil>
Subject: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0 Install
Issues

Hello Matt,

I'm not surprised that you'd receive an error when compiling MET 6.0
using the previous MET 5.2 environment.  In 6.0 we've made a large
change from using NetCDF 3 to 4.

You'll need to have both NetCDF 4 and HDF5, upon which NetCDF 4 is
built, installed.  Please take a look at the MET Users Guide, the
online tutorial, or run ./configure --help for info about compiling.

Thanks,
John

On Tue, Apr 4, 2017 at 3:08 PM, SITTEL, MATTHEW C CTR USAF AFWA 16
WS/WXN via RT <met_help at ucar.edu> wrote:

>
> Tue Apr 04 13:08:45 2017: Request 80053 was acted upon.
> Transaction: Ticket created by matthew.sittel.ctr at us.af.mil
>        Queue: met_help
>      Subject: V6.0 Install Issues
>        Owner: Nobody
>   Requestors: matthew.sittel.ctr at us.af.mil
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053
> >
>
>
> Hi,
>
> I'm having trouble getting MET to install.  Here's where it's
failing
> (excerpt from the Make install log):
>
> make[3]: Entering directory `/gpfs/h/WXQC/met-
6.0/src/libcode/vx_nc_util'
> g++ -DHAVE_CONFIG_H -I. -I../../..  -I../../../src/basic/vx_cal
> -I../../../src/basic/vx_config -I../../../src/basic/vx_log
> -I../../../src/basic/vx_math -I../../../src/basic/vx_util
> -I../../../src/l ibcode/vx_afm
-I../../../src/libcode/vx_analysis_util
> -I../../../src/libcode/vx_color -I../../../src/libcode/vx_data2d
> -I../../../src/libcode/vx_data2d_factory -I../../../src/libcode/vx_
> data2d_grib
>  -I../../../src/libcode/vx_data2d_grib2
> -I../../../src/libcode/vx_data2d_nccf
> -I../../../src/libcode/vx_data2d_nc_met
> -I../../../src/libcode/vx_data2d_nc_pinterp
> -I../../../src/libcode/vx_geodesy -
> I../../../src/libcode/vx_gnomon -I../../../src/libcode/vx_grid
> -I../../../src/libcode/vx_gsl_prob -I../../../src/libcode/vx_nav
> -I../../../src/libcode/vx_nc_util -I../../../src/libcode/vx_pb_util
-
> I../../../src/libcode/vx_plot_util -I../../../src/libcode/vx_ps
> -I../../../src/libcode/vx_pxm -I../../../src/libcode/vx_render
> -I../../../src/libcode/vx_regrid -I../../../src/libcode/vx_shapedata
-
> I../../../src/libcode/vx_solar -I../../../src/libcode/vx_statistics
> -I../../../src/libcode/vx_stat_out
> -I../../../src/libcode/vx_time_series
> -I../../../src/libcode/vx_tc_util -I/h/WXQC/met-5.1/lib/
> netcdf-4.1.3/compiled/include -I/h/WXQC/met-5.1/lib/g2clib-1.4.0
> -I/h/WXQC/met-5.1/lib/gsl-1.15/include -DBLOCK4 -DWITH_GRIB2
> -DMET_BASE="\"/h/WXQC/met-6.0/share/met\""  -g -MT
> libvx_nc_util_a-nc_v ar_info.o -MD -MP -MF
> .deps/libvx_nc_util_a-nc_var_info.Tpo -c -o
> libvx_nc_util_a-nc_var_info.o `test -f 'nc_var_info.cc' || echo
> './'`nc_var_info.cc In file included from nc_var_info.cc:24:
> nc_utils.h:22:18: error: netcdf: No such file or directory In file
> included from nc_var_info.cc:24:
> nc_utils.h:23: error: ânetCDFâ is not a namespace-name
> nc_utils.h:23: error: expected namespace-name before â;â token In
file
> included from nc_var_info.cc:24:
> nc_utils.h:66: error: ISO C++ forbids declaration of âNcAttâ with no
> type
> nc_utils.h:66: error: expected â,â or â...â before â*â token
>
> Indeed there is no file named "netcdf" in the directory.  I see it's
> the result of an "include <netcdf>" statement, but I can't tell if
> this is assumed to be an environmental variable or if there should
be
> a physical file by that name.
>
> I can provide more if you need it.  Sorry about those extraneous "â"
> characters... I'm not sure why they are there.
>
> Thanks,
> Matt
>
>
>



------------------------------------------------
Subject: V6.0 Install Issues
From: John Halley Gotway
Time: Tue Apr 04 14:48:31 2017

Matt,

I'm not an expert on NetCDF, but I've learned that there are *many*
ways of
configuring it!

Here are the commands I used today to build the latest versions of
HDF5 and
NetCDF4 with GNU compilers on my Mac today for compiling MET.  NetCDF
is
split across 2 packages... one for C and one for C++.

In the commands below, you'd need to adjust the paths which include
"/Users/johnhg/MET/external_libs"
to work on your machine. Or if you have root access, you could remove
"--prefix" and let autoconf install into it's default location of
/usr/local.

John

# Compilers

setenv CC `which gcc`

setenv CXX `which g++`

setenv FC `which gfortran`
setenv F77 `which gfortran`

# HDF5

wget
https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.0-
patch1/src/hdf5-1.10.0-patch1.tar

tar -xvzf hdf5-1.10.0-patch1.tar

cd hdf5-1.10.0-patch1

./configure --prefix=/Users/johnhg/MET/external_libs

make install

# NetCDF-C

wget https://github.com/Unidata/netcdf-c/archive/v4.4.1.1.zip

unzip v4.4.1.1.zip

cd netcdf-c-4.4.1.1

./configure --prefix=/Users/johnhg/MET/external_libs
LDFLAGS=-L/Users/johnhg/MET/external_libs/lib
CPPFLAGS=-I/Users/johnhg/MET/external_libs/include

make install

# NetCDF-CXX

wget https://github.com/Unidata/netcdf-cxx4/archive/v4.3.0.tar.gz

tar -xvzf v4.3.0.tar.gz

cd netcdf-cxx4-4.3.0

./configure --prefix=/Users/johnhg/MET/external_libs
LDFLAGS=-L/Users/johnhg/MET/external_libs/lib
CPPFLAGS=-I/Users/johnhg/MET/external_libs/include
make install

On Tue, Apr 4, 2017 at 4:26 PM, SITTEL, MATTHEW C CTR USAF AFWA 16
WS/WXN
via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
>
> Hi John,
>
> I have version 4.1.3 for NetCDF (we used it to build 5.2), and I
have all
> 3 sets of HDF libraries installed: HDF (4.2.3), HDF5 (5.1.10.0) and
HDFEOS.
>
> I think I have the directories in the Makefile, populated by
environment
> variables, set correctly, as follows:
>
> MET_BUFR = /h/WXQC/met-6.0/lib/BUFRLIB_v10-0-1
> MET_BUFRLIB = /h/WXQC/met-6.0/lib/BUFRLIB_v10-0-1
> MET_CAIRO =
> MET_CAIROINC =
> MET_CAIROLIB =
> MET_FREETYPE =
> MET_FREETYPEINC =
> MET_FREETYPELIB =
> MET_GRIB2C = /h/WXQC/met-6.0/lib/g2clib-1.4.0
> MET_GRIB2CINC = /h/WXQC/met-6.0/lib/g2clib-1.4.0
> MET_GRIB2CLIB = /h/WXQC/met-6.0/lib/g2clib-1.4.0
> MET_GSL = /h/WXQC/met-6.0/lib/gsl-1.15
> MET_GSLINC = ${MET_GSL}/include
> MET_GSLLIB = ${MET_GSL}/lib
> MET_HDF = /h/WXQC/met-6.0/lib/HDF4.2r3
> MET_HDF5 = /h/WXQC/met-6.0/lib/hdf5-1.10.0
> MET_HDF5INC = ${MET_HDF5}/include
> MET_HDF5LIB = ${MET_HDF5}/lib
> MET_HDFEOS = /h/WXQC/met-6.0/lib/hdfeos
> MET_HDFEOSINC = ${MET_HDFEOS}/include
> MET_HDFEOSLIB = ${MET_HDFEOS}/lib
> MET_HDFINC = ${MET_HDF}/include
> MET_HDFLIB = ${MET_HDF}/lib
> MET_NETCDF = /h/WXQC/met-6.0/lib/netcdf-4.1.3
> MET_NETCDFINC = ${MET_NETCDF}/include
> MET_NETCDFLIB = ${MET_NETCDF}/lib
>
> Do you see anything here that might be the issue?
>
> Thanks,
> Matt
>
> -----Original Message-----
> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> Sent: Tuesday, April 4, 2017 2:19 PM
> To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> matthew.sittel.ctr at us.af.mil>
> Subject: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0 Install
Issues
>
> Hello Matt,
>
> I'm not surprised that you'd receive an error when compiling MET 6.0
using
> the previous MET 5.2 environment.  In 6.0 we've made a large change
from
> using NetCDF 3 to 4.
>
> You'll need to have both NetCDF 4 and HDF5, upon which NetCDF 4 is
built,
> installed.  Please take a look at the MET Users Guide, the online
tutorial,
> or run ./configure --help for info about compiling.
>
> Thanks,
> John
>
> On Tue, Apr 4, 2017 at 3:08 PM, SITTEL, MATTHEW C CTR USAF AFWA 16
WS/WXN
> via RT <met_help at ucar.edu> wrote:
>
> >
> > Tue Apr 04 13:08:45 2017: Request 80053 was acted upon.
> > Transaction: Ticket created by matthew.sittel.ctr at us.af.mil
> >        Queue: met_help
> >      Subject: V6.0 Install Issues
> >        Owner: Nobody
> >   Requestors: matthew.sittel.ctr at us.af.mil
> >       Status: new
> >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053
> > >
> >
> >
> > Hi,
> >
> > I'm having trouble getting MET to install.  Here's where it's
failing
> > (excerpt from the Make install log):
> >
> > make[3]: Entering directory `/gpfs/h/WXQC/met-6.0/src/
> libcode/vx_nc_util'
> > g++ -DHAVE_CONFIG_H -I. -I../../..  -I../../../src/basic/vx_cal
> > -I../../../src/basic/vx_config -I../../../src/basic/vx_log
> > -I../../../src/basic/vx_math -I../../../src/basic/vx_util
> > -I../../../src/l ibcode/vx_afm
-I../../../src/libcode/vx_analysis_util
> > -I../../../src/libcode/vx_color -I../../../src/libcode/vx_data2d
> > -I../../../src/libcode/vx_data2d_factory
-I../../../src/libcode/vx_
> > data2d_grib
> >  -I../../../src/libcode/vx_data2d_grib2
> > -I../../../src/libcode/vx_data2d_nccf
> > -I../../../src/libcode/vx_data2d_nc_met
> > -I../../../src/libcode/vx_data2d_nc_pinterp
> > -I../../../src/libcode/vx_geodesy -
> > I../../../src/libcode/vx_gnomon -I../../../src/libcode/vx_grid
> > -I../../../src/libcode/vx_gsl_prob -I../../../src/libcode/vx_nav
> > -I../../../src/libcode/vx_nc_util
-I../../../src/libcode/vx_pb_util -
> > I../../../src/libcode/vx_plot_util -I../../../src/libcode/vx_ps
> > -I../../../src/libcode/vx_pxm -I../../../src/libcode/vx_render
> > -I../../../src/libcode/vx_regrid
-I../../../src/libcode/vx_shapedata -
> > I../../../src/libcode/vx_solar
-I../../../src/libcode/vx_statistics
> > -I../../../src/libcode/vx_stat_out
> > -I../../../src/libcode/vx_time_series
> > -I../../../src/libcode/vx_tc_util -I/h/WXQC/met-5.1/lib/
> > netcdf-4.1.3/compiled/include -I/h/WXQC/met-5.1/lib/g2clib-1.4.0
> > -I/h/WXQC/met-5.1/lib/gsl-1.15/include -DBLOCK4 -DWITH_GRIB2
> > -DMET_BASE="\"/h/WXQC/met-6.0/share/met\""  -g -MT
> > libvx_nc_util_a-nc_v ar_info.o -MD -MP -MF
> > .deps/libvx_nc_util_a-nc_var_info.Tpo -c -o
> > libvx_nc_util_a-nc_var_info.o `test -f 'nc_var_info.cc' || echo
> > './'`nc_var_info.cc In file included from nc_var_info.cc:24:
> > nc_utils.h:22:18: error: netcdf: No such file or directory In file
> > included from nc_var_info.cc:24:
> > nc_utils.h:23: error: ânetCDFâ is not a namespace-name
> > nc_utils.h:23: error: expected namespace-name before â;â token In
file
> > included from nc_var_info.cc:24:
> > nc_utils.h:66: error: ISO C++ forbids declaration of âNcAttâ with
no
> > type
> > nc_utils.h:66: error: expected â,â or â...â before â*â token
> >
> > Indeed there is no file named "netcdf" in the directory.  I see
it's
> > the result of an "include <netcdf>" statement, but I can't tell if
> > this is assumed to be an environmental variable or if there should
be
> > a physical file by that name.
> >
> > I can provide more if you need it.  Sorry about those extraneous
"â"
> > characters... I'm not sure why they are there.
> >
> > Thanks,
> > Matt
> >
> >
> >
>
>
>
>

------------------------------------------------
Subject: RE: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0 Install Issues
From: SITTEL, MATTHEW C CTR USAF AFWA 16 WS/WXN
Time: Wed Apr 05 07:26:11 2017

We were using 4.1.3 so I updated the versions and got both of those
downloaded (funny, USAF lets us download the libraries but not MET)
and installed.

I'm still getting that same error though.  It gets tripped up on this
line from nc_utils.h:

#include <netcdf>
using namespace netCDF;

The error message is always the same:

In file included from nc_var_info.cc:24:
nc_utils.h:22:18: error: netcdf: No such file or directory
In file included from nc_var_info.cc:24:
nc_utils.h:23: error: netCDF is not a namespace-name
nc_utils.h:23: error: expected namespace-name before ; token

The part I'm missing is where "netcdf" gets defined.  Is it meant to
be an environment variable?  I have a whole bunch of export commands
in a separate batch file so the configure properly sets the directory
paths, but something must not be set correctly to get that variable
name defined.

I updated the line in my batch file to:

export MET_NETCDF=/h/WXQC/met-6.0/lib/netcdf-c-4.4.1.1

If both this and 4.3.0 are needed, do I need to explicitly set the
other version somewhere so the build has both available?

Matt

-----Original Message-----
From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
Sent: Tuesday, April 4, 2017 3:49 PM
To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL
<matthew.sittel.ctr at us.af.mil>
Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
Install Issues

Matt,

I'm not an expert on NetCDF, but I've learned that there are *many*
ways of configuring it!

Here are the commands I used today to build the latest versions of
HDF5 and
NetCDF4 with GNU compilers on my Mac today for compiling MET.  NetCDF
is split across 2 packages... one for C and one for C++.

In the commands below, you'd need to adjust the paths which include
"/Users/johnhg/MET/external_libs"
to work on your machine. Or if you have root access, you could remove
"--prefix" and let autoconf install into it's default location of
/usr/local.

John

# Compilers

setenv CC `which gcc`

setenv CXX `which g++`

setenv FC `which gfortran`
setenv F77 `which gfortran`

# HDF5

wget
https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.0-
patch1/src/hdf5-1.10.0-patch1.tar

tar -xvzf hdf5-1.10.0-patch1.tar

cd hdf5-1.10.0-patch1

./configure --prefix=/Users/johnhg/MET/external_libs

make install

# NetCDF-C

wget https://github.com/Unidata/netcdf-c/archive/v4.4.1.1.zip

unzip v4.4.1.1.zip

cd netcdf-c-4.4.1.1

./configure --prefix=/Users/johnhg/MET/external_libs
LDFLAGS=-L/Users/johnhg/MET/external_libs/lib
CPPFLAGS=-I/Users/johnhg/MET/external_libs/include

make install

# NetCDF-CXX

wget https://github.com/Unidata/netcdf-cxx4/archive/v4.3.0.tar.gz

tar -xvzf v4.3.0.tar.gz

cd netcdf-cxx4-4.3.0

./configure --prefix=/Users/johnhg/MET/external_libs
LDFLAGS=-L/Users/johnhg/MET/external_libs/lib
CPPFLAGS=-I/Users/johnhg/MET/external_libs/include
make install

On Tue, Apr 4, 2017 at 4:26 PM, SITTEL, MATTHEW C CTR USAF AFWA 16
WS/WXN via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
>
> Hi John,
>
> I have version 4.1.3 for NetCDF (we used it to build 5.2), and I
have
> all
> 3 sets of HDF libraries installed: HDF (4.2.3), HDF5 (5.1.10.0) and
HDFEOS.
>
> I think I have the directories in the Makefile, populated by
> environment variables, set correctly, as follows:
>
> MET_BUFR = /h/WXQC/met-6.0/lib/BUFRLIB_v10-0-1
> MET_BUFRLIB = /h/WXQC/met-6.0/lib/BUFRLIB_v10-0-1
> MET_CAIRO =
> MET_CAIROINC =
> MET_CAIROLIB =
> MET_FREETYPE =
> MET_FREETYPEINC =
> MET_FREETYPELIB =
> MET_GRIB2C = /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GRIB2CINC =
> /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GRIB2CLIB =
> /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GSL =
> /h/WXQC/met-6.0/lib/gsl-1.15 MET_GSLINC = ${MET_GSL}/include
> MET_GSLLIB = ${MET_GSL}/lib MET_HDF = /h/WXQC/met-6.0/lib/HDF4.2r3
> MET_HDF5 = /h/WXQC/met-6.0/lib/hdf5-1.10.0 MET_HDF5INC =
> ${MET_HDF5}/include MET_HDF5LIB = ${MET_HDF5}/lib MET_HDFEOS =
> /h/WXQC/met-6.0/lib/hdfeos MET_HDFEOSINC = ${MET_HDFEOS}/include
> MET_HDFEOSLIB = ${MET_HDFEOS}/lib MET_HDFINC = ${MET_HDF}/include
> MET_HDFLIB = ${MET_HDF}/lib MET_NETCDF =
> /h/WXQC/met-6.0/lib/netcdf-4.1.3 MET_NETCDFINC =
${MET_NETCDF}/include
> MET_NETCDFLIB = ${MET_NETCDF}/lib
>
> Do you see anything here that might be the issue?
>
> Thanks,
> Matt
>
> -----Original Message-----
> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> Sent: Tuesday, April 4, 2017 2:19 PM
> To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> matthew.sittel.ctr at us.af.mil>
> Subject: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0 Install
> Issues
>
> Hello Matt,
>
> I'm not surprised that you'd receive an error when compiling MET 6.0
> using the previous MET 5.2 environment.  In 6.0 we've made a large
> change from using NetCDF 3 to 4.
>
> You'll need to have both NetCDF 4 and HDF5, upon which NetCDF 4 is
> built, installed.  Please take a look at the MET Users Guide, the
> online tutorial, or run ./configure --help for info about compiling.
>
> Thanks,
> John
>
> On Tue, Apr 4, 2017 at 3:08 PM, SITTEL, MATTHEW C CTR USAF AFWA 16
> WS/WXN via RT <met_help at ucar.edu> wrote:
>
> >
> > Tue Apr 04 13:08:45 2017: Request 80053 was acted upon.
> > Transaction: Ticket created by matthew.sittel.ctr at us.af.mil
> >        Queue: met_help
> >      Subject: V6.0 Install Issues
> >        Owner: Nobody
> >   Requestors: matthew.sittel.ctr at us.af.mil
> >       Status: new
> >  Ticket <URL:
> > https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053
> > >
> >
> >
> > Hi,
> >
> > I'm having trouble getting MET to install.  Here's where it's
> > failing (excerpt from the Make install log):
> >
> > make[3]: Entering directory `/gpfs/h/WXQC/met-6.0/src/
> libcode/vx_nc_util'
> > g++ -DHAVE_CONFIG_H -I. -I../../..  -I../../../src/basic/vx_cal
> > -I../../../src/basic/vx_config -I../../../src/basic/vx_log
> > -I../../../src/basic/vx_math -I../../../src/basic/vx_util
> > -I../../../src/l ibcode/vx_afm
> > -I../../../src/libcode/vx_analysis_util
> > -I../../../src/libcode/vx_color -I../../../src/libcode/vx_data2d
> > -I../../../src/libcode/vx_data2d_factory
-I../../../src/libcode/vx_
> > data2d_grib
> >  -I../../../src/libcode/vx_data2d_grib2
> > -I../../../src/libcode/vx_data2d_nccf
> > -I../../../src/libcode/vx_data2d_nc_met
> > -I../../../src/libcode/vx_data2d_nc_pinterp
> > -I../../../src/libcode/vx_geodesy -
> > I../../../src/libcode/vx_gnomon -I../../../src/libcode/vx_grid
> > -I../../../src/libcode/vx_gsl_prob -I../../../src/libcode/vx_nav
> > -I../../../src/libcode/vx_nc_util
-I../../../src/libcode/vx_pb_util
> > - I../../../src/libcode/vx_plot_util -I../../../src/libcode/vx_ps
> > -I../../../src/libcode/vx_pxm -I../../../src/libcode/vx_render
> > -I../../../src/libcode/vx_regrid
-I../../../src/libcode/vx_shapedata
> > - I../../../src/libcode/vx_solar
> > -I../../../src/libcode/vx_statistics
> > -I../../../src/libcode/vx_stat_out
> > -I../../../src/libcode/vx_time_series
> > -I../../../src/libcode/vx_tc_util -I/h/WXQC/met-5.1/lib/
> > netcdf-4.1.3/compiled/include -I/h/WXQC/met-5.1/lib/g2clib-1.4.0
> > -I/h/WXQC/met-5.1/lib/gsl-1.15/include -DBLOCK4 -DWITH_GRIB2
> > -DMET_BASE="\"/h/WXQC/met-6.0/share/met\""  -g -MT
> > libvx_nc_util_a-nc_v ar_info.o -MD -MP -MF
> > .deps/libvx_nc_util_a-nc_var_info.Tpo -c -o
> > libvx_nc_util_a-nc_var_info.o `test -f 'nc_var_info.cc' || echo
> > './'`nc_var_info.cc In file included from nc_var_info.cc:24:
> > nc_utils.h:22:18: error: netcdf: No such file or directory In file
> > included from nc_var_info.cc:24:
> > nc_utils.h:23: error: ânetCDFâ is not a namespace-name
> > nc_utils.h:23: error: expected namespace-name before â;â token In
> > file included from nc_var_info.cc:24:
> > nc_utils.h:66: error: ISO C++ forbids declaration of âNcAttâ with
no
> > type
> > nc_utils.h:66: error: expected â,â or â...â before â*â token
> >
> > Indeed there is no file named "netcdf" in the directory.  I see
it's
> > the result of an "include <netcdf>" statement, but I can't tell if
> > this is assumed to be an environmental variable or if there should
> > be a physical file by that name.
> >
> > I can provide more if you need it.  Sorry about those extraneous
"â"
> > characters... I'm not sure why they are there.
> >
> > Thanks,
> > Matt
> >
> >
> >
>
>
>
>



------------------------------------------------
Subject: V6.0 Install Issues
From: John Halley Gotway
Time: Wed Apr 05 07:51:57 2017

Matt,

Yes, good point.  Since NetCDF4 is split out into multiple pieces,
we'll
need to give some thought for how to set this up and configure MET.
Setting MET_NETCDF to point to only netcdf-c-4.4.1.1 won't work well.

On systems in which I don't have root permission, I usually pick a
single
directory and then install all the dependencies into that single
location.
Here are some commands you might use.  Note that the last step sets
MET_NETCDF to point to the library directory we're creating.

Please let me know how this all goes.

Thanks,
John

# Create single library installation directory

setenv MET_LIB_DIR /h/WXQC/MET_external_libs

mkdir -p $MET_LIB_DIR

cd $MET_LIB_DIR

# Compilers

setenv CC `which gcc`

setenv CXX `which g++`

setenv FC `which gfortran`

setenv F77 `which gfortran`

# HDF5

wget
https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.0-
patch1/src/hdf5-1.10.0-patch1.tar

tar -xvzf hdf5-1.10.0-patch1.tar

cd hdf5-1.10.0-patch1

./configure --prefix=${MET_LIB_DIR}

make install

# NetCDF-C

wget https://github.com/Unidata/netcdf-c/archive/v4.4.1.1.zip

unzip v4.4.1.1.zip

cd netcdf-c-4.4.1.1

./configure --prefix=${MET_LIB_DIR} LDFLAGS=-L${MET_LIB_DIR}/lib
CPPFLAGS=-I${MET_LIB_DIR}/include

make install

# NetCDF-CXX

wget https://github.com/Unidata/netcdf-cxx4/archive/v4.3.0.tar.gz

tar -xvzf v4.3.0.tar.gz

cd netcdf-cxx4-4.3.0

./configure --prefix=${MET_LIB_DIR} LDFLAGS=-L${MET_LIB_DIR}/lib
CPPFLAGS=-I${MET_LIB_DIR}/include

make install


# Set MET_NETCDF

setenv MET_NETCDF ${MET_LIB_DIR}


On Wed, Apr 5, 2017 at 9:26 AM, SITTEL, MATTHEW C CTR USAF AFWA 16
WS/WXN
via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
>
> We were using 4.1.3 so I updated the versions and got both of those
> downloaded (funny, USAF lets us download the libraries but not MET)
and
> installed.
>
> I'm still getting that same error though.  It gets tripped up on
this line
> from nc_utils.h:
>
> #include <netcdf>
> using namespace netCDF;
>
> The error message is always the same:
>
> In file included from nc_var_info.cc:24:
> nc_utils.h:22:18: error: netcdf: No such file or directory
> In file included from nc_var_info.cc:24:
> nc_utils.h:23: error: netCDF is not a namespace-name
> nc_utils.h:23: error: expected namespace-name before ; token
>
> The part I'm missing is where "netcdf" gets defined.  Is it meant to
be an
> environment variable?  I have a whole bunch of export commands in a
> separate batch file so the configure properly sets the directory
paths, but
> something must not be set correctly to get that variable name
defined.
>
> I updated the line in my batch file to:
>
> export MET_NETCDF=/h/WXQC/met-6.0/lib/netcdf-c-4.4.1.1
>
> If both this and 4.3.0 are needed, do I need to explicitly set the
other
> version somewhere so the build has both available?
>
> Matt
>
> -----Original Message-----
> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> Sent: Tuesday, April 4, 2017 3:49 PM
> To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> matthew.sittel.ctr at us.af.mil>
> Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
Install
> Issues
>
> Matt,
>
> I'm not an expert on NetCDF, but I've learned that there are *many*
ways
> of configuring it!
>
> Here are the commands I used today to build the latest versions of
HDF5 and
> NetCDF4 with GNU compilers on my Mac today for compiling MET.
NetCDF is
> split across 2 packages... one for C and one for C++.
>
> In the commands below, you'd need to adjust the paths which include
> "/Users/johnhg/MET/external_libs"
> to work on your machine. Or if you have root access, you could
remove
> "--prefix" and let autoconf install into it's default location of
> /usr/local.
>
> John
>
> # Compilers
>
> setenv CC `which gcc`
>
> setenv CXX `which g++`
>
> setenv FC `which gfortran`
> setenv F77 `which gfortran`
>
> # HDF5
>
> wget
> https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/
> hdf5-1.10.0-patch1/src/hdf5-1.10.0-patch1.tar
>
> tar -xvzf hdf5-1.10.0-patch1.tar
>
> cd hdf5-1.10.0-patch1
>
> ./configure --prefix=/Users/johnhg/MET/external_libs
>
> make install
>
> # NetCDF-C
>
> wget https://github.com/Unidata/netcdf-c/archive/v4.4.1.1.zip
>
> unzip v4.4.1.1.zip
>
> cd netcdf-c-4.4.1.1
>
> ./configure --prefix=/Users/johnhg/MET/external_libs
> LDFLAGS=-L/Users/johnhg/MET/external_libs/lib
> CPPFLAGS=-I/Users/johnhg/MET/external_libs/include
>
> make install
>
> # NetCDF-CXX
>
> wget https://github.com/Unidata/netcdf-cxx4/archive/v4.3.0.tar.gz
>
> tar -xvzf v4.3.0.tar.gz
>
> cd netcdf-cxx4-4.3.0
>
> ./configure --prefix=/Users/johnhg/MET/external_libs
> LDFLAGS=-L/Users/johnhg/MET/external_libs/lib
> CPPFLAGS=-I/Users/johnhg/MET/external_libs/include
> make install
>
> On Tue, Apr 4, 2017 at 4:26 PM, SITTEL, MATTHEW C CTR USAF AFWA 16
WS/WXN
> via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
> >
> > Hi John,
> >
> > I have version 4.1.3 for NetCDF (we used it to build 5.2), and I
have
> > all
> > 3 sets of HDF libraries installed: HDF (4.2.3), HDF5 (5.1.10.0)
and
> HDFEOS.
> >
> > I think I have the directories in the Makefile, populated by
> > environment variables, set correctly, as follows:
> >
> > MET_BUFR = /h/WXQC/met-6.0/lib/BUFRLIB_v10-0-1
> > MET_BUFRLIB = /h/WXQC/met-6.0/lib/BUFRLIB_v10-0-1
> > MET_CAIRO =
> > MET_CAIROINC =
> > MET_CAIROLIB =
> > MET_FREETYPE =
> > MET_FREETYPEINC =
> > MET_FREETYPELIB =
> > MET_GRIB2C = /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GRIB2CINC =
> > /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GRIB2CLIB =
> > /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GSL =
> > /h/WXQC/met-6.0/lib/gsl-1.15 MET_GSLINC = ${MET_GSL}/include
> > MET_GSLLIB = ${MET_GSL}/lib MET_HDF = /h/WXQC/met-6.0/lib/HDF4.2r3
> > MET_HDF5 = /h/WXQC/met-6.0/lib/hdf5-1.10.0 MET_HDF5INC =
> > ${MET_HDF5}/include MET_HDF5LIB = ${MET_HDF5}/lib MET_HDFEOS =
> > /h/WXQC/met-6.0/lib/hdfeos MET_HDFEOSINC = ${MET_HDFEOS}/include
> > MET_HDFEOSLIB = ${MET_HDFEOS}/lib MET_HDFINC = ${MET_HDF}/include
> > MET_HDFLIB = ${MET_HDF}/lib MET_NETCDF =
> > /h/WXQC/met-6.0/lib/netcdf-4.1.3 MET_NETCDFINC =
${MET_NETCDF}/include
> > MET_NETCDFLIB = ${MET_NETCDF}/lib
> >
> > Do you see anything here that might be the issue?
> >
> > Thanks,
> > Matt
> >
> > -----Original Message-----
> > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > Sent: Tuesday, April 4, 2017 2:19 PM
> > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > matthew.sittel.ctr at us.af.mil>
> > Subject: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
Install
> > Issues
> >
> > Hello Matt,
> >
> > I'm not surprised that you'd receive an error when compiling MET
6.0
> > using the previous MET 5.2 environment.  In 6.0 we've made a large
> > change from using NetCDF 3 to 4.
> >
> > You'll need to have both NetCDF 4 and HDF5, upon which NetCDF 4 is
> > built, installed.  Please take a look at the MET Users Guide, the
> > online tutorial, or run ./configure --help for info about
compiling.
> >
> > Thanks,
> > John
> >
> > On Tue, Apr 4, 2017 at 3:08 PM, SITTEL, MATTHEW C CTR USAF AFWA 16
> > WS/WXN via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > Tue Apr 04 13:08:45 2017: Request 80053 was acted upon.
> > > Transaction: Ticket created by matthew.sittel.ctr at us.af.mil
> > >        Queue: met_help
> > >      Subject: V6.0 Install Issues
> > >        Owner: Nobody
> > >   Requestors: matthew.sittel.ctr at us.af.mil
> > >       Status: new
> > >  Ticket <URL:
> > > https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053
> > > >
> > >
> > >
> > > Hi,
> > >
> > > I'm having trouble getting MET to install.  Here's where it's
> > > failing (excerpt from the Make install log):
> > >
> > > make[3]: Entering directory `/gpfs/h/WXQC/met-6.0/src/
> > libcode/vx_nc_util'
> > > g++ -DHAVE_CONFIG_H -I. -I../../..  -I../../../src/basic/vx_cal
> > > -I../../../src/basic/vx_config -I../../../src/basic/vx_log
> > > -I../../../src/basic/vx_math -I../../../src/basic/vx_util
> > > -I../../../src/l ibcode/vx_afm
> > > -I../../../src/libcode/vx_analysis_util
> > > -I../../../src/libcode/vx_color -I../../../src/libcode/vx_data2d
> > > -I../../../src/libcode/vx_data2d_factory
-I../../../src/libcode/vx_
> > > data2d_grib
> > >  -I../../../src/libcode/vx_data2d_grib2
> > > -I../../../src/libcode/vx_data2d_nccf
> > > -I../../../src/libcode/vx_data2d_nc_met
> > > -I../../../src/libcode/vx_data2d_nc_pinterp
> > > -I../../../src/libcode/vx_geodesy -
> > > I../../../src/libcode/vx_gnomon -I../../../src/libcode/vx_grid
> > > -I../../../src/libcode/vx_gsl_prob -I../../../src/libcode/vx_nav
> > > -I../../../src/libcode/vx_nc_util
-I../../../src/libcode/vx_pb_util
> > > - I../../../src/libcode/vx_plot_util
-I../../../src/libcode/vx_ps
> > > -I../../../src/libcode/vx_pxm -I../../../src/libcode/vx_render
> > > -I../../../src/libcode/vx_regrid
-I../../../src/libcode/vx_shapedata
> > > - I../../../src/libcode/vx_solar
> > > -I../../../src/libcode/vx_statistics
> > > -I../../../src/libcode/vx_stat_out
> > > -I../../../src/libcode/vx_time_series
> > > -I../../../src/libcode/vx_tc_util -I/h/WXQC/met-5.1/lib/
> > > netcdf-4.1.3/compiled/include -I/h/WXQC/met-5.1/lib/g2clib-1.4.0
> > > -I/h/WXQC/met-5.1/lib/gsl-1.15/include -DBLOCK4 -DWITH_GRIB2
> > > -DMET_BASE="\"/h/WXQC/met-6.0/share/met\""  -g -MT
> > > libvx_nc_util_a-nc_v ar_info.o -MD -MP -MF
> > > .deps/libvx_nc_util_a-nc_var_info.Tpo -c -o
> > > libvx_nc_util_a-nc_var_info.o `test -f 'nc_var_info.cc' || echo
> > > './'`nc_var_info.cc In file included from nc_var_info.cc:24:
> > > nc_utils.h:22:18: error: netcdf: No such file or directory In
file
> > > included from nc_var_info.cc:24:
> > > nc_utils.h:23: error: ânetCDFâ is not a namespace-name
> > > nc_utils.h:23: error: expected namespace-name before â;â token
In
> > > file included from nc_var_info.cc:24:
> > > nc_utils.h:66: error: ISO C++ forbids declaration of âNcAttâ
with no
> > > type
> > > nc_utils.h:66: error: expected â,â or â...â before â*â token
> > >
> > > Indeed there is no file named "netcdf" in the directory.  I see
it's
> > > the result of an "include <netcdf>" statement, but I can't tell
if
> > > this is assumed to be an environmental variable or if there
should
> > > be a physical file by that name.
> > >
> > > I can provide more if you need it.  Sorry about those extraneous
"â"
> > > characters... I'm not sure why they are there.
> > >
> > > Thanks,
> > > Matt
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>
>

------------------------------------------------
Subject: RE: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0 Install Issues
From: SITTEL, MATTHEW C CTR USAF AFWA 16 WS/WXN
Time: Wed Apr 05 08:20:49 2017

Hi John,

I tried your suggestion for the parent directory MET_NETCDF setting,
but I'm still getting that same error on the <netcdf> that I pasted in
earlier.

Thanks,
Matt

-----Original Message-----
From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
Sent: Wednesday, April 5, 2017 8:52 AM
To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL
<matthew.sittel.ctr at us.af.mil>
Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
Install Issues

Matt,

Yes, good point.  Since NetCDF4 is split out into multiple pieces,
we'll need to give some thought for how to set this up and configure
MET.
Setting MET_NETCDF to point to only netcdf-c-4.4.1.1 won't work well.

On systems in which I don't have root permission, I usually pick a
single directory and then install all the dependencies into that
single location.
Here are some commands you might use.  Note that the last step sets
MET_NETCDF to point to the library directory we're creating.

Please let me know how this all goes.

Thanks,
John

# Create single library installation directory

setenv MET_LIB_DIR /h/WXQC/MET_external_libs

mkdir -p $MET_LIB_DIR

cd $MET_LIB_DIR

# Compilers

setenv CC `which gcc`

setenv CXX `which g++`

setenv FC `which gfortran`

setenv F77 `which gfortran`

# HDF5

wget
https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.0-
patch1/src/hdf5-1.10.0-patch1.tar

tar -xvzf hdf5-1.10.0-patch1.tar

cd hdf5-1.10.0-patch1

./configure --prefix=${MET_LIB_DIR}

make install

# NetCDF-C

wget https://github.com/Unidata/netcdf-c/archive/v4.4.1.1.zip

unzip v4.4.1.1.zip

cd netcdf-c-4.4.1.1

./configure --prefix=${MET_LIB_DIR} LDFLAGS=-L${MET_LIB_DIR}/lib
CPPFLAGS=-I${MET_LIB_DIR}/include

make install

# NetCDF-CXX

wget https://github.com/Unidata/netcdf-cxx4/archive/v4.3.0.tar.gz

tar -xvzf v4.3.0.tar.gz

cd netcdf-cxx4-4.3.0

./configure --prefix=${MET_LIB_DIR} LDFLAGS=-L${MET_LIB_DIR}/lib
CPPFLAGS=-I${MET_LIB_DIR}/include

make install


# Set MET_NETCDF

setenv MET_NETCDF ${MET_LIB_DIR}


On Wed, Apr 5, 2017 at 9:26 AM, SITTEL, MATTHEW C CTR USAF AFWA 16
WS/WXN via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
>
> We were using 4.1.3 so I updated the versions and got both of those
> downloaded (funny, USAF lets us download the libraries but not MET)
> and installed.
>
> I'm still getting that same error though.  It gets tripped up on
this
> line from nc_utils.h:
>
> #include <netcdf>
> using namespace netCDF;
>
> The error message is always the same:
>
> In file included from nc_var_info.cc:24:
> nc_utils.h:22:18: error: netcdf: No such file or directory In file
> included from nc_var_info.cc:24:
> nc_utils.h:23: error: netCDF is not a namespace-name
> nc_utils.h:23: error: expected namespace-name before ; token
>
> The part I'm missing is where "netcdf" gets defined.  Is it meant to
> be an environment variable?  I have a whole bunch of export commands
> in a separate batch file so the configure properly sets the
directory
> paths, but something must not be set correctly to get that variable
name defined.
>
> I updated the line in my batch file to:
>
> export MET_NETCDF=/h/WXQC/met-6.0/lib/netcdf-c-4.4.1.1
>
> If both this and 4.3.0 are needed, do I need to explicitly set the
> other version somewhere so the build has both available?
>
> Matt
>
> -----Original Message-----
> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> Sent: Tuesday, April 4, 2017 3:49 PM
> To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> matthew.sittel.ctr at us.af.mil>
> Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> Install Issues
>
> Matt,
>
> I'm not an expert on NetCDF, but I've learned that there are *many*
> ways of configuring it!
>
> Here are the commands I used today to build the latest versions of
> HDF5 and
> NetCDF4 with GNU compilers on my Mac today for compiling MET.
NetCDF
> is split across 2 packages... one for C and one for C++.
>
> In the commands below, you'd need to adjust the paths which include
> "/Users/johnhg/MET/external_libs"
> to work on your machine. Or if you have root access, you could
remove
> "--prefix" and let autoconf install into it's default location of
> /usr/local.
>
> John
>
> # Compilers
>
> setenv CC `which gcc`
>
> setenv CXX `which g++`
>
> setenv FC `which gfortran`
> setenv F77 `which gfortran`
>
> # HDF5
>
> wget
> https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/
> hdf5-1.10.0-patch1/src/hdf5-1.10.0-patch1.tar
>
> tar -xvzf hdf5-1.10.0-patch1.tar
>
> cd hdf5-1.10.0-patch1
>
> ./configure --prefix=/Users/johnhg/MET/external_libs
>
> make install
>
> # NetCDF-C
>
> wget https://github.com/Unidata/netcdf-c/archive/v4.4.1.1.zip
>
> unzip v4.4.1.1.zip
>
> cd netcdf-c-4.4.1.1
>
> ./configure --prefix=/Users/johnhg/MET/external_libs
> LDFLAGS=-L/Users/johnhg/MET/external_libs/lib
> CPPFLAGS=-I/Users/johnhg/MET/external_libs/include
>
> make install
>
> # NetCDF-CXX
>
> wget https://github.com/Unidata/netcdf-cxx4/archive/v4.3.0.tar.gz
>
> tar -xvzf v4.3.0.tar.gz
>
> cd netcdf-cxx4-4.3.0
>
> ./configure --prefix=/Users/johnhg/MET/external_libs
> LDFLAGS=-L/Users/johnhg/MET/external_libs/lib
> CPPFLAGS=-I/Users/johnhg/MET/external_libs/include
> make install
>
> On Tue, Apr 4, 2017 at 4:26 PM, SITTEL, MATTHEW C CTR USAF AFWA 16
> WS/WXN via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
> >
> > Hi John,
> >
> > I have version 4.1.3 for NetCDF (we used it to build 5.2), and I
> > have all
> > 3 sets of HDF libraries installed: HDF (4.2.3), HDF5 (5.1.10.0)
and
> HDFEOS.
> >
> > I think I have the directories in the Makefile, populated by
> > environment variables, set correctly, as follows:
> >
> > MET_BUFR = /h/WXQC/met-6.0/lib/BUFRLIB_v10-0-1
> > MET_BUFRLIB = /h/WXQC/met-6.0/lib/BUFRLIB_v10-0-1
> > MET_CAIRO =
> > MET_CAIROINC =
> > MET_CAIROLIB =
> > MET_FREETYPE =
> > MET_FREETYPEINC =
> > MET_FREETYPELIB =
> > MET_GRIB2C = /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GRIB2CINC =
> > /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GRIB2CLIB =
> > /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GSL =
> > /h/WXQC/met-6.0/lib/gsl-1.15 MET_GSLINC = ${MET_GSL}/include
> > MET_GSLLIB = ${MET_GSL}/lib MET_HDF = /h/WXQC/met-6.0/lib/HDF4.2r3
> > MET_HDF5 = /h/WXQC/met-6.0/lib/hdf5-1.10.0 MET_HDF5INC =
> > ${MET_HDF5}/include MET_HDF5LIB = ${MET_HDF5}/lib MET_HDFEOS =
> > /h/WXQC/met-6.0/lib/hdfeos MET_HDFEOSINC = ${MET_HDFEOS}/include
> > MET_HDFEOSLIB = ${MET_HDFEOS}/lib MET_HDFINC = ${MET_HDF}/include
> > MET_HDFLIB = ${MET_HDF}/lib MET_NETCDF =
> > /h/WXQC/met-6.0/lib/netcdf-4.1.3 MET_NETCDFINC =
> > ${MET_NETCDF}/include MET_NETCDFLIB = ${MET_NETCDF}/lib
> >
> > Do you see anything here that might be the issue?
> >
> > Thanks,
> > Matt
> >
> > -----Original Message-----
> > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > Sent: Tuesday, April 4, 2017 2:19 PM
> > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > matthew.sittel.ctr at us.af.mil>
> > Subject: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
Install
> > Issues
> >
> > Hello Matt,
> >
> > I'm not surprised that you'd receive an error when compiling MET
6.0
> > using the previous MET 5.2 environment.  In 6.0 we've made a large
> > change from using NetCDF 3 to 4.
> >
> > You'll need to have both NetCDF 4 and HDF5, upon which NetCDF 4 is
> > built, installed.  Please take a look at the MET Users Guide, the
> > online tutorial, or run ./configure --help for info about
compiling.
> >
> > Thanks,
> > John
> >
> > On Tue, Apr 4, 2017 at 3:08 PM, SITTEL, MATTHEW C CTR USAF AFWA 16
> > WS/WXN via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > Tue Apr 04 13:08:45 2017: Request 80053 was acted upon.
> > > Transaction: Ticket created by matthew.sittel.ctr at us.af.mil
> > >        Queue: met_help
> > >      Subject: V6.0 Install Issues
> > >        Owner: Nobody
> > >   Requestors: matthew.sittel.ctr at us.af.mil
> > >       Status: new
> > >  Ticket <URL:
> > > https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053
> > > >
> > >
> > >
> > > Hi,
> > >
> > > I'm having trouble getting MET to install.  Here's where it's
> > > failing (excerpt from the Make install log):
> > >
> > > make[3]: Entering directory `/gpfs/h/WXQC/met-6.0/src/
> > libcode/vx_nc_util'
> > > g++ -DHAVE_CONFIG_H -I. -I../../..  -I../../../src/basic/vx_cal
> > > -I../../../src/basic/vx_config -I../../../src/basic/vx_log
> > > -I../../../src/basic/vx_math -I../../../src/basic/vx_util
> > > -I../../../src/l ibcode/vx_afm
> > > -I../../../src/libcode/vx_analysis_util
> > > -I../../../src/libcode/vx_color -I../../../src/libcode/vx_data2d
> > > -I../../../src/libcode/vx_data2d_factory
> > > -I../../../src/libcode/vx_ data2d_grib
> > >  -I../../../src/libcode/vx_data2d_grib2
> > > -I../../../src/libcode/vx_data2d_nccf
> > > -I../../../src/libcode/vx_data2d_nc_met
> > > -I../../../src/libcode/vx_data2d_nc_pinterp
> > > -I../../../src/libcode/vx_geodesy -
> > > I../../../src/libcode/vx_gnomon -I../../../src/libcode/vx_grid
> > > -I../../../src/libcode/vx_gsl_prob -I../../../src/libcode/vx_nav
> > > -I../../../src/libcode/vx_nc_util
> > > -I../../../src/libcode/vx_pb_util
> > > - I../../../src/libcode/vx_plot_util
-I../../../src/libcode/vx_ps
> > > -I../../../src/libcode/vx_pxm -I../../../src/libcode/vx_render
> > > -I../../../src/libcode/vx_regrid
> > > -I../../../src/libcode/vx_shapedata
> > > - I../../../src/libcode/vx_solar
> > > -I../../../src/libcode/vx_statistics
> > > -I../../../src/libcode/vx_stat_out
> > > -I../../../src/libcode/vx_time_series
> > > -I../../../src/libcode/vx_tc_util -I/h/WXQC/met-5.1/lib/
> > > netcdf-4.1.3/compiled/include -I/h/WXQC/met-5.1/lib/g2clib-1.4.0
> > > -I/h/WXQC/met-5.1/lib/gsl-1.15/include -DBLOCK4 -DWITH_GRIB2
> > > -DMET_BASE="\"/h/WXQC/met-6.0/share/met\""  -g -MT
> > > libvx_nc_util_a-nc_v ar_info.o -MD -MP -MF
> > > .deps/libvx_nc_util_a-nc_var_info.Tpo -c -o
> > > libvx_nc_util_a-nc_var_info.o `test -f 'nc_var_info.cc' || echo
> > > './'`nc_var_info.cc In file included from nc_var_info.cc:24:
> > > nc_utils.h:22:18: error: netcdf: No such file or directory In
file
> > > included from nc_var_info.cc:24:
> > > nc_utils.h:23: error: ânetCDFâ is not a namespace-name
> > > nc_utils.h:23: error: expected namespace-name before â;â token
In
> > > file included from nc_var_info.cc:24:
> > > nc_utils.h:66: error: ISO C++ forbids declaration of âNcAttâ
with
> > > no type
> > > nc_utils.h:66: error: expected â,â or â...â before â*â token
> > >
> > > Indeed there is no file named "netcdf" in the directory.  I see
> > > it's the result of an "include <netcdf>" statement, but I can't
> > > tell if this is assumed to be an environmental variable or if
> > > there should be a physical file by that name.
> > >
> > > I can provide more if you need it.  Sorry about those extraneous
"â"
> > > characters... I'm not sure why they are there.
> > >
> > > Thanks,
> > > Matt
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>
>



------------------------------------------------
Subject: V6.0 Install Issues
From: John Halley Gotway
Time: Wed Apr 05 09:12:33 2017

Matt,

Hmmm, so the following file doesn't exist?

ls  /h/WXQC/MET_external_libs/include/netcdf

If not, can you please send me the contents of those directories:

ls /h/WXQC/MET_external_libs/include/netcdf/include
/h/WXQC/MET_external_libs/include/netcdf/lib
> netcdf_dir_listing

Please send me "netcdf_dir_listing", the "met-6.0/config.log" file,
and the
output of make (i.e. cd met-6.0; make clean; make install >&
make_install.log).

Thanks,
John

On Wed, Apr 5, 2017 at 10:20 AM, SITTEL, MATTHEW C CTR USAF AFWA 16
WS/WXN
via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
>
> Hi John,
>
> I tried your suggestion for the parent directory MET_NETCDF setting,
but
> I'm still getting that same error on the <netcdf> that I pasted in
earlier.
>
> Thanks,
> Matt
>
> -----Original Message-----
> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> Sent: Wednesday, April 5, 2017 8:52 AM
> To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> matthew.sittel.ctr at us.af.mil>
> Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
Install
> Issues
>
> Matt,
>
> Yes, good point.  Since NetCDF4 is split out into multiple pieces,
we'll
> need to give some thought for how to set this up and configure MET.
> Setting MET_NETCDF to point to only netcdf-c-4.4.1.1 won't work
well.
>
> On systems in which I don't have root permission, I usually pick a
single
> directory and then install all the dependencies into that single
location.
> Here are some commands you might use.  Note that the last step sets
> MET_NETCDF to point to the library directory we're creating.
>
> Please let me know how this all goes.
>
> Thanks,
> John
>
> # Create single library installation directory
>
> setenv MET_LIB_DIR /h/WXQC/MET_external_libs
>
> mkdir -p $MET_LIB_DIR
>
> cd $MET_LIB_DIR
>
> # Compilers
>
> setenv CC `which gcc`
>
> setenv CXX `which g++`
>
> setenv FC `which gfortran`
>
> setenv F77 `which gfortran`
>
> # HDF5
>
> wget
> https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/
> hdf5-1.10.0-patch1/src/hdf5-1.10.0-patch1.tar
>
> tar -xvzf hdf5-1.10.0-patch1.tar
>
> cd hdf5-1.10.0-patch1
>
> ./configure --prefix=${MET_LIB_DIR}
>
> make install
>
> # NetCDF-C
>
> wget https://github.com/Unidata/netcdf-c/archive/v4.4.1.1.zip
>
> unzip v4.4.1.1.zip
>
> cd netcdf-c-4.4.1.1
>
> ./configure --prefix=${MET_LIB_DIR} LDFLAGS=-L${MET_LIB_DIR}/lib
> CPPFLAGS=-I${MET_LIB_DIR}/include
>
> make install
>
> # NetCDF-CXX
>
> wget https://github.com/Unidata/netcdf-cxx4/archive/v4.3.0.tar.gz
>
> tar -xvzf v4.3.0.tar.gz
>
> cd netcdf-cxx4-4.3.0
>
> ./configure --prefix=${MET_LIB_DIR} LDFLAGS=-L${MET_LIB_DIR}/lib
> CPPFLAGS=-I${MET_LIB_DIR}/include
>
> make install
>
>
> # Set MET_NETCDF
>
> setenv MET_NETCDF ${MET_LIB_DIR}
>
>
> On Wed, Apr 5, 2017 at 9:26 AM, SITTEL, MATTHEW C CTR USAF AFWA 16
WS/WXN
> via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
> >
> > We were using 4.1.3 so I updated the versions and got both of
those
> > downloaded (funny, USAF lets us download the libraries but not
MET)
> > and installed.
> >
> > I'm still getting that same error though.  It gets tripped up on
this
> > line from nc_utils.h:
> >
> > #include <netcdf>
> > using namespace netCDF;
> >
> > The error message is always the same:
> >
> > In file included from nc_var_info.cc:24:
> > nc_utils.h:22:18: error: netcdf: No such file or directory In file
> > included from nc_var_info.cc:24:
> > nc_utils.h:23: error: netCDF is not a namespace-name
> > nc_utils.h:23: error: expected namespace-name before ; token
> >
> > The part I'm missing is where "netcdf" gets defined.  Is it meant
to
> > be an environment variable?  I have a whole bunch of export
commands
> > in a separate batch file so the configure properly sets the
directory
> > paths, but something must not be set correctly to get that
variable name
> defined.
> >
> > I updated the line in my batch file to:
> >
> > export MET_NETCDF=/h/WXQC/met-6.0/lib/netcdf-c-4.4.1.1
> >
> > If both this and 4.3.0 are needed, do I need to explicitly set the
> > other version somewhere so the build has both available?
> >
> > Matt
> >
> > -----Original Message-----
> > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > Sent: Tuesday, April 4, 2017 3:49 PM
> > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > matthew.sittel.ctr at us.af.mil>
> > Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> > Install Issues
> >
> > Matt,
> >
> > I'm not an expert on NetCDF, but I've learned that there are
*many*
> > ways of configuring it!
> >
> > Here are the commands I used today to build the latest versions of
> > HDF5 and
> > NetCDF4 with GNU compilers on my Mac today for compiling MET.
NetCDF
> > is split across 2 packages... one for C and one for C++.
> >
> > In the commands below, you'd need to adjust the paths which
include
> > "/Users/johnhg/MET/external_libs"
> > to work on your machine. Or if you have root access, you could
remove
> > "--prefix" and let autoconf install into it's default location of
> > /usr/local.
> >
> > John
> >
> > # Compilers
> >
> > setenv CC `which gcc`
> >
> > setenv CXX `which g++`
> >
> > setenv FC `which gfortran`
> > setenv F77 `which gfortran`
> >
> > # HDF5
> >
> > wget
> > https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/
> > hdf5-1.10.0-patch1/src/hdf5-1.10.0-patch1.tar
> >
> > tar -xvzf hdf5-1.10.0-patch1.tar
> >
> > cd hdf5-1.10.0-patch1
> >
> > ./configure --prefix=/Users/johnhg/MET/external_libs
> >
> > make install
> >
> > # NetCDF-C
> >
> > wget https://github.com/Unidata/netcdf-c/archive/v4.4.1.1.zip
> >
> > unzip v4.4.1.1.zip
> >
> > cd netcdf-c-4.4.1.1
> >
> > ./configure --prefix=/Users/johnhg/MET/external_libs
> > LDFLAGS=-L/Users/johnhg/MET/external_libs/lib
> > CPPFLAGS=-I/Users/johnhg/MET/external_libs/include
> >
> > make install
> >
> > # NetCDF-CXX
> >
> > wget https://github.com/Unidata/netcdf-cxx4/archive/v4.3.0.tar.gz
> >
> > tar -xvzf v4.3.0.tar.gz
> >
> > cd netcdf-cxx4-4.3.0
> >
> > ./configure --prefix=/Users/johnhg/MET/external_libs
> > LDFLAGS=-L/Users/johnhg/MET/external_libs/lib
> > CPPFLAGS=-I/Users/johnhg/MET/external_libs/include
> > make install
> >
> > On Tue, Apr 4, 2017 at 4:26 PM, SITTEL, MATTHEW C CTR USAF AFWA 16
> > WS/WXN via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
> > >
> > > Hi John,
> > >
> > > I have version 4.1.3 for NetCDF (we used it to build 5.2), and I
> > > have all
> > > 3 sets of HDF libraries installed: HDF (4.2.3), HDF5 (5.1.10.0)
and
> > HDFEOS.
> > >
> > > I think I have the directories in the Makefile, populated by
> > > environment variables, set correctly, as follows:
> > >
> > > MET_BUFR = /h/WXQC/met-6.0/lib/BUFRLIB_v10-0-1
> > > MET_BUFRLIB = /h/WXQC/met-6.0/lib/BUFRLIB_v10-0-1
> > > MET_CAIRO =
> > > MET_CAIROINC =
> > > MET_CAIROLIB =
> > > MET_FREETYPE =
> > > MET_FREETYPEINC =
> > > MET_FREETYPELIB =
> > > MET_GRIB2C = /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GRIB2CINC =
> > > /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GRIB2CLIB =
> > > /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GSL =
> > > /h/WXQC/met-6.0/lib/gsl-1.15 MET_GSLINC = ${MET_GSL}/include
> > > MET_GSLLIB = ${MET_GSL}/lib MET_HDF = /h/WXQC/met-
6.0/lib/HDF4.2r3
> > > MET_HDF5 = /h/WXQC/met-6.0/lib/hdf5-1.10.0 MET_HDF5INC =
> > > ${MET_HDF5}/include MET_HDF5LIB = ${MET_HDF5}/lib MET_HDFEOS =
> > > /h/WXQC/met-6.0/lib/hdfeos MET_HDFEOSINC = ${MET_HDFEOS}/include
> > > MET_HDFEOSLIB = ${MET_HDFEOS}/lib MET_HDFINC =
${MET_HDF}/include
> > > MET_HDFLIB = ${MET_HDF}/lib MET_NETCDF =
> > > /h/WXQC/met-6.0/lib/netcdf-4.1.3 MET_NETCDFINC =
> > > ${MET_NETCDF}/include MET_NETCDFLIB = ${MET_NETCDF}/lib
> > >
> > > Do you see anything here that might be the issue?
> > >
> > > Thanks,
> > > Matt
> > >
> > > -----Original Message-----
> > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > Sent: Tuesday, April 4, 2017 2:19 PM
> > > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > > matthew.sittel.ctr at us.af.mil>
> > > Subject: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
Install
> > > Issues
> > >
> > > Hello Matt,
> > >
> > > I'm not surprised that you'd receive an error when compiling MET
6.0
> > > using the previous MET 5.2 environment.  In 6.0 we've made a
large
> > > change from using NetCDF 3 to 4.
> > >
> > > You'll need to have both NetCDF 4 and HDF5, upon which NetCDF 4
is
> > > built, installed.  Please take a look at the MET Users Guide,
the
> > > online tutorial, or run ./configure --help for info about
compiling.
> > >
> > > Thanks,
> > > John
> > >
> > > On Tue, Apr 4, 2017 at 3:08 PM, SITTEL, MATTHEW C CTR USAF AFWA
16
> > > WS/WXN via RT <met_help at ucar.edu> wrote:
> > >
> > > >
> > > > Tue Apr 04 13:08:45 2017: Request 80053 was acted upon.
> > > > Transaction: Ticket created by matthew.sittel.ctr at us.af.mil
> > > >        Queue: met_help
> > > >      Subject: V6.0 Install Issues
> > > >        Owner: Nobody
> > > >   Requestors: matthew.sittel.ctr at us.af.mil
> > > >       Status: new
> > > >  Ticket <URL:
> > > > https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053
> > > > >
> > > >
> > > >
> > > > Hi,
> > > >
> > > > I'm having trouble getting MET to install.  Here's where it's
> > > > failing (excerpt from the Make install log):
> > > >
> > > > make[3]: Entering directory `/gpfs/h/WXQC/met-6.0/src/
> > > libcode/vx_nc_util'
> > > > g++ -DHAVE_CONFIG_H -I. -I../../..
-I../../../src/basic/vx_cal
> > > > -I../../../src/basic/vx_config -I../../../src/basic/vx_log
> > > > -I../../../src/basic/vx_math -I../../../src/basic/vx_util
> > > > -I../../../src/l ibcode/vx_afm
> > > > -I../../../src/libcode/vx_analysis_util
> > > > -I../../../src/libcode/vx_color
-I../../../src/libcode/vx_data2d
> > > > -I../../../src/libcode/vx_data2d_factory
> > > > -I../../../src/libcode/vx_ data2d_grib
> > > >  -I../../../src/libcode/vx_data2d_grib2
> > > > -I../../../src/libcode/vx_data2d_nccf
> > > > -I../../../src/libcode/vx_data2d_nc_met
> > > > -I../../../src/libcode/vx_data2d_nc_pinterp
> > > > -I../../../src/libcode/vx_geodesy -
> > > > I../../../src/libcode/vx_gnomon -I../../../src/libcode/vx_grid
> > > > -I../../../src/libcode/vx_gsl_prob
-I../../../src/libcode/vx_nav
> > > > -I../../../src/libcode/vx_nc_util
> > > > -I../../../src/libcode/vx_pb_util
> > > > - I../../../src/libcode/vx_plot_util
-I../../../src/libcode/vx_ps
> > > > -I../../../src/libcode/vx_pxm -I../../../src/libcode/vx_render
> > > > -I../../../src/libcode/vx_regrid
> > > > -I../../../src/libcode/vx_shapedata
> > > > - I../../../src/libcode/vx_solar
> > > > -I../../../src/libcode/vx_statistics
> > > > -I../../../src/libcode/vx_stat_out
> > > > -I../../../src/libcode/vx_time_series
> > > > -I../../../src/libcode/vx_tc_util -I/h/WXQC/met-5.1/lib/
> > > > netcdf-4.1.3/compiled/include -I/h/WXQC/met-5.1/lib/g2clib-
1.4.0
> > > > -I/h/WXQC/met-5.1/lib/gsl-1.15/include -DBLOCK4 -DWITH_GRIB2
> > > > -DMET_BASE="\"/h/WXQC/met-6.0/share/met\""  -g -MT
> > > > libvx_nc_util_a-nc_v ar_info.o -MD -MP -MF
> > > > .deps/libvx_nc_util_a-nc_var_info.Tpo -c -o
> > > > libvx_nc_util_a-nc_var_info.o `test -f 'nc_var_info.cc' ||
echo
> > > > './'`nc_var_info.cc In file included from nc_var_info.cc:24:
> > > > nc_utils.h:22:18: error: netcdf: No such file or directory In
file
> > > > included from nc_var_info.cc:24:
> > > > nc_utils.h:23: error: ânetCDFâ is not a namespace-name
> > > > nc_utils.h:23: error: expected namespace-name before â;â token
In
> > > > file included from nc_var_info.cc:24:
> > > > nc_utils.h:66: error: ISO C++ forbids declaration of âNcAttâ
with
> > > > no type
> > > > nc_utils.h:66: error: expected â,â or â...â before â*â token
> > > >
> > > > Indeed there is no file named "netcdf" in the directory.  I
see
> > > > it's the result of an "include <netcdf>" statement, but I
can't
> > > > tell if this is assumed to be an environmental variable or if
> > > > there should be a physical file by that name.
> > > >
> > > > I can provide more if you need it.  Sorry about those
extraneous "â"
> > > > characters... I'm not sure why they are there.
> > > >
> > > > Thanks,
> > > > Matt
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>
>

------------------------------------------------
Subject: RE: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0 Install Issues
From: SITTEL, MATTHEW C CTR USAF AFWA 16 WS/WXN
Time: Wed Apr 05 10:07:59 2017

I can't get NetCDF 4.4.1.1 to successfully compile.  I rebuilt both
4.3.0 and 4.4.1.1.  The former works (but doesn't generate an
"include" or "lib" subdirectory during the build).  The latter throws
a strange error:

/bin/sh ../libtool  --tag=CC   --mode=compile /usr/bin/gcc
-DHAVE_CONFIG_H -I. -I..  -I../include -I../oc2   -I/h/WXQC/met-
6.0/lib/netcdf-c-4.4.1.1/include   -MT libnetcdf4_la-nc4file.lo -MD
-MP -MF .deps/libnetcdf4_la-nc4file.Tpo -c -o libnetcdf4_la-nc4file.lo
`test -f 'nc4file.c' || echo './'`nc4file.c
libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../include
-I../oc2 -I/h/WXQC/met-6.0/lib/netcdf-c-4.4.1.1/include -MT
libnetcdf4_la-nc4file.lo -MD -MP -MF .deps/libnetcdf4_la-nc4file.Tpo
-c nc4file.c  -fPIC -DPIC -o .libs/libnetcdf4_la-nc4file.o
nc4file.c: In function ânc4_open_fileâ:
nc4file.c:2316: error: âH5LT_FILE_IMAGE_DONT_COPYâ undeclared (first
use in this function)
nc4file.c:2316: error: (Each undeclared identifier is reported only
once
nc4file.c:2316: error: for each function it appears in.)
nc4file.c:2316: error: âH5LT_FILE_IMAGE_DONT_RELEASEâ undeclared
(first use in this function)
make[1]: *** [libnetcdf4_la-nc4file.lo] Error 1
make[1]: Leaving directory `/gpfs/h/WXQC/met-6.0/lib/netcdf-c-
4.4.1.1/libsrc4'
make: *** [install-recursive] Error 1

So I need to get this build figured out first.  Before I rebuilt, all
I saw was a "netcdf.h" in the 4.4.1.1 include directory, apparently
built during the portion of the install that was successful.

Matt

-----Original Message-----
From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
Sent: Wednesday, April 5, 2017 10:13 AM
To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL
<matthew.sittel.ctr at us.af.mil>
Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
Install Issues

Matt,

Hmmm, so the following file doesn't exist?

ls  /h/WXQC/MET_external_libs/include/netcdf

If not, can you please send me the contents of those directories:

ls /h/WXQC/MET_external_libs/include/netcdf/include
/h/WXQC/MET_external_libs/include/netcdf/lib
> netcdf_dir_listing

Please send me "netcdf_dir_listing", the "met-6.0/config.log" file,
and the output of make (i.e. cd met-6.0; make clean; make install >&
make_install.log).

Thanks,
John

On Wed, Apr 5, 2017 at 10:20 AM, SITTEL, MATTHEW C CTR USAF AFWA 16
WS/WXN via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
>
> Hi John,
>
> I tried your suggestion for the parent directory MET_NETCDF setting,
> but I'm still getting that same error on the <netcdf> that I pasted
in earlier.
>
> Thanks,
> Matt
>
> -----Original Message-----
> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> Sent: Wednesday, April 5, 2017 8:52 AM
> To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> matthew.sittel.ctr at us.af.mil>
> Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> Install Issues
>
> Matt,
>
> Yes, good point.  Since NetCDF4 is split out into multiple pieces,
> we'll need to give some thought for how to set this up and configure
MET.
> Setting MET_NETCDF to point to only netcdf-c-4.4.1.1 won't work
well.
>
> On systems in which I don't have root permission, I usually pick a
> single directory and then install all the dependencies into that
single location.
> Here are some commands you might use.  Note that the last step sets
> MET_NETCDF to point to the library directory we're creating.
>
> Please let me know how this all goes.
>
> Thanks,
> John
>
> # Create single library installation directory
>
> setenv MET_LIB_DIR /h/WXQC/MET_external_libs
>
> mkdir -p $MET_LIB_DIR
>
> cd $MET_LIB_DIR
>
> # Compilers
>
> setenv CC `which gcc`
>
> setenv CXX `which g++`
>
> setenv FC `which gfortran`
>
> setenv F77 `which gfortran`
>
> # HDF5
>
> wget
> https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/
> hdf5-1.10.0-patch1/src/hdf5-1.10.0-patch1.tar
>
> tar -xvzf hdf5-1.10.0-patch1.tar
>
> cd hdf5-1.10.0-patch1
>
> ./configure --prefix=${MET_LIB_DIR}
>
> make install
>
> # NetCDF-C
>
> wget https://github.com/Unidata/netcdf-c/archive/v4.4.1.1.zip
>
> unzip v4.4.1.1.zip
>
> cd netcdf-c-4.4.1.1
>
> ./configure --prefix=${MET_LIB_DIR} LDFLAGS=-L${MET_LIB_DIR}/lib
> CPPFLAGS=-I${MET_LIB_DIR}/include
>
> make install
>
> # NetCDF-CXX
>
> wget https://github.com/Unidata/netcdf-cxx4/archive/v4.3.0.tar.gz
>
> tar -xvzf v4.3.0.tar.gz
>
> cd netcdf-cxx4-4.3.0
>
> ./configure --prefix=${MET_LIB_DIR} LDFLAGS=-L${MET_LIB_DIR}/lib
> CPPFLAGS=-I${MET_LIB_DIR}/include
>
> make install
>
>
> # Set MET_NETCDF
>
> setenv MET_NETCDF ${MET_LIB_DIR}
>
>
> On Wed, Apr 5, 2017 at 9:26 AM, SITTEL, MATTHEW C CTR USAF AFWA 16
> WS/WXN via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
> >
> > We were using 4.1.3 so I updated the versions and got both of
those
> > downloaded (funny, USAF lets us download the libraries but not
MET)
> > and installed.
> >
> > I'm still getting that same error though.  It gets tripped up on
> > this line from nc_utils.h:
> >
> > #include <netcdf>
> > using namespace netCDF;
> >
> > The error message is always the same:
> >
> > In file included from nc_var_info.cc:24:
> > nc_utils.h:22:18: error: netcdf: No such file or directory In file
> > included from nc_var_info.cc:24:
> > nc_utils.h:23: error: netCDF is not a namespace-name
> > nc_utils.h:23: error: expected namespace-name before ; token
> >
> > The part I'm missing is where "netcdf" gets defined.  Is it meant
to
> > be an environment variable?  I have a whole bunch of export
commands
> > in a separate batch file so the configure properly sets the
> > directory paths, but something must not be set correctly to get
that
> > variable name
> defined.
> >
> > I updated the line in my batch file to:
> >
> > export MET_NETCDF=/h/WXQC/met-6.0/lib/netcdf-c-4.4.1.1
> >
> > If both this and 4.3.0 are needed, do I need to explicitly set the
> > other version somewhere so the build has both available?
> >
> > Matt
> >
> > -----Original Message-----
> > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > Sent: Tuesday, April 4, 2017 3:49 PM
> > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > matthew.sittel.ctr at us.af.mil>
> > Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> > Install Issues
> >
> > Matt,
> >
> > I'm not an expert on NetCDF, but I've learned that there are
*many*
> > ways of configuring it!
> >
> > Here are the commands I used today to build the latest versions of
> > HDF5 and
> > NetCDF4 with GNU compilers on my Mac today for compiling MET.
> > NetCDF is split across 2 packages... one for C and one for C++.
> >
> > In the commands below, you'd need to adjust the paths which
include
> > "/Users/johnhg/MET/external_libs"
> > to work on your machine. Or if you have root access, you could
> > remove "--prefix" and let autoconf install into it's default
> > location of /usr/local.
> >
> > John
> >
> > # Compilers
> >
> > setenv CC `which gcc`
> >
> > setenv CXX `which g++`
> >
> > setenv FC `which gfortran`
> > setenv F77 `which gfortran`
> >
> > # HDF5
> >
> > wget
> > https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/
> > hdf5-1.10.0-patch1/src/hdf5-1.10.0-patch1.tar
> >
> > tar -xvzf hdf5-1.10.0-patch1.tar
> >
> > cd hdf5-1.10.0-patch1
> >
> > ./configure --prefix=/Users/johnhg/MET/external_libs
> >
> > make install
> >
> > # NetCDF-C
> >
> > wget https://github.com/Unidata/netcdf-c/archive/v4.4.1.1.zip
> >
> > unzip v4.4.1.1.zip
> >
> > cd netcdf-c-4.4.1.1
> >
> > ./configure --prefix=/Users/johnhg/MET/external_libs
> > LDFLAGS=-L/Users/johnhg/MET/external_libs/lib
> > CPPFLAGS=-I/Users/johnhg/MET/external_libs/include
> >
> > make install
> >
> > # NetCDF-CXX
> >
> > wget https://github.com/Unidata/netcdf-cxx4/archive/v4.3.0.tar.gz
> >
> > tar -xvzf v4.3.0.tar.gz
> >
> > cd netcdf-cxx4-4.3.0
> >
> > ./configure --prefix=/Users/johnhg/MET/external_libs
> > LDFLAGS=-L/Users/johnhg/MET/external_libs/lib
> > CPPFLAGS=-I/Users/johnhg/MET/external_libs/include
> > make install
> >
> > On Tue, Apr 4, 2017 at 4:26 PM, SITTEL, MATTHEW C CTR USAF AFWA 16
> > WS/WXN via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
> > >
> > > Hi John,
> > >
> > > I have version 4.1.3 for NetCDF (we used it to build 5.2), and I
> > > have all
> > > 3 sets of HDF libraries installed: HDF (4.2.3), HDF5 (5.1.10.0)
> > > and
> > HDFEOS.
> > >
> > > I think I have the directories in the Makefile, populated by
> > > environment variables, set correctly, as follows:
> > >
> > > MET_BUFR = /h/WXQC/met-6.0/lib/BUFRLIB_v10-0-1
> > > MET_BUFRLIB = /h/WXQC/met-6.0/lib/BUFRLIB_v10-0-1
> > > MET_CAIRO =
> > > MET_CAIROINC =
> > > MET_CAIROLIB =
> > > MET_FREETYPE =
> > > MET_FREETYPEINC =
> > > MET_FREETYPELIB =
> > > MET_GRIB2C = /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GRIB2CINC =
> > > /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GRIB2CLIB =
> > > /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GSL =
> > > /h/WXQC/met-6.0/lib/gsl-1.15 MET_GSLINC = ${MET_GSL}/include
> > > MET_GSLLIB = ${MET_GSL}/lib MET_HDF = /h/WXQC/met-
6.0/lib/HDF4.2r3
> > > MET_HDF5 = /h/WXQC/met-6.0/lib/hdf5-1.10.0 MET_HDF5INC =
> > > ${MET_HDF5}/include MET_HDF5LIB = ${MET_HDF5}/lib MET_HDFEOS =
> > > /h/WXQC/met-6.0/lib/hdfeos MET_HDFEOSINC = ${MET_HDFEOS}/include
> > > MET_HDFEOSLIB = ${MET_HDFEOS}/lib MET_HDFINC =
${MET_HDF}/include
> > > MET_HDFLIB = ${MET_HDF}/lib MET_NETCDF =
> > > /h/WXQC/met-6.0/lib/netcdf-4.1.3 MET_NETCDFINC =
> > > ${MET_NETCDF}/include MET_NETCDFLIB = ${MET_NETCDF}/lib
> > >
> > > Do you see anything here that might be the issue?
> > >
> > > Thanks,
> > > Matt
> > >
> > > -----Original Message-----
> > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > Sent: Tuesday, April 4, 2017 2:19 PM
> > > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > > matthew.sittel.ctr at us.af.mil>
> > > Subject: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> > > Install Issues
> > >
> > > Hello Matt,
> > >
> > > I'm not surprised that you'd receive an error when compiling MET
> > > 6.0 using the previous MET 5.2 environment.  In 6.0 we've made a
> > > large change from using NetCDF 3 to 4.
> > >
> > > You'll need to have both NetCDF 4 and HDF5, upon which NetCDF 4
is
> > > built, installed.  Please take a look at the MET Users Guide,
the
> > > online tutorial, or run ./configure --help for info about
compiling.
> > >
> > > Thanks,
> > > John
> > >
> > > On Tue, Apr 4, 2017 at 3:08 PM, SITTEL, MATTHEW C CTR USAF AFWA
16
> > > WS/WXN via RT <met_help at ucar.edu> wrote:
> > >
> > > >
> > > > Tue Apr 04 13:08:45 2017: Request 80053 was acted upon.
> > > > Transaction: Ticket created by matthew.sittel.ctr at us.af.mil
> > > >        Queue: met_help
> > > >      Subject: V6.0 Install Issues
> > > >        Owner: Nobody
> > > >   Requestors: matthew.sittel.ctr at us.af.mil
> > > >       Status: new
> > > >  Ticket <URL:
> > > > https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053
> > > > >
> > > >
> > > >
> > > > Hi,
> > > >
> > > > I'm having trouble getting MET to install.  Here's where it's
> > > > failing (excerpt from the Make install log):
> > > >
> > > > make[3]: Entering directory `/gpfs/h/WXQC/met-6.0/src/
> > > libcode/vx_nc_util'
> > > > g++ -DHAVE_CONFIG_H -I. -I../../..
-I../../../src/basic/vx_cal
> > > > -I../../../src/basic/vx_config -I../../../src/basic/vx_log
> > > > -I../../../src/basic/vx_math -I../../../src/basic/vx_util
> > > > -I../../../src/l ibcode/vx_afm
> > > > -I../../../src/libcode/vx_analysis_util
> > > > -I../../../src/libcode/vx_color
-I../../../src/libcode/vx_data2d
> > > > -I../../../src/libcode/vx_data2d_factory
> > > > -I../../../src/libcode/vx_ data2d_grib
> > > >  -I../../../src/libcode/vx_data2d_grib2
> > > > -I../../../src/libcode/vx_data2d_nccf
> > > > -I../../../src/libcode/vx_data2d_nc_met
> > > > -I../../../src/libcode/vx_data2d_nc_pinterp
> > > > -I../../../src/libcode/vx_geodesy -
> > > > I../../../src/libcode/vx_gnomon -I../../../src/libcode/vx_grid
> > > > -I../../../src/libcode/vx_gsl_prob
-I../../../src/libcode/vx_nav
> > > > -I../../../src/libcode/vx_nc_util
> > > > -I../../../src/libcode/vx_pb_util
> > > > - I../../../src/libcode/vx_plot_util
> > > > -I../../../src/libcode/vx_ps -I../../../src/libcode/vx_pxm
> > > > -I../../../src/libcode/vx_render
> > > > -I../../../src/libcode/vx_regrid
> > > > -I../../../src/libcode/vx_shapedata
> > > > - I../../../src/libcode/vx_solar
> > > > -I../../../src/libcode/vx_statistics
> > > > -I../../../src/libcode/vx_stat_out
> > > > -I../../../src/libcode/vx_time_series
> > > > -I../../../src/libcode/vx_tc_util -I/h/WXQC/met-5.1/lib/
> > > > netcdf-4.1.3/compiled/include -I/h/WXQC/met-5.1/lib/g2clib-
1.4.0
> > > > -I/h/WXQC/met-5.1/lib/gsl-1.15/include -DBLOCK4 -DWITH_GRIB2
> > > > -DMET_BASE="\"/h/WXQC/met-6.0/share/met\""  -g -MT
> > > > libvx_nc_util_a-nc_v ar_info.o -MD -MP -MF
> > > > .deps/libvx_nc_util_a-nc_var_info.Tpo -c -o
> > > > libvx_nc_util_a-nc_var_info.o `test -f 'nc_var_info.cc' ||
echo
> > > > './'`nc_var_info.cc In file included from nc_var_info.cc:24:
> > > > nc_utils.h:22:18: error: netcdf: No such file or directory In
> > > > file included from nc_var_info.cc:24:
> > > > nc_utils.h:23: error: ânetCDFâ is not a namespace-name
> > > > nc_utils.h:23: error: expected namespace-name before â;â token
> > > > In file included from nc_var_info.cc:24:
> > > > nc_utils.h:66: error: ISO C++ forbids declaration of âNcAttâ
> > > > with no type
> > > > nc_utils.h:66: error: expected â,â or â...â before â*â token
> > > >
> > > > Indeed there is no file named "netcdf" in the directory.  I
see
> > > > it's the result of an "include <netcdf>" statement, but I
can't
> > > > tell if this is assumed to be an environmental variable or if
> > > > there should be a physical file by that name.
> > > >
> > > > I can provide more if you need it.  Sorry about those
extraneous "â"
> > > > characters... I'm not sure why they are there.
> > > >
> > > > Thanks,
> > > > Matt
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>
>



------------------------------------------------
Subject: V6.0 Install Issues
From: John Halley Gotway
Time: Wed Apr 05 10:21:53 2017

Matt,

NetCDF4 is compiled on top of HDF5.  So HDF5 must be compiled first.
That's why I included them in the instructions.

Do the HDF5 compilation commands work?  Those LDFLAGS and CPPFLAGS
arguments to the NetCDF configure scripts are important too.  They
tell
NetCDF where to find the HDF5 libraries it needs.

Thanks,
John

On Wed, Apr 5, 2017 at 12:07 PM, SITTEL, MATTHEW C CTR USAF AFWA 16
WS/WXN
via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
>
> I can't get NetCDF 4.4.1.1 to successfully compile.  I rebuilt both
4.3.0
> and 4.4.1.1.  The former works (but doesn't generate an "include" or
"lib"
> subdirectory during the build).  The latter throws a strange error:
>
> /bin/sh ../libtool  --tag=CC   --mode=compile /usr/bin/gcc
-DHAVE_CONFIG_H
> -I. -I..  -I../include -I../oc2   -I/h/WXQC/met-6.0/lib/netcdf-c-
4.4.1.1/include
>  -MT libnetcdf4_la-nc4file.lo -MD -MP -MF .deps/libnetcdf4_la-
nc4file.Tpo
> -c -o libnetcdf4_la-nc4file.lo `test -f 'nc4file.c' || echo
'./'`nc4file.c
> libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -I..
-I../include
> -I../oc2 -I/h/WXQC/met-6.0/lib/netcdf-c-4.4.1.1/include -MT
> libnetcdf4_la-nc4file.lo -MD -MP -MF .deps/libnetcdf4_la-nc4file.Tpo
-c
> nc4file.c  -fPIC -DPIC -o .libs/libnetcdf4_la-nc4file.o
> nc4file.c: In function ânc4_open_fileâ:
> nc4file.c:2316: error: âH5LT_FILE_IMAGE_DONT_COPYâ undeclared (first
use
> in this function)
> nc4file.c:2316: error: (Each undeclared identifier is reported only
once
> nc4file.c:2316: error: for each function it appears in.)
> nc4file.c:2316: error: âH5LT_FILE_IMAGE_DONT_RELEASEâ undeclared
(first
> use in this function)
> make[1]: *** [libnetcdf4_la-nc4file.lo] Error 1
> make[1]: Leaving directory `/gpfs/h/WXQC/met-6.0/lib/
> netcdf-c-4.4.1.1/libsrc4'
> make: *** [install-recursive] Error 1
>
> So I need to get this build figured out first.  Before I rebuilt,
all I
> saw was a "netcdf.h" in the 4.4.1.1 include directory, apparently
built
> during the portion of the install that was successful.
>
> Matt
>
> -----Original Message-----
> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> Sent: Wednesday, April 5, 2017 10:13 AM
> To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> matthew.sittel.ctr at us.af.mil>
> Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
Install
> Issues
>
> Matt,
>
> Hmmm, so the following file doesn't exist?
>
> ls  /h/WXQC/MET_external_libs/include/netcdf
>
> If not, can you please send me the contents of those directories:
>
> ls /h/WXQC/MET_external_libs/include/netcdf/include
> /h/WXQC/MET_external_libs/include/netcdf/lib
> > netcdf_dir_listing
>
> Please send me "netcdf_dir_listing", the "met-6.0/config.log" file,
and
> the output of make (i.e. cd met-6.0; make clean; make install >&
> make_install.log).
>
> Thanks,
> John
>
> On Wed, Apr 5, 2017 at 10:20 AM, SITTEL, MATTHEW C CTR USAF AFWA 16
WS/WXN
> via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
> >
> > Hi John,
> >
> > I tried your suggestion for the parent directory MET_NETCDF
setting,
> > but I'm still getting that same error on the <netcdf> that I
pasted in
> earlier.
> >
> > Thanks,
> > Matt
> >
> > -----Original Message-----
> > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > Sent: Wednesday, April 5, 2017 8:52 AM
> > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > matthew.sittel.ctr at us.af.mil>
> > Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> > Install Issues
> >
> > Matt,
> >
> > Yes, good point.  Since NetCDF4 is split out into multiple pieces,
> > we'll need to give some thought for how to set this up and
configure MET.
> > Setting MET_NETCDF to point to only netcdf-c-4.4.1.1 won't work
well.
> >
> > On systems in which I don't have root permission, I usually pick a
> > single directory and then install all the dependencies into that
single
> location.
> > Here are some commands you might use.  Note that the last step
sets
> > MET_NETCDF to point to the library directory we're creating.
> >
> > Please let me know how this all goes.
> >
> > Thanks,
> > John
> >
> > # Create single library installation directory
> >
> > setenv MET_LIB_DIR /h/WXQC/MET_external_libs
> >
> > mkdir -p $MET_LIB_DIR
> >
> > cd $MET_LIB_DIR
> >
> > # Compilers
> >
> > setenv CC `which gcc`
> >
> > setenv CXX `which g++`
> >
> > setenv FC `which gfortran`
> >
> > setenv F77 `which gfortran`
> >
> > # HDF5
> >
> > wget
> > https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/
> > hdf5-1.10.0-patch1/src/hdf5-1.10.0-patch1.tar
> >
> > tar -xvzf hdf5-1.10.0-patch1.tar
> >
> > cd hdf5-1.10.0-patch1
> >
> > ./configure --prefix=${MET_LIB_DIR}
> >
> > make install
> >
> > # NetCDF-C
> >
> > wget https://github.com/Unidata/netcdf-c/archive/v4.4.1.1.zip
> >
> > unzip v4.4.1.1.zip
> >
> > cd netcdf-c-4.4.1.1
> >
> > ./configure --prefix=${MET_LIB_DIR} LDFLAGS=-L${MET_LIB_DIR}/lib
> > CPPFLAGS=-I${MET_LIB_DIR}/include
> >
> > make install
> >
> > # NetCDF-CXX
> >
> > wget https://github.com/Unidata/netcdf-cxx4/archive/v4.3.0.tar.gz
> >
> > tar -xvzf v4.3.0.tar.gz
> >
> > cd netcdf-cxx4-4.3.0
> >
> > ./configure --prefix=${MET_LIB_DIR} LDFLAGS=-L${MET_LIB_DIR}/lib
> > CPPFLAGS=-I${MET_LIB_DIR}/include
> >
> > make install
> >
> >
> > # Set MET_NETCDF
> >
> > setenv MET_NETCDF ${MET_LIB_DIR}
> >
> >
> > On Wed, Apr 5, 2017 at 9:26 AM, SITTEL, MATTHEW C CTR USAF AFWA 16
> > WS/WXN via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
> > >
> > > We were using 4.1.3 so I updated the versions and got both of
those
> > > downloaded (funny, USAF lets us download the libraries but not
MET)
> > > and installed.
> > >
> > > I'm still getting that same error though.  It gets tripped up on
> > > this line from nc_utils.h:
> > >
> > > #include <netcdf>
> > > using namespace netCDF;
> > >
> > > The error message is always the same:
> > >
> > > In file included from nc_var_info.cc:24:
> > > nc_utils.h:22:18: error: netcdf: No such file or directory In
file
> > > included from nc_var_info.cc:24:
> > > nc_utils.h:23: error: netCDF is not a namespace-name
> > > nc_utils.h:23: error: expected namespace-name before ; token
> > >
> > > The part I'm missing is where "netcdf" gets defined.  Is it
meant to
> > > be an environment variable?  I have a whole bunch of export
commands
> > > in a separate batch file so the configure properly sets the
> > > directory paths, but something must not be set correctly to get
that
> > > variable name
> > defined.
> > >
> > > I updated the line in my batch file to:
> > >
> > > export MET_NETCDF=/h/WXQC/met-6.0/lib/netcdf-c-4.4.1.1
> > >
> > > If both this and 4.3.0 are needed, do I need to explicitly set
the
> > > other version somewhere so the build has both available?
> > >
> > > Matt
> > >
> > > -----Original Message-----
> > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > Sent: Tuesday, April 4, 2017 3:49 PM
> > > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > > matthew.sittel.ctr at us.af.mil>
> > > Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> > > Install Issues
> > >
> > > Matt,
> > >
> > > I'm not an expert on NetCDF, but I've learned that there are
*many*
> > > ways of configuring it!
> > >
> > > Here are the commands I used today to build the latest versions
of
> > > HDF5 and
> > > NetCDF4 with GNU compilers on my Mac today for compiling MET.
> > > NetCDF is split across 2 packages... one for C and one for C++.
> > >
> > > In the commands below, you'd need to adjust the paths which
include
> > > "/Users/johnhg/MET/external_libs"
> > > to work on your machine. Or if you have root access, you could
> > > remove "--prefix" and let autoconf install into it's default
> > > location of /usr/local.
> > >
> > > John
> > >
> > > # Compilers
> > >
> > > setenv CC `which gcc`
> > >
> > > setenv CXX `which g++`
> > >
> > > setenv FC `which gfortran`
> > > setenv F77 `which gfortran`
> > >
> > > # HDF5
> > >
> > > wget
> > > https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/
> > > hdf5-1.10.0-patch1/src/hdf5-1.10.0-patch1.tar
> > >
> > > tar -xvzf hdf5-1.10.0-patch1.tar
> > >
> > > cd hdf5-1.10.0-patch1
> > >
> > > ./configure --prefix=/Users/johnhg/MET/external_libs
> > >
> > > make install
> > >
> > > # NetCDF-C
> > >
> > > wget https://github.com/Unidata/netcdf-c/archive/v4.4.1.1.zip
> > >
> > > unzip v4.4.1.1.zip
> > >
> > > cd netcdf-c-4.4.1.1
> > >
> > > ./configure --prefix=/Users/johnhg/MET/external_libs
> > > LDFLAGS=-L/Users/johnhg/MET/external_libs/lib
> > > CPPFLAGS=-I/Users/johnhg/MET/external_libs/include
> > >
> > > make install
> > >
> > > # NetCDF-CXX
> > >
> > > wget https://github.com/Unidata/netcdf-
cxx4/archive/v4.3.0.tar.gz
> > >
> > > tar -xvzf v4.3.0.tar.gz
> > >
> > > cd netcdf-cxx4-4.3.0
> > >
> > > ./configure --prefix=/Users/johnhg/MET/external_libs
> > > LDFLAGS=-L/Users/johnhg/MET/external_libs/lib
> > > CPPFLAGS=-I/Users/johnhg/MET/external_libs/include
> > > make install
> > >
> > > On Tue, Apr 4, 2017 at 4:26 PM, SITTEL, MATTHEW C CTR USAF AFWA
16
> > > WS/WXN via RT <met_help at ucar.edu> wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053
>
> > > >
> > > > Hi John,
> > > >
> > > > I have version 4.1.3 for NetCDF (we used it to build 5.2), and
I
> > > > have all
> > > > 3 sets of HDF libraries installed: HDF (4.2.3), HDF5
(5.1.10.0)
> > > > and
> > > HDFEOS.
> > > >
> > > > I think I have the directories in the Makefile, populated by
> > > > environment variables, set correctly, as follows:
> > > >
> > > > MET_BUFR = /h/WXQC/met-6.0/lib/BUFRLIB_v10-0-1
> > > > MET_BUFRLIB = /h/WXQC/met-6.0/lib/BUFRLIB_v10-0-1
> > > > MET_CAIRO =
> > > > MET_CAIROINC =
> > > > MET_CAIROLIB =
> > > > MET_FREETYPE =
> > > > MET_FREETYPEINC =
> > > > MET_FREETYPELIB =
> > > > MET_GRIB2C = /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GRIB2CINC =
> > > > /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GRIB2CLIB =
> > > > /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GSL =
> > > > /h/WXQC/met-6.0/lib/gsl-1.15 MET_GSLINC = ${MET_GSL}/include
> > > > MET_GSLLIB = ${MET_GSL}/lib MET_HDF = /h/WXQC/met-
6.0/lib/HDF4.2r3
> > > > MET_HDF5 = /h/WXQC/met-6.0/lib/hdf5-1.10.0 MET_HDF5INC =
> > > > ${MET_HDF5}/include MET_HDF5LIB = ${MET_HDF5}/lib MET_HDFEOS =
> > > > /h/WXQC/met-6.0/lib/hdfeos MET_HDFEOSINC =
${MET_HDFEOS}/include
> > > > MET_HDFEOSLIB = ${MET_HDFEOS}/lib MET_HDFINC =
${MET_HDF}/include
> > > > MET_HDFLIB = ${MET_HDF}/lib MET_NETCDF =
> > > > /h/WXQC/met-6.0/lib/netcdf-4.1.3 MET_NETCDFINC =
> > > > ${MET_NETCDF}/include MET_NETCDFLIB = ${MET_NETCDF}/lib
> > > >
> > > > Do you see anything here that might be the issue?
> > > >
> > > > Thanks,
> > > > Matt
> > > >
> > > > -----Original Message-----
> > > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > > Sent: Tuesday, April 4, 2017 2:19 PM
> > > > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > > > matthew.sittel.ctr at us.af.mil>
> > > > Subject: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> > > > Install Issues
> > > >
> > > > Hello Matt,
> > > >
> > > > I'm not surprised that you'd receive an error when compiling
MET
> > > > 6.0 using the previous MET 5.2 environment.  In 6.0 we've made
a
> > > > large change from using NetCDF 3 to 4.
> > > >
> > > > You'll need to have both NetCDF 4 and HDF5, upon which NetCDF
4 is
> > > > built, installed.  Please take a look at the MET Users Guide,
the
> > > > online tutorial, or run ./configure --help for info about
compiling.
> > > >
> > > > Thanks,
> > > > John
> > > >
> > > > On Tue, Apr 4, 2017 at 3:08 PM, SITTEL, MATTHEW C CTR USAF
AFWA 16
> > > > WS/WXN via RT <met_help at ucar.edu> wrote:
> > > >
> > > > >
> > > > > Tue Apr 04 13:08:45 2017: Request 80053 was acted upon.
> > > > > Transaction: Ticket created by matthew.sittel.ctr at us.af.mil
> > > > >        Queue: met_help
> > > > >      Subject: V6.0 Install Issues
> > > > >        Owner: Nobody
> > > > >   Requestors: matthew.sittel.ctr at us.af.mil
> > > > >       Status: new
> > > > >  Ticket <URL:
> > > > > https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053
> > > > > >
> > > > >
> > > > >
> > > > > Hi,
> > > > >
> > > > > I'm having trouble getting MET to install.  Here's where
it's
> > > > > failing (excerpt from the Make install log):
> > > > >
> > > > > make[3]: Entering directory `/gpfs/h/WXQC/met-6.0/src/
> > > > libcode/vx_nc_util'
> > > > > g++ -DHAVE_CONFIG_H -I. -I../../..
-I../../../src/basic/vx_cal
> > > > > -I../../../src/basic/vx_config -I../../../src/basic/vx_log
> > > > > -I../../../src/basic/vx_math -I../../../src/basic/vx_util
> > > > > -I../../../src/l ibcode/vx_afm
> > > > > -I../../../src/libcode/vx_analysis_util
> > > > > -I../../../src/libcode/vx_color
-I../../../src/libcode/vx_data2d
> > > > > -I../../../src/libcode/vx_data2d_factory
> > > > > -I../../../src/libcode/vx_ data2d_grib
> > > > >  -I../../../src/libcode/vx_data2d_grib2
> > > > > -I../../../src/libcode/vx_data2d_nccf
> > > > > -I../../../src/libcode/vx_data2d_nc_met
> > > > > -I../../../src/libcode/vx_data2d_nc_pinterp
> > > > > -I../../../src/libcode/vx_geodesy -
> > > > > I../../../src/libcode/vx_gnomon
-I../../../src/libcode/vx_grid
> > > > > -I../../../src/libcode/vx_gsl_prob
-I../../../src/libcode/vx_nav
> > > > > -I../../../src/libcode/vx_nc_util
> > > > > -I../../../src/libcode/vx_pb_util
> > > > > - I../../../src/libcode/vx_plot_util
> > > > > -I../../../src/libcode/vx_ps -I../../../src/libcode/vx_pxm
> > > > > -I../../../src/libcode/vx_render
> > > > > -I../../../src/libcode/vx_regrid
> > > > > -I../../../src/libcode/vx_shapedata
> > > > > - I../../../src/libcode/vx_solar
> > > > > -I../../../src/libcode/vx_statistics
> > > > > -I../../../src/libcode/vx_stat_out
> > > > > -I../../../src/libcode/vx_time_series
> > > > > -I../../../src/libcode/vx_tc_util -I/h/WXQC/met-5.1/lib/
> > > > > netcdf-4.1.3/compiled/include -I/h/WXQC/met-5.1/lib/g2clib-
1.4.0
> > > > > -I/h/WXQC/met-5.1/lib/gsl-1.15/include -DBLOCK4 -DWITH_GRIB2
> > > > > -DMET_BASE="\"/h/WXQC/met-6.0/share/met\""  -g -MT
> > > > > libvx_nc_util_a-nc_v ar_info.o -MD -MP -MF
> > > > > .deps/libvx_nc_util_a-nc_var_info.Tpo -c -o
> > > > > libvx_nc_util_a-nc_var_info.o `test -f 'nc_var_info.cc' ||
echo
> > > > > './'`nc_var_info.cc In file included from nc_var_info.cc:24:
> > > > > nc_utils.h:22:18: error: netcdf: No such file or directory
In
> > > > > file included from nc_var_info.cc:24:
> > > > > nc_utils.h:23: error: ânetCDFâ is not a namespace-name
> > > > > nc_utils.h:23: error: expected namespace-name before â;â
token
> > > > > In file included from nc_var_info.cc:24:
> > > > > nc_utils.h:66: error: ISO C++ forbids declaration of âNcAttâ
> > > > > with no type
> > > > > nc_utils.h:66: error: expected â,â or â...â before â*â token
> > > > >
> > > > > Indeed there is no file named "netcdf" in the directory.  I
see
> > > > > it's the result of an "include <netcdf>" statement, but I
can't
> > > > > tell if this is assumed to be an environmental variable or
if
> > > > > there should be a physical file by that name.
> > > > >
> > > > > I can provide more if you need it.  Sorry about those
extraneous
> "â"
> > > > > characters... I'm not sure why they are there.
> > > > >
> > > > > Thanks,
> > > > > Matt
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>
>

------------------------------------------------
Subject: RE: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0 Install Issues
From: SITTEL, MATTHEW C CTR USAF AFWA 16 WS/WXN
Time: Thu Apr 06 07:37:45 2017

Hey John,

Good news - I got almost all of the binary executables to build.  I
may not be able to get everything installed though, because of the
following local issues:

-Sourceforge downloads are blocked here so I can't get the Freetype,
so MODE-Graphics can't be built.  I'm not sure there's a demand for it
at this point so that may be okay.

-Lidar2nc build is failing because I don't have "yacc" defined, which
is preventing me from getting the HDF4 and EOS2 libraries built.  I
presume modis_regrid will fail for the same reason, but it gets to
this one first and fails.  For now I am disabling this one, and as
before I don't know if anyone needs this.

The above three aren't critical as of now since no one is asking for
them.  But I may need to go back and install later if someone requests
it.

Thanks for all your help!  I'll go read the User's Guide now.
Speaking of which, I noticed there are references to version 5.1 in
the text.  You might want to do a global change on those.

Matt

-----Original Message-----
From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
Sent: Wednesday, April 5, 2017 11:22 AM
To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL
<matthew.sittel.ctr at us.af.mil>
Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
Install Issues

Matt,

NetCDF4 is compiled on top of HDF5.  So HDF5 must be compiled first.
That's why I included them in the instructions.

Do the HDF5 compilation commands work?  Those LDFLAGS and CPPFLAGS
arguments to the NetCDF configure scripts are important too.  They
tell NetCDF where to find the HDF5 libraries it needs.

Thanks,
John

On Wed, Apr 5, 2017 at 12:07 PM, SITTEL, MATTHEW C CTR USAF AFWA 16
WS/WXN via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
>
> I can't get NetCDF 4.4.1.1 to successfully compile.  I rebuilt both
> 4.3.0 and 4.4.1.1.  The former works (but doesn't generate an
"include" or "lib"
> subdirectory during the build).  The latter throws a strange error:
>
> /bin/sh ../libtool  --tag=CC   --mode=compile /usr/bin/gcc
-DHAVE_CONFIG_H
> -I. -I..  -I../include -I../oc2   -I/h/WXQC/met-6.0/lib/netcdf-c-
4.4.1.1/include
>  -MT libnetcdf4_la-nc4file.lo -MD -MP -MF
> .deps/libnetcdf4_la-nc4file.Tpo -c -o libnetcdf4_la-nc4file.lo `test
> -f 'nc4file.c' || echo './'`nc4file.c
> libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -I..
-I../include
> -I../oc2 -I/h/WXQC/met-6.0/lib/netcdf-c-4.4.1.1/include -MT
> libnetcdf4_la-nc4file.lo -MD -MP -MF .deps/libnetcdf4_la-nc4file.Tpo
> -c nc4file.c  -fPIC -DPIC -o .libs/libnetcdf4_la-nc4file.o
> nc4file.c: In function ânc4_open_fileâ:
> nc4file.c:2316: error: âH5LT_FILE_IMAGE_DONT_COPYâ undeclared (first
> use in this function)
> nc4file.c:2316: error: (Each undeclared identifier is reported only
> once
> nc4file.c:2316: error: for each function it appears in.)
> nc4file.c:2316: error: âH5LT_FILE_IMAGE_DONT_RELEASEâ undeclared
> (first use in this function)
> make[1]: *** [libnetcdf4_la-nc4file.lo] Error 1
> make[1]: Leaving directory `/gpfs/h/WXQC/met-6.0/lib/
> netcdf-c-4.4.1.1/libsrc4'
> make: *** [install-recursive] Error 1
>
> So I need to get this build figured out first.  Before I rebuilt,
all
> I saw was a "netcdf.h" in the 4.4.1.1 include directory, apparently
> built during the portion of the install that was successful.
>
> Matt
>
> -----Original Message-----
> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> Sent: Wednesday, April 5, 2017 10:13 AM
> To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> matthew.sittel.ctr at us.af.mil>
> Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> Install Issues
>
> Matt,
>
> Hmmm, so the following file doesn't exist?
>
> ls  /h/WXQC/MET_external_libs/include/netcdf
>
> If not, can you please send me the contents of those directories:
>
> ls /h/WXQC/MET_external_libs/include/netcdf/include
> /h/WXQC/MET_external_libs/include/netcdf/lib
> > netcdf_dir_listing
>
> Please send me "netcdf_dir_listing", the "met-6.0/config.log" file,
> and the output of make (i.e. cd met-6.0; make clean; make install >&
> make_install.log).
>
> Thanks,
> John
>
> On Wed, Apr 5, 2017 at 10:20 AM, SITTEL, MATTHEW C CTR USAF AFWA 16
> WS/WXN via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
> >
> > Hi John,
> >
> > I tried your suggestion for the parent directory MET_NETCDF
setting,
> > but I'm still getting that same error on the <netcdf> that I
pasted
> > in
> earlier.
> >
> > Thanks,
> > Matt
> >
> > -----Original Message-----
> > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > Sent: Wednesday, April 5, 2017 8:52 AM
> > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > matthew.sittel.ctr at us.af.mil>
> > Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> > Install Issues
> >
> > Matt,
> >
> > Yes, good point.  Since NetCDF4 is split out into multiple pieces,
> > we'll need to give some thought for how to set this up and
configure MET.
> > Setting MET_NETCDF to point to only netcdf-c-4.4.1.1 won't work
well.
> >
> > On systems in which I don't have root permission, I usually pick a
> > single directory and then install all the dependencies into that
> > single
> location.
> > Here are some commands you might use.  Note that the last step
sets
> > MET_NETCDF to point to the library directory we're creating.
> >
> > Please let me know how this all goes.
> >
> > Thanks,
> > John
> >
> > # Create single library installation directory
> >
> > setenv MET_LIB_DIR /h/WXQC/MET_external_libs
> >
> > mkdir -p $MET_LIB_DIR
> >
> > cd $MET_LIB_DIR
> >
> > # Compilers
> >
> > setenv CC `which gcc`
> >
> > setenv CXX `which g++`
> >
> > setenv FC `which gfortran`
> >
> > setenv F77 `which gfortran`
> >
> > # HDF5
> >
> > wget
> > https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/
> > hdf5-1.10.0-patch1/src/hdf5-1.10.0-patch1.tar
> >
> > tar -xvzf hdf5-1.10.0-patch1.tar
> >
> > cd hdf5-1.10.0-patch1
> >
> > ./configure --prefix=${MET_LIB_DIR}
> >
> > make install
> >
> > # NetCDF-C
> >
> > wget https://github.com/Unidata/netcdf-c/archive/v4.4.1.1.zip
> >
> > unzip v4.4.1.1.zip
> >
> > cd netcdf-c-4.4.1.1
> >
> > ./configure --prefix=${MET_LIB_DIR} LDFLAGS=-L${MET_LIB_DIR}/lib
> > CPPFLAGS=-I${MET_LIB_DIR}/include
> >
> > make install
> >
> > # NetCDF-CXX
> >
> > wget https://github.com/Unidata/netcdf-cxx4/archive/v4.3.0.tar.gz
> >
> > tar -xvzf v4.3.0.tar.gz
> >
> > cd netcdf-cxx4-4.3.0
> >
> > ./configure --prefix=${MET_LIB_DIR} LDFLAGS=-L${MET_LIB_DIR}/lib
> > CPPFLAGS=-I${MET_LIB_DIR}/include
> >
> > make install
> >
> >
> > # Set MET_NETCDF
> >
> > setenv MET_NETCDF ${MET_LIB_DIR}
> >
> >
> > On Wed, Apr 5, 2017 at 9:26 AM, SITTEL, MATTHEW C CTR USAF AFWA 16
> > WS/WXN via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
> > >
> > > We were using 4.1.3 so I updated the versions and got both of
> > > those downloaded (funny, USAF lets us download the libraries but
> > > not MET) and installed.
> > >
> > > I'm still getting that same error though.  It gets tripped up on
> > > this line from nc_utils.h:
> > >
> > > #include <netcdf>
> > > using namespace netCDF;
> > >
> > > The error message is always the same:
> > >
> > > In file included from nc_var_info.cc:24:
> > > nc_utils.h:22:18: error: netcdf: No such file or directory In
file
> > > included from nc_var_info.cc:24:
> > > nc_utils.h:23: error: netCDF is not a namespace-name
> > > nc_utils.h:23: error: expected namespace-name before ; token
> > >
> > > The part I'm missing is where "netcdf" gets defined.  Is it
meant
> > > to be an environment variable?  I have a whole bunch of export
> > > commands in a separate batch file so the configure properly sets
> > > the directory paths, but something must not be set correctly to
> > > get that variable name
> > defined.
> > >
> > > I updated the line in my batch file to:
> > >
> > > export MET_NETCDF=/h/WXQC/met-6.0/lib/netcdf-c-4.4.1.1
> > >
> > > If both this and 4.3.0 are needed, do I need to explicitly set
the
> > > other version somewhere so the build has both available?
> > >
> > > Matt
> > >
> > > -----Original Message-----
> > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > Sent: Tuesday, April 4, 2017 3:49 PM
> > > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > > matthew.sittel.ctr at us.af.mil>
> > > Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> > > Install Issues
> > >
> > > Matt,
> > >
> > > I'm not an expert on NetCDF, but I've learned that there are
> > > *many* ways of configuring it!
> > >
> > > Here are the commands I used today to build the latest versions
of
> > > HDF5 and
> > > NetCDF4 with GNU compilers on my Mac today for compiling MET.
> > > NetCDF is split across 2 packages... one for C and one for C++.
> > >
> > > In the commands below, you'd need to adjust the paths which
> > > include "/Users/johnhg/MET/external_libs"
> > > to work on your machine. Or if you have root access, you could
> > > remove "--prefix" and let autoconf install into it's default
> > > location of /usr/local.
> > >
> > > John
> > >
> > > # Compilers
> > >
> > > setenv CC `which gcc`
> > >
> > > setenv CXX `which g++`
> > >
> > > setenv FC `which gfortran`
> > > setenv F77 `which gfortran`
> > >
> > > # HDF5
> > >
> > > wget
> > > https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/
> > > hdf5-1.10.0-patch1/src/hdf5-1.10.0-patch1.tar
> > >
> > > tar -xvzf hdf5-1.10.0-patch1.tar
> > >
> > > cd hdf5-1.10.0-patch1
> > >
> > > ./configure --prefix=/Users/johnhg/MET/external_libs
> > >
> > > make install
> > >
> > > # NetCDF-C
> > >
> > > wget https://github.com/Unidata/netcdf-c/archive/v4.4.1.1.zip
> > >
> > > unzip v4.4.1.1.zip
> > >
> > > cd netcdf-c-4.4.1.1
> > >
> > > ./configure --prefix=/Users/johnhg/MET/external_libs
> > > LDFLAGS=-L/Users/johnhg/MET/external_libs/lib
> > > CPPFLAGS=-I/Users/johnhg/MET/external_libs/include
> > >
> > > make install
> > >
> > > # NetCDF-CXX
> > >
> > > wget https://github.com/Unidata/netcdf-
cxx4/archive/v4.3.0.tar.gz
> > >
> > > tar -xvzf v4.3.0.tar.gz
> > >
> > > cd netcdf-cxx4-4.3.0
> > >
> > > ./configure --prefix=/Users/johnhg/MET/external_libs
> > > LDFLAGS=-L/Users/johnhg/MET/external_libs/lib
> > > CPPFLAGS=-I/Users/johnhg/MET/external_libs/include
> > > make install
> > >
> > > On Tue, Apr 4, 2017 at 4:26 PM, SITTEL, MATTHEW C CTR USAF AFWA
16
> > > WS/WXN via RT <met_help at ucar.edu> wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053
>
> > > >
> > > > Hi John,
> > > >
> > > > I have version 4.1.3 for NetCDF (we used it to build 5.2), and
I
> > > > have all
> > > > 3 sets of HDF libraries installed: HDF (4.2.3), HDF5
(5.1.10.0)
> > > > and
> > > HDFEOS.
> > > >
> > > > I think I have the directories in the Makefile, populated by
> > > > environment variables, set correctly, as follows:
> > > >
> > > > MET_BUFR = /h/WXQC/met-6.0/lib/BUFRLIB_v10-0-1
> > > > MET_BUFRLIB = /h/WXQC/met-6.0/lib/BUFRLIB_v10-0-1
> > > > MET_CAIRO =
> > > > MET_CAIROINC =
> > > > MET_CAIROLIB =
> > > > MET_FREETYPE =
> > > > MET_FREETYPEINC =
> > > > MET_FREETYPELIB =
> > > > MET_GRIB2C = /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GRIB2CINC =
> > > > /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GRIB2CLIB =
> > > > /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GSL =
> > > > /h/WXQC/met-6.0/lib/gsl-1.15 MET_GSLINC = ${MET_GSL}/include
> > > > MET_GSLLIB = ${MET_GSL}/lib MET_HDF =
> > > > /h/WXQC/met-6.0/lib/HDF4.2r3
> > > > MET_HDF5 = /h/WXQC/met-6.0/lib/hdf5-1.10.0 MET_HDF5INC =
> > > > ${MET_HDF5}/include MET_HDF5LIB = ${MET_HDF5}/lib MET_HDFEOS =
> > > > /h/WXQC/met-6.0/lib/hdfeos MET_HDFEOSINC =
${MET_HDFEOS}/include
> > > > MET_HDFEOSLIB = ${MET_HDFEOS}/lib MET_HDFINC =
> > > > ${MET_HDF}/include MET_HDFLIB = ${MET_HDF}/lib MET_NETCDF =
> > > > /h/WXQC/met-6.0/lib/netcdf-4.1.3 MET_NETCDFINC =
> > > > ${MET_NETCDF}/include MET_NETCDFLIB = ${MET_NETCDF}/lib
> > > >
> > > > Do you see anything here that might be the issue?
> > > >
> > > > Thanks,
> > > > Matt
> > > >
> > > > -----Original Message-----
> > > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > > Sent: Tuesday, April 4, 2017 2:19 PM
> > > > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > > > matthew.sittel.ctr at us.af.mil>
> > > > Subject: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> > > > Install Issues
> > > >
> > > > Hello Matt,
> > > >
> > > > I'm not surprised that you'd receive an error when compiling
MET
> > > > 6.0 using the previous MET 5.2 environment.  In 6.0 we've made
a
> > > > large change from using NetCDF 3 to 4.
> > > >
> > > > You'll need to have both NetCDF 4 and HDF5, upon which NetCDF
4
> > > > is built, installed.  Please take a look at the MET Users
Guide,
> > > > the online tutorial, or run ./configure --help for info about
compiling.
> > > >
> > > > Thanks,
> > > > John
> > > >
> > > > On Tue, Apr 4, 2017 at 3:08 PM, SITTEL, MATTHEW C CTR USAF
AFWA
> > > > 16 WS/WXN via RT <met_help at ucar.edu> wrote:
> > > >
> > > > >
> > > > > Tue Apr 04 13:08:45 2017: Request 80053 was acted upon.
> > > > > Transaction: Ticket created by matthew.sittel.ctr at us.af.mil
> > > > >        Queue: met_help
> > > > >      Subject: V6.0 Install Issues
> > > > >        Owner: Nobody
> > > > >   Requestors: matthew.sittel.ctr at us.af.mil
> > > > >       Status: new
> > > > >  Ticket <URL:
> > > > > https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053
> > > > > >
> > > > >
> > > > >
> > > > > Hi,
> > > > >
> > > > > I'm having trouble getting MET to install.  Here's where
it's
> > > > > failing (excerpt from the Make install log):
> > > > >
> > > > > make[3]: Entering directory `/gpfs/h/WXQC/met-6.0/src/
> > > > libcode/vx_nc_util'
> > > > > g++ -DHAVE_CONFIG_H -I. -I../../..
> > > > > g++ -I../../../src/basic/vx_cal
> > > > > -I../../../src/basic/vx_config -I../../../src/basic/vx_log
> > > > > -I../../../src/basic/vx_math -I../../../src/basic/vx_util
> > > > > -I../../../src/l ibcode/vx_afm
> > > > > -I../../../src/libcode/vx_analysis_util
> > > > > -I../../../src/libcode/vx_color
> > > > > -I../../../src/libcode/vx_data2d
> > > > > -I../../../src/libcode/vx_data2d_factory
> > > > > -I../../../src/libcode/vx_ data2d_grib
> > > > >  -I../../../src/libcode/vx_data2d_grib2
> > > > > -I../../../src/libcode/vx_data2d_nccf
> > > > > -I../../../src/libcode/vx_data2d_nc_met
> > > > > -I../../../src/libcode/vx_data2d_nc_pinterp
> > > > > -I../../../src/libcode/vx_geodesy -
> > > > > I../../../src/libcode/vx_gnomon
-I../../../src/libcode/vx_grid
> > > > > -I../../../src/libcode/vx_gsl_prob
> > > > > -I../../../src/libcode/vx_nav
> > > > > -I../../../src/libcode/vx_nc_util
> > > > > -I../../../src/libcode/vx_pb_util
> > > > > - I../../../src/libcode/vx_plot_util
> > > > > -I../../../src/libcode/vx_ps -I../../../src/libcode/vx_pxm
> > > > > -I../../../src/libcode/vx_render
> > > > > -I../../../src/libcode/vx_regrid
> > > > > -I../../../src/libcode/vx_shapedata
> > > > > - I../../../src/libcode/vx_solar
> > > > > -I../../../src/libcode/vx_statistics
> > > > > -I../../../src/libcode/vx_stat_out
> > > > > -I../../../src/libcode/vx_time_series
> > > > > -I../../../src/libcode/vx_tc_util -I/h/WXQC/met-5.1/lib/
> > > > > netcdf-4.1.3/compiled/include
> > > > > -I/h/WXQC/met-5.1/lib/g2clib-1.4.0
> > > > > -I/h/WXQC/met-5.1/lib/gsl-1.15/include -DBLOCK4 -DWITH_GRIB2
> > > > > -DMET_BASE="\"/h/WXQC/met-6.0/share/met\""  -g -MT
> > > > > libvx_nc_util_a-nc_v ar_info.o -MD -MP -MF
> > > > > .deps/libvx_nc_util_a-nc_var_info.Tpo -c -o
> > > > > libvx_nc_util_a-nc_var_info.o `test -f 'nc_var_info.cc' ||
> > > > > echo './'`nc_var_info.cc In file included from
nc_var_info.cc:24:
> > > > > nc_utils.h:22:18: error: netcdf: No such file or directory
In
> > > > > file included from nc_var_info.cc:24:
> > > > > nc_utils.h:23: error: ânetCDFâ is not a namespace-name
> > > > > nc_utils.h:23: error: expected namespace-name before â;â
token
> > > > > In file included from nc_var_info.cc:24:
> > > > > nc_utils.h:66: error: ISO C++ forbids declaration of âNcAttâ
> > > > > with no type
> > > > > nc_utils.h:66: error: expected â,â or â...â before â*â token
> > > > >
> > > > > Indeed there is no file named "netcdf" in the directory.  I
> > > > > see it's the result of an "include <netcdf>" statement, but
I
> > > > > can't tell if this is assumed to be an environmental
variable
> > > > > or if there should be a physical file by that name.
> > > > >
> > > > > I can provide more if you need it.  Sorry about those
> > > > > extraneous
> "â"
> > > > > characters... I'm not sure why they are there.
> > > > >
> > > > > Thanks,
> > > > > Matt
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>
>



------------------------------------------------
Subject: FW: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0 Install Issues
From: robert.craig.2 at us.af.mil
Time: Thu Apr 06 07:45:29 2017

Also, I figured out the thresholds to use with category precip.

Bob

-----Original Message-----
From: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL
Sent: Thursday, April 06, 2017 8:36 AM
To: met_help at ucar.edu
Cc: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
<robert.craig.2 at us.af.mil>
Subject: RE: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
Install Issues

Hey John,

Good news - I got almost all of the binary executables to build.  I
may not be able to get everything installed though, because of the
following local issues:

-Sourceforge downloads are blocked here so I can't get the Freetype,
so MODE-Graphics can't be built.  I'm not sure there's a demand for it
at this point so that may be okay.

-Lidar2nc build is failing because I don't have "yacc" defined, which
is preventing me from getting the HDF4 and EOS2 libraries built.  I
presume modis_regrid will fail for the same reason, but it gets to
this one first and fails.  For now I am disabling this one, and as
before I don't know if anyone needs this.

The above three aren't critical as of now since no one is asking for
them.  But I may need to go back and install later if someone requests
it.

Thanks for all your help!  I'll go read the User's Guide now.
Speaking of which, I noticed there are references to version 5.1 in
the text.  You might want to do a global change on those.

Matt

-----Original Message-----
From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
Sent: Wednesday, April 5, 2017 11:22 AM
To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL
<matthew.sittel.ctr at us.af.mil>
Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
Install Issues

Matt,

NetCDF4 is compiled on top of HDF5.  So HDF5 must be compiled first.
That's why I included them in the instructions.

Do the HDF5 compilation commands work?  Those LDFLAGS and CPPFLAGS
arguments to the NetCDF configure scripts are important too.  They
tell NetCDF where to find the HDF5 libraries it needs.

Thanks,
John

On Wed, Apr 5, 2017 at 12:07 PM, SITTEL, MATTHEW C CTR USAF AFWA 16
WS/WXN via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
>
> I can't get NetCDF 4.4.1.1 to successfully compile.  I rebuilt both
> 4.3.0 and 4.4.1.1.  The former works (but doesn't generate an
"include" or "lib"
> subdirectory during the build).  The latter throws a strange error:
>
> /bin/sh ../libtool  --tag=CC   --mode=compile /usr/bin/gcc
-DHAVE_CONFIG_H
> -I. -I..  -I../include -I../oc2   -I/h/WXQC/met-6.0/lib/netcdf-c-
4.4.1.1/include
>  -MT libnetcdf4_la-nc4file.lo -MD -MP -MF
> .deps/libnetcdf4_la-nc4file.Tpo -c -o libnetcdf4_la-nc4file.lo `test
> -f 'nc4file.c' || echo './'`nc4file.c
> libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -I..
-I../include
> -I../oc2 -I/h/WXQC/met-6.0/lib/netcdf-c-4.4.1.1/include -MT
> libnetcdf4_la-nc4file.lo -MD -MP -MF .deps/libnetcdf4_la-nc4file.Tpo
> -c nc4file.c  -fPIC -DPIC -o .libs/libnetcdf4_la-nc4file.o
> nc4file.c: In function ânc4_open_fileâ:
> nc4file.c:2316: error: âH5LT_FILE_IMAGE_DONT_COPYâ undeclared (first
> use in this function)
> nc4file.c:2316: error: (Each undeclared identifier is reported only
> once
> nc4file.c:2316: error: for each function it appears in.)
> nc4file.c:2316: error: âH5LT_FILE_IMAGE_DONT_RELEASEâ undeclared
> (first use in this function)
> make[1]: *** [libnetcdf4_la-nc4file.lo] Error 1
> make[1]: Leaving directory `/gpfs/h/WXQC/met-6.0/lib/
> netcdf-c-4.4.1.1/libsrc4'
> make: *** [install-recursive] Error 1
>
> So I need to get this build figured out first.  Before I rebuilt,
all
> I saw was a "netcdf.h" in the 4.4.1.1 include directory, apparently
> built during the portion of the install that was successful.
>
> Matt
>
> -----Original Message-----
> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> Sent: Wednesday, April 5, 2017 10:13 AM
> To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> matthew.sittel.ctr at us.af.mil>
> Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> Install Issues
>
> Matt,
>
> Hmmm, so the following file doesn't exist?
>
> ls  /h/WXQC/MET_external_libs/include/netcdf
>
> If not, can you please send me the contents of those directories:
>
> ls /h/WXQC/MET_external_libs/include/netcdf/include
> /h/WXQC/MET_external_libs/include/netcdf/lib
> > netcdf_dir_listing
>
> Please send me "netcdf_dir_listing", the "met-6.0/config.log" file,
> and the output of make (i.e. cd met-6.0; make clean; make install >&
> make_install.log).
>
> Thanks,
> John
>
> On Wed, Apr 5, 2017 at 10:20 AM, SITTEL, MATTHEW C CTR USAF AFWA 16
> WS/WXN via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
> >
> > Hi John,
> >
> > I tried your suggestion for the parent directory MET_NETCDF
setting,
> > but I'm still getting that same error on the <netcdf> that I
pasted
> > in
> earlier.
> >
> > Thanks,
> > Matt
> >
> > -----Original Message-----
> > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > Sent: Wednesday, April 5, 2017 8:52 AM
> > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > matthew.sittel.ctr at us.af.mil>
> > Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> > Install Issues
> >
> > Matt,
> >
> > Yes, good point.  Since NetCDF4 is split out into multiple pieces,
> > we'll need to give some thought for how to set this up and
configure MET.
> > Setting MET_NETCDF to point to only netcdf-c-4.4.1.1 won't work
well.
> >
> > On systems in which I don't have root permission, I usually pick a
> > single directory and then install all the dependencies into that
> > single
> location.
> > Here are some commands you might use.  Note that the last step
sets
> > MET_NETCDF to point to the library directory we're creating.
> >
> > Please let me know how this all goes.
> >
> > Thanks,
> > John
> >
> > # Create single library installation directory
> >
> > setenv MET_LIB_DIR /h/WXQC/MET_external_libs
> >
> > mkdir -p $MET_LIB_DIR
> >
> > cd $MET_LIB_DIR
> >
> > # Compilers
> >
> > setenv CC `which gcc`
> >
> > setenv CXX `which g++`
> >
> > setenv FC `which gfortran`
> >
> > setenv F77 `which gfortran`
> >
> > # HDF5
> >
> > wget
> > https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/
> > hdf5-1.10.0-patch1/src/hdf5-1.10.0-patch1.tar
> >
> > tar -xvzf hdf5-1.10.0-patch1.tar
> >
> > cd hdf5-1.10.0-patch1
> >
> > ./configure --prefix=${MET_LIB_DIR}
> >
> > make install
> >
> > # NetCDF-C
> >
> > wget https://github.com/Unidata/netcdf-c/archive/v4.4.1.1.zip
> >
> > unzip v4.4.1.1.zip
> >
> > cd netcdf-c-4.4.1.1
> >
> > ./configure --prefix=${MET_LIB_DIR} LDFLAGS=-L${MET_LIB_DIR}/lib
> > CPPFLAGS=-I${MET_LIB_DIR}/include
> >
> > make install
> >
> > # NetCDF-CXX
> >
> > wget https://github.com/Unidata/netcdf-cxx4/archive/v4.3.0.tar.gz
> >
> > tar -xvzf v4.3.0.tar.gz
> >
> > cd netcdf-cxx4-4.3.0
> >
> > ./configure --prefix=${MET_LIB_DIR} LDFLAGS=-L${MET_LIB_DIR}/lib
> > CPPFLAGS=-I${MET_LIB_DIR}/include
> >
> > make install
> >
> >
> > # Set MET_NETCDF
> >
> > setenv MET_NETCDF ${MET_LIB_DIR}
> >
> >
> > On Wed, Apr 5, 2017 at 9:26 AM, SITTEL, MATTHEW C CTR USAF AFWA 16
> > WS/WXN via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
> > >
> > > We were using 4.1.3 so I updated the versions and got both of
> > > those downloaded (funny, USAF lets us download the libraries but
> > > not MET) and installed.
> > >
> > > I'm still getting that same error though.  It gets tripped up on
> > > this line from nc_utils.h:
> > >
> > > #include <netcdf>
> > > using namespace netCDF;
> > >
> > > The error message is always the same:
> > >
> > > In file included from nc_var_info.cc:24:
> > > nc_utils.h:22:18: error: netcdf: No such file or directory In
file
> > > included from nc_var_info.cc:24:
> > > nc_utils.h:23: error: netCDF is not a namespace-name
> > > nc_utils.h:23: error: expected namespace-name before ; token
> > >
> > > The part I'm missing is where "netcdf" gets defined.  Is it
meant
> > > to be an environment variable?  I have a whole bunch of export
> > > commands in a separate batch file so the configure properly sets
> > > the directory paths, but something must not be set correctly to
> > > get that variable name
> > defined.
> > >
> > > I updated the line in my batch file to:
> > >
> > > export MET_NETCDF=/h/WXQC/met-6.0/lib/netcdf-c-4.4.1.1
> > >
> > > If both this and 4.3.0 are needed, do I need to explicitly set
the
> > > other version somewhere so the build has both available?
> > >
> > > Matt
> > >
> > > -----Original Message-----
> > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > Sent: Tuesday, April 4, 2017 3:49 PM
> > > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > > matthew.sittel.ctr at us.af.mil>
> > > Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> > > Install Issues
> > >
> > > Matt,
> > >
> > > I'm not an expert on NetCDF, but I've learned that there are
> > > *many* ways of configuring it!
> > >
> > > Here are the commands I used today to build the latest versions
of
> > > HDF5 and
> > > NetCDF4 with GNU compilers on my Mac today for compiling MET.
> > > NetCDF is split across 2 packages... one for C and one for C++.
> > >
> > > In the commands below, you'd need to adjust the paths which
> > > include "/Users/johnhg/MET/external_libs"
> > > to work on your machine. Or if you have root access, you could
> > > remove "--prefix" and let autoconf install into it's default
> > > location of /usr/local.
> > >
> > > John
> > >
> > > # Compilers
> > >
> > > setenv CC `which gcc`
> > >
> > > setenv CXX `which g++`
> > >
> > > setenv FC `which gfortran`
> > > setenv F77 `which gfortran`
> > >
> > > # HDF5
> > >
> > > wget
> > > https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/
> > > hdf5-1.10.0-patch1/src/hdf5-1.10.0-patch1.tar
> > >
> > > tar -xvzf hdf5-1.10.0-patch1.tar
> > >
> > > cd hdf5-1.10.0-patch1
> > >
> > > ./configure --prefix=/Users/johnhg/MET/external_libs
> > >
> > > make install
> > >
> > > # NetCDF-C
> > >
> > > wget https://github.com/Unidata/netcdf-c/archive/v4.4.1.1.zip
> > >
> > > unzip v4.4.1.1.zip
> > >
> > > cd netcdf-c-4.4.1.1
> > >
> > > ./configure --prefix=/Users/johnhg/MET/external_libs
> > > LDFLAGS=-L/Users/johnhg/MET/external_libs/lib
> > > CPPFLAGS=-I/Users/johnhg/MET/external_libs/include
> > >
> > > make install
> > >
> > > # NetCDF-CXX
> > >
> > > wget https://github.com/Unidata/netcdf-
cxx4/archive/v4.3.0.tar.gz
> > >
> > > tar -xvzf v4.3.0.tar.gz
> > >
> > > cd netcdf-cxx4-4.3.0
> > >
> > > ./configure --prefix=/Users/johnhg/MET/external_libs
> > > LDFLAGS=-L/Users/johnhg/MET/external_libs/lib
> > > CPPFLAGS=-I/Users/johnhg/MET/external_libs/include
> > > make install
> > >
> > > On Tue, Apr 4, 2017 at 4:26 PM, SITTEL, MATTHEW C CTR USAF AFWA
16
> > > WS/WXN via RT <met_help at ucar.edu> wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053
>
> > > >
> > > > Hi John,
> > > >
> > > > I have version 4.1.3 for NetCDF (we used it to build 5.2), and
I
> > > > have all
> > > > 3 sets of HDF libraries installed: HDF (4.2.3), HDF5
(5.1.10.0)
> > > > and
> > > HDFEOS.
> > > >
> > > > I think I have the directories in the Makefile, populated by
> > > > environment variables, set correctly, as follows:
> > > >
> > > > MET_BUFR = /h/WXQC/met-6.0/lib/BUFRLIB_v10-0-1
> > > > MET_BUFRLIB = /h/WXQC/met-6.0/lib/BUFRLIB_v10-0-1
> > > > MET_CAIRO =
> > > > MET_CAIROINC =
> > > > MET_CAIROLIB =
> > > > MET_FREETYPE =
> > > > MET_FREETYPEINC =
> > > > MET_FREETYPELIB =
> > > > MET_GRIB2C = /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GRIB2CINC =
> > > > /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GRIB2CLIB =
> > > > /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GSL =
> > > > /h/WXQC/met-6.0/lib/gsl-1.15 MET_GSLINC = ${MET_GSL}/include
> > > > MET_GSLLIB = ${MET_GSL}/lib MET_HDF =
> > > > /h/WXQC/met-6.0/lib/HDF4.2r3
> > > > MET_HDF5 = /h/WXQC/met-6.0/lib/hdf5-1.10.0 MET_HDF5INC =
> > > > ${MET_HDF5}/include MET_HDF5LIB = ${MET_HDF5}/lib MET_HDFEOS =
> > > > /h/WXQC/met-6.0/lib/hdfeos MET_HDFEOSINC =
${MET_HDFEOS}/include
> > > > MET_HDFEOSLIB = ${MET_HDFEOS}/lib MET_HDFINC =
> > > > ${MET_HDF}/include MET_HDFLIB = ${MET_HDF}/lib MET_NETCDF =
> > > > /h/WXQC/met-6.0/lib/netcdf-4.1.3 MET_NETCDFINC =
> > > > ${MET_NETCDF}/include MET_NETCDFLIB = ${MET_NETCDF}/lib
> > > >
> > > > Do you see anything here that might be the issue?
> > > >
> > > > Thanks,
> > > > Matt
> > > >
> > > > -----Original Message-----
> > > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > > Sent: Tuesday, April 4, 2017 2:19 PM
> > > > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > > > matthew.sittel.ctr at us.af.mil>
> > > > Subject: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> > > > Install Issues
> > > >
> > > > Hello Matt,
> > > >
> > > > I'm not surprised that you'd receive an error when compiling
MET
> > > > 6.0 using the previous MET 5.2 environment.  In 6.0 we've made
a
> > > > large change from using NetCDF 3 to 4.
> > > >
> > > > You'll need to have both NetCDF 4 and HDF5, upon which NetCDF
4
> > > > is built, installed.  Please take a look at the MET Users
Guide,
> > > > the online tutorial, or run ./configure --help for info about
compiling.
> > > >
> > > > Thanks,
> > > > John
> > > >
> > > > On Tue, Apr 4, 2017 at 3:08 PM, SITTEL, MATTHEW C CTR USAF
AFWA
> > > > 16 WS/WXN via RT <met_help at ucar.edu> wrote:
> > > >
> > > > >
> > > > > Tue Apr 04 13:08:45 2017: Request 80053 was acted upon.
> > > > > Transaction: Ticket created by matthew.sittel.ctr at us.af.mil
> > > > >        Queue: met_help
> > > > >      Subject: V6.0 Install Issues
> > > > >        Owner: Nobody
> > > > >   Requestors: matthew.sittel.ctr at us.af.mil
> > > > >       Status: new
> > > > >  Ticket <URL:
> > > > > https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053
> > > > > >
> > > > >
> > > > >
> > > > > Hi,
> > > > >
> > > > > I'm having trouble getting MET to install.  Here's where
it's
> > > > > failing (excerpt from the Make install log):
> > > > >
> > > > > make[3]: Entering directory `/gpfs/h/WXQC/met-6.0/src/
> > > > libcode/vx_nc_util'
> > > > > g++ -DHAVE_CONFIG_H -I. -I../../..
> > > > > g++ -I../../../src/basic/vx_cal
> > > > > -I../../../src/basic/vx_config -I../../../src/basic/vx_log
> > > > > -I../../../src/basic/vx_math -I../../../src/basic/vx_util
> > > > > -I../../../src/l ibcode/vx_afm
> > > > > -I../../../src/libcode/vx_analysis_util
> > > > > -I../../../src/libcode/vx_color
> > > > > -I../../../src/libcode/vx_data2d
> > > > > -I../../../src/libcode/vx_data2d_factory
> > > > > -I../../../src/libcode/vx_ data2d_grib
> > > > >  -I../../../src/libcode/vx_data2d_grib2
> > > > > -I../../../src/libcode/vx_data2d_nccf
> > > > > -I../../../src/libcode/vx_data2d_nc_met
> > > > > -I../../../src/libcode/vx_data2d_nc_pinterp
> > > > > -I../../../src/libcode/vx_geodesy -
> > > > > I../../../src/libcode/vx_gnomon
-I../../../src/libcode/vx_grid
> > > > > -I../../../src/libcode/vx_gsl_prob
> > > > > -I../../../src/libcode/vx_nav
> > > > > -I../../../src/libcode/vx_nc_util
> > > > > -I../../../src/libcode/vx_pb_util
> > > > > - I../../../src/libcode/vx_plot_util
> > > > > -I../../../src/libcode/vx_ps -I../../../src/libcode/vx_pxm
> > > > > -I../../../src/libcode/vx_render
> > > > > -I../../../src/libcode/vx_regrid
> > > > > -I../../../src/libcode/vx_shapedata
> > > > > - I../../../src/libcode/vx_solar
> > > > > -I../../../src/libcode/vx_statistics
> > > > > -I../../../src/libcode/vx_stat_out
> > > > > -I../../../src/libcode/vx_time_series
> > > > > -I../../../src/libcode/vx_tc_util -I/h/WXQC/met-5.1/lib/
> > > > > netcdf-4.1.3/compiled/include
> > > > > -I/h/WXQC/met-5.1/lib/g2clib-1.4.0
> > > > > -I/h/WXQC/met-5.1/lib/gsl-1.15/include -DBLOCK4 -DWITH_GRIB2
> > > > > -DMET_BASE="\"/h/WXQC/met-6.0/share/met\""  -g -MT
> > > > > libvx_nc_util_a-nc_v ar_info.o -MD -MP -MF
> > > > > .deps/libvx_nc_util_a-nc_var_info.Tpo -c -o
> > > > > libvx_nc_util_a-nc_var_info.o `test -f 'nc_var_info.cc' ||
> > > > > echo './'`nc_var_info.cc In file included from
nc_var_info.cc:24:
> > > > > nc_utils.h:22:18: error: netcdf: No such file or directory
In
> > > > > file included from nc_var_info.cc:24:
> > > > > nc_utils.h:23: error: ânetCDFâ is not a namespace-name
> > > > > nc_utils.h:23: error: expected namespace-name before â;â
token
> > > > > In file included from nc_var_info.cc:24:
> > > > > nc_utils.h:66: error: ISO C++ forbids declaration of âNcAttâ
> > > > > with no type
> > > > > nc_utils.h:66: error: expected â,â or â...â before â*â token
> > > > >
> > > > > Indeed there is no file named "netcdf" in the directory.  I
> > > > > see it's the result of an "include <netcdf>" statement, but
I
> > > > > can't tell if this is assumed to be an environmental
variable
> > > > > or if there should be a physical file by that name.
> > > > >
> > > > > I can provide more if you need it.  Sorry about those
> > > > > extraneous
> "â"
> > > > > characters... I'm not sure why they are there.
> > > > >
> > > > > Thanks,
> > > > > Matt
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>
>



------------------------------------------------
Subject: FW: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0 Install Issues
From: robert.craig.2 at us.af.mil
Time: Thu Apr 06 07:51:13 2017

John, I also solved the threshold issue for category forecasts - set
the fcst and ob to ==1.

Bob

-----Original Message-----
From: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL
Sent: Thursday, April 06, 2017 8:36 AM
To: met_help at ucar.edu
Cc: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
<robert.craig.2 at us.af.mil>
Subject: RE: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
Install Issues

Hey John,

Good news - I got almost all of the binary executables to build.  I
may not be able to get everything installed though, because of the
following local issues:

-Sourceforge downloads are blocked here so I can't get the Freetype,
so MODE-Graphics can't be built.  I'm not sure there's a demand for it
at this point so that may be okay.

-Lidar2nc build is failing because I don't have "yacc" defined, which
is preventing me from getting the HDF4 and EOS2 libraries built.  I
presume modis_regrid will fail for the same reason, but it gets to
this one first and fails.  For now I am disabling this one, and as
before I don't know if anyone needs this.

The above three aren't critical as of now since no one is asking for
them.  But I may need to go back and install later if someone requests
it.

Thanks for all your help!  I'll go read the User's Guide now.
Speaking of which, I noticed there are references to version 5.1 in
the text.  You might want to do a global change on those.

Matt

-----Original Message-----
From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
Sent: Wednesday, April 5, 2017 11:22 AM
To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL
<matthew.sittel.ctr at us.af.mil>
Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
Install Issues

Matt,

NetCDF4 is compiled on top of HDF5.  So HDF5 must be compiled first.
That's why I included them in the instructions.

Do the HDF5 compilation commands work?  Those LDFLAGS and CPPFLAGS
arguments to the NetCDF configure scripts are important too.  They
tell NetCDF where to find the HDF5 libraries it needs.

Thanks,
John

On Wed, Apr 5, 2017 at 12:07 PM, SITTEL, MATTHEW C CTR USAF AFWA 16
WS/WXN via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
>
> I can't get NetCDF 4.4.1.1 to successfully compile.  I rebuilt both
> 4.3.0 and 4.4.1.1.  The former works (but doesn't generate an
"include" or "lib"
> subdirectory during the build).  The latter throws a strange error:
>
> /bin/sh ../libtool  --tag=CC   --mode=compile /usr/bin/gcc
-DHAVE_CONFIG_H
> -I. -I..  -I../include -I../oc2   -I/h/WXQC/met-6.0/lib/netcdf-c-
4.4.1.1/include
>  -MT libnetcdf4_la-nc4file.lo -MD -MP -MF
> .deps/libnetcdf4_la-nc4file.Tpo -c -o libnetcdf4_la-nc4file.lo `test
> -f 'nc4file.c' || echo './'`nc4file.c
> libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -I..
-I../include
> -I../oc2 -I/h/WXQC/met-6.0/lib/netcdf-c-4.4.1.1/include -MT
> libnetcdf4_la-nc4file.lo -MD -MP -MF .deps/libnetcdf4_la-nc4file.Tpo
> -c nc4file.c  -fPIC -DPIC -o .libs/libnetcdf4_la-nc4file.o
> nc4file.c: In function ânc4_open_fileâ:
> nc4file.c:2316: error: âH5LT_FILE_IMAGE_DONT_COPYâ undeclared (first
> use in this function)
> nc4file.c:2316: error: (Each undeclared identifier is reported only
> once
> nc4file.c:2316: error: for each function it appears in.)
> nc4file.c:2316: error: âH5LT_FILE_IMAGE_DONT_RELEASEâ undeclared
> (first use in this function)
> make[1]: *** [libnetcdf4_la-nc4file.lo] Error 1
> make[1]: Leaving directory `/gpfs/h/WXQC/met-6.0/lib/
> netcdf-c-4.4.1.1/libsrc4'
> make: *** [install-recursive] Error 1
>
> So I need to get this build figured out first.  Before I rebuilt,
all
> I saw was a "netcdf.h" in the 4.4.1.1 include directory, apparently
> built during the portion of the install that was successful.
>
> Matt
>
> -----Original Message-----
> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> Sent: Wednesday, April 5, 2017 10:13 AM
> To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> matthew.sittel.ctr at us.af.mil>
> Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> Install Issues
>
> Matt,
>
> Hmmm, so the following file doesn't exist?
>
> ls  /h/WXQC/MET_external_libs/include/netcdf
>
> If not, can you please send me the contents of those directories:
>
> ls /h/WXQC/MET_external_libs/include/netcdf/include
> /h/WXQC/MET_external_libs/include/netcdf/lib
> > netcdf_dir_listing
>
> Please send me "netcdf_dir_listing", the "met-6.0/config.log" file,
> and the output of make (i.e. cd met-6.0; make clean; make install >&
> make_install.log).
>
> Thanks,
> John
>
> On Wed, Apr 5, 2017 at 10:20 AM, SITTEL, MATTHEW C CTR USAF AFWA 16
> WS/WXN via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
> >
> > Hi John,
> >
> > I tried your suggestion for the parent directory MET_NETCDF
setting,
> > but I'm still getting that same error on the <netcdf> that I
pasted
> > in
> earlier.
> >
> > Thanks,
> > Matt
> >
> > -----Original Message-----
> > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > Sent: Wednesday, April 5, 2017 8:52 AM
> > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > matthew.sittel.ctr at us.af.mil>
> > Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> > Install Issues
> >
> > Matt,
> >
> > Yes, good point.  Since NetCDF4 is split out into multiple pieces,
> > we'll need to give some thought for how to set this up and
configure MET.
> > Setting MET_NETCDF to point to only netcdf-c-4.4.1.1 won't work
well.
> >
> > On systems in which I don't have root permission, I usually pick a
> > single directory and then install all the dependencies into that
> > single
> location.
> > Here are some commands you might use.  Note that the last step
sets
> > MET_NETCDF to point to the library directory we're creating.
> >
> > Please let me know how this all goes.
> >
> > Thanks,
> > John
> >
> > # Create single library installation directory
> >
> > setenv MET_LIB_DIR /h/WXQC/MET_external_libs
> >
> > mkdir -p $MET_LIB_DIR
> >
> > cd $MET_LIB_DIR
> >
> > # Compilers
> >
> > setenv CC `which gcc`
> >
> > setenv CXX `which g++`
> >
> > setenv FC `which gfortran`
> >
> > setenv F77 `which gfortran`
> >
> > # HDF5
> >
> > wget
> > https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/
> > hdf5-1.10.0-patch1/src/hdf5-1.10.0-patch1.tar
> >
> > tar -xvzf hdf5-1.10.0-patch1.tar
> >
> > cd hdf5-1.10.0-patch1
> >
> > ./configure --prefix=${MET_LIB_DIR}
> >
> > make install
> >
> > # NetCDF-C
> >
> > wget https://github.com/Unidata/netcdf-c/archive/v4.4.1.1.zip
> >
> > unzip v4.4.1.1.zip
> >
> > cd netcdf-c-4.4.1.1
> >
> > ./configure --prefix=${MET_LIB_DIR} LDFLAGS=-L${MET_LIB_DIR}/lib
> > CPPFLAGS=-I${MET_LIB_DIR}/include
> >
> > make install
> >
> > # NetCDF-CXX
> >
> > wget https://github.com/Unidata/netcdf-cxx4/archive/v4.3.0.tar.gz
> >
> > tar -xvzf v4.3.0.tar.gz
> >
> > cd netcdf-cxx4-4.3.0
> >
> > ./configure --prefix=${MET_LIB_DIR} LDFLAGS=-L${MET_LIB_DIR}/lib
> > CPPFLAGS=-I${MET_LIB_DIR}/include
> >
> > make install
> >
> >
> > # Set MET_NETCDF
> >
> > setenv MET_NETCDF ${MET_LIB_DIR}
> >
> >
> > On Wed, Apr 5, 2017 at 9:26 AM, SITTEL, MATTHEW C CTR USAF AFWA 16
> > WS/WXN via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
> > >
> > > We were using 4.1.3 so I updated the versions and got both of
> > > those downloaded (funny, USAF lets us download the libraries but
> > > not MET) and installed.
> > >
> > > I'm still getting that same error though.  It gets tripped up on
> > > this line from nc_utils.h:
> > >
> > > #include <netcdf>
> > > using namespace netCDF;
> > >
> > > The error message is always the same:
> > >
> > > In file included from nc_var_info.cc:24:
> > > nc_utils.h:22:18: error: netcdf: No such file or directory In
file
> > > included from nc_var_info.cc:24:
> > > nc_utils.h:23: error: netCDF is not a namespace-name
> > > nc_utils.h:23: error: expected namespace-name before ; token
> > >
> > > The part I'm missing is where "netcdf" gets defined.  Is it
meant
> > > to be an environment variable?  I have a whole bunch of export
> > > commands in a separate batch file so the configure properly sets
> > > the directory paths, but something must not be set correctly to
> > > get that variable name
> > defined.
> > >
> > > I updated the line in my batch file to:
> > >
> > > export MET_NETCDF=/h/WXQC/met-6.0/lib/netcdf-c-4.4.1.1
> > >
> > > If both this and 4.3.0 are needed, do I need to explicitly set
the
> > > other version somewhere so the build has both available?
> > >
> > > Matt
> > >
> > > -----Original Message-----
> > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > Sent: Tuesday, April 4, 2017 3:49 PM
> > > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > > matthew.sittel.ctr at us.af.mil>
> > > Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> > > Install Issues
> > >
> > > Matt,
> > >
> > > I'm not an expert on NetCDF, but I've learned that there are
> > > *many* ways of configuring it!
> > >
> > > Here are the commands I used today to build the latest versions
of
> > > HDF5 and
> > > NetCDF4 with GNU compilers on my Mac today for compiling MET.
> > > NetCDF is split across 2 packages... one for C and one for C++.
> > >
> > > In the commands below, you'd need to adjust the paths which
> > > include "/Users/johnhg/MET/external_libs"
> > > to work on your machine. Or if you have root access, you could
> > > remove "--prefix" and let autoconf install into it's default
> > > location of /usr/local.
> > >
> > > John
> > >
> > > # Compilers
> > >
> > > setenv CC `which gcc`
> > >
> > > setenv CXX `which g++`
> > >
> > > setenv FC `which gfortran`
> > > setenv F77 `which gfortran`
> > >
> > > # HDF5
> > >
> > > wget
> > > https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/
> > > hdf5-1.10.0-patch1/src/hdf5-1.10.0-patch1.tar
> > >
> > > tar -xvzf hdf5-1.10.0-patch1.tar
> > >
> > > cd hdf5-1.10.0-patch1
> > >
> > > ./configure --prefix=/Users/johnhg/MET/external_libs
> > >
> > > make install
> > >
> > > # NetCDF-C
> > >
> > > wget https://github.com/Unidata/netcdf-c/archive/v4.4.1.1.zip
> > >
> > > unzip v4.4.1.1.zip
> > >
> > > cd netcdf-c-4.4.1.1
> > >
> > > ./configure --prefix=/Users/johnhg/MET/external_libs
> > > LDFLAGS=-L/Users/johnhg/MET/external_libs/lib
> > > CPPFLAGS=-I/Users/johnhg/MET/external_libs/include
> > >
> > > make install
> > >
> > > # NetCDF-CXX
> > >
> > > wget https://github.com/Unidata/netcdf-
cxx4/archive/v4.3.0.tar.gz
> > >
> > > tar -xvzf v4.3.0.tar.gz
> > >
> > > cd netcdf-cxx4-4.3.0
> > >
> > > ./configure --prefix=/Users/johnhg/MET/external_libs
> > > LDFLAGS=-L/Users/johnhg/MET/external_libs/lib
> > > CPPFLAGS=-I/Users/johnhg/MET/external_libs/include
> > > make install
> > >
> > > On Tue, Apr 4, 2017 at 4:26 PM, SITTEL, MATTHEW C CTR USAF AFWA
16
> > > WS/WXN via RT <met_help at ucar.edu> wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053
>
> > > >
> > > > Hi John,
> > > >
> > > > I have version 4.1.3 for NetCDF (we used it to build 5.2), and
I
> > > > have all
> > > > 3 sets of HDF libraries installed: HDF (4.2.3), HDF5
(5.1.10.0)
> > > > and
> > > HDFEOS.
> > > >
> > > > I think I have the directories in the Makefile, populated by
> > > > environment variables, set correctly, as follows:
> > > >
> > > > MET_BUFR = /h/WXQC/met-6.0/lib/BUFRLIB_v10-0-1
> > > > MET_BUFRLIB = /h/WXQC/met-6.0/lib/BUFRLIB_v10-0-1
> > > > MET_CAIRO =
> > > > MET_CAIROINC =
> > > > MET_CAIROLIB =
> > > > MET_FREETYPE =
> > > > MET_FREETYPEINC =
> > > > MET_FREETYPELIB =
> > > > MET_GRIB2C = /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GRIB2CINC =
> > > > /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GRIB2CLIB =
> > > > /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GSL =
> > > > /h/WXQC/met-6.0/lib/gsl-1.15 MET_GSLINC = ${MET_GSL}/include
> > > > MET_GSLLIB = ${MET_GSL}/lib MET_HDF =
> > > > /h/WXQC/met-6.0/lib/HDF4.2r3
> > > > MET_HDF5 = /h/WXQC/met-6.0/lib/hdf5-1.10.0 MET_HDF5INC =
> > > > ${MET_HDF5}/include MET_HDF5LIB = ${MET_HDF5}/lib MET_HDFEOS =
> > > > /h/WXQC/met-6.0/lib/hdfeos MET_HDFEOSINC =
${MET_HDFEOS}/include
> > > > MET_HDFEOSLIB = ${MET_HDFEOS}/lib MET_HDFINC =
> > > > ${MET_HDF}/include MET_HDFLIB = ${MET_HDF}/lib MET_NETCDF =
> > > > /h/WXQC/met-6.0/lib/netcdf-4.1.3 MET_NETCDFINC =
> > > > ${MET_NETCDF}/include MET_NETCDFLIB = ${MET_NETCDF}/lib
> > > >
> > > > Do you see anything here that might be the issue?
> > > >
> > > > Thanks,
> > > > Matt
> > > >
> > > > -----Original Message-----
> > > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > > Sent: Tuesday, April 4, 2017 2:19 PM
> > > > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > > > matthew.sittel.ctr at us.af.mil>
> > > > Subject: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> > > > Install Issues
> > > >
> > > > Hello Matt,
> > > >
> > > > I'm not surprised that you'd receive an error when compiling
MET
> > > > 6.0 using the previous MET 5.2 environment.  In 6.0 we've made
a
> > > > large change from using NetCDF 3 to 4.
> > > >
> > > > You'll need to have both NetCDF 4 and HDF5, upon which NetCDF
4
> > > > is built, installed.  Please take a look at the MET Users
Guide,
> > > > the online tutorial, or run ./configure --help for info about
compiling.
> > > >
> > > > Thanks,
> > > > John
> > > >
> > > > On Tue, Apr 4, 2017 at 3:08 PM, SITTEL, MATTHEW C CTR USAF
AFWA
> > > > 16 WS/WXN via RT <met_help at ucar.edu> wrote:
> > > >
> > > > >
> > > > > Tue Apr 04 13:08:45 2017: Request 80053 was acted upon.
> > > > > Transaction: Ticket created by matthew.sittel.ctr at us.af.mil
> > > > >        Queue: met_help
> > > > >      Subject: V6.0 Install Issues
> > > > >        Owner: Nobody
> > > > >   Requestors: matthew.sittel.ctr at us.af.mil
> > > > >       Status: new
> > > > >  Ticket <URL:
> > > > > https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053
> > > > > >
> > > > >
> > > > >
> > > > > Hi,
> > > > >
> > > > > I'm having trouble getting MET to install.  Here's where
it's
> > > > > failing (excerpt from the Make install log):
> > > > >
> > > > > make[3]: Entering directory `/gpfs/h/WXQC/met-6.0/src/
> > > > libcode/vx_nc_util'
> > > > > g++ -DHAVE_CONFIG_H -I. -I../../..
> > > > > g++ -I../../../src/basic/vx_cal
> > > > > -I../../../src/basic/vx_config -I../../../src/basic/vx_log
> > > > > -I../../../src/basic/vx_math -I../../../src/basic/vx_util
> > > > > -I../../../src/l ibcode/vx_afm
> > > > > -I../../../src/libcode/vx_analysis_util
> > > > > -I../../../src/libcode/vx_color
> > > > > -I../../../src/libcode/vx_data2d
> > > > > -I../../../src/libcode/vx_data2d_factory
> > > > > -I../../../src/libcode/vx_ data2d_grib
> > > > >  -I../../../src/libcode/vx_data2d_grib2
> > > > > -I../../../src/libcode/vx_data2d_nccf
> > > > > -I../../../src/libcode/vx_data2d_nc_met
> > > > > -I../../../src/libcode/vx_data2d_nc_pinterp
> > > > > -I../../../src/libcode/vx_geodesy -
> > > > > I../../../src/libcode/vx_gnomon
-I../../../src/libcode/vx_grid
> > > > > -I../../../src/libcode/vx_gsl_prob
> > > > > -I../../../src/libcode/vx_nav
> > > > > -I../../../src/libcode/vx_nc_util
> > > > > -I../../../src/libcode/vx_pb_util
> > > > > - I../../../src/libcode/vx_plot_util
> > > > > -I../../../src/libcode/vx_ps -I../../../src/libcode/vx_pxm
> > > > > -I../../../src/libcode/vx_render
> > > > > -I../../../src/libcode/vx_regrid
> > > > > -I../../../src/libcode/vx_shapedata
> > > > > - I../../../src/libcode/vx_solar
> > > > > -I../../../src/libcode/vx_statistics
> > > > > -I../../../src/libcode/vx_stat_out
> > > > > -I../../../src/libcode/vx_time_series
> > > > > -I../../../src/libcode/vx_tc_util -I/h/WXQC/met-5.1/lib/
> > > > > netcdf-4.1.3/compiled/include
> > > > > -I/h/WXQC/met-5.1/lib/g2clib-1.4.0
> > > > > -I/h/WXQC/met-5.1/lib/gsl-1.15/include -DBLOCK4 -DWITH_GRIB2
> > > > > -DMET_BASE="\"/h/WXQC/met-6.0/share/met\""  -g -MT
> > > > > libvx_nc_util_a-nc_v ar_info.o -MD -MP -MF
> > > > > .deps/libvx_nc_util_a-nc_var_info.Tpo -c -o
> > > > > libvx_nc_util_a-nc_var_info.o `test -f 'nc_var_info.cc' ||
> > > > > echo './'`nc_var_info.cc In file included from
nc_var_info.cc:24:
> > > > > nc_utils.h:22:18: error: netcdf: No such file or directory
In
> > > > > file included from nc_var_info.cc:24:
> > > > > nc_utils.h:23: error: ânetCDFâ is not a namespace-name
> > > > > nc_utils.h:23: error: expected namespace-name before â;â
token
> > > > > In file included from nc_var_info.cc:24:
> > > > > nc_utils.h:66: error: ISO C++ forbids declaration of âNcAttâ
> > > > > with no type
> > > > > nc_utils.h:66: error: expected â,â or â...â before â*â token
> > > > >
> > > > > Indeed there is no file named "netcdf" in the directory.  I
> > > > > see it's the result of an "include <netcdf>" statement, but
I
> > > > > can't tell if this is assumed to be an environmental
variable
> > > > > or if there should be a physical file by that name.
> > > > >
> > > > > I can provide more if you need it.  Sorry about those
> > > > > extraneous
> "â"
> > > > > characters... I'm not sure why they are there.
> > > > >
> > > > > Thanks,
> > > > > Matt
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>
>



------------------------------------------------
Subject: V6.0 Install Issues
From: John Halley Gotway
Time: Thu Apr 06 08:17:32 2017

Bob,

Great, glad you were able to figure that out.   That's what I was
going to
recommend.

Matt,

Glad you made progress, but I am concerned about the calling of yacc.
Our
intention is to strip all calls to lex and yacc out of the released
tarball.  So I should look at this more closely.

Thanks,
John


On Thu, Apr 6, 2017 at 9:51 AM, robert.craig.2 at us.af.mil via RT <
met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
>
> John, I also solved the threshold issue for category forecasts - set
the
> fcst and ob to ==1.
>
> Bob
>
> -----Original Message-----
> From: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL
> Sent: Thursday, April 06, 2017 8:36 AM
> To: met_help at ucar.edu
> Cc: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
<robert.craig.2 at us.af.mil>
> Subject: RE: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
Install
> Issues
>
> Hey John,
>
> Good news - I got almost all of the binary executables to build.  I
may
> not be able to get everything installed though, because of the
following
> local issues:
>
> -Sourceforge downloads are blocked here so I can't get the Freetype,
so
> MODE-Graphics can't be built.  I'm not sure there's a demand for it
at this
> point so that may be okay.
>
> -Lidar2nc build is failing because I don't have "yacc" defined,
which is
> preventing me from getting the HDF4 and EOS2 libraries built.  I
presume
> modis_regrid will fail for the same reason, but it gets to this one
first
> and fails.  For now I am disabling this one, and as before I don't
know if
> anyone needs this.
>
> The above three aren't critical as of now since no one is asking for
> them.  But I may need to go back and install later if someone
requests it.
>
> Thanks for all your help!  I'll go read the User's Guide now.
Speaking of
> which, I noticed there are references to version 5.1 in the text.
You
> might want to do a global change on those.
>
> Matt
>
> -----Original Message-----
> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> Sent: Wednesday, April 5, 2017 11:22 AM
> To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> matthew.sittel.ctr at us.af.mil>
> Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
Install
> Issues
>
> Matt,
>
> NetCDF4 is compiled on top of HDF5.  So HDF5 must be compiled first.
> That's why I included them in the instructions.
>
> Do the HDF5 compilation commands work?  Those LDFLAGS and CPPFLAGS
> arguments to the NetCDF configure scripts are important too.  They
tell
> NetCDF where to find the HDF5 libraries it needs.
>
> Thanks,
> John
>
> On Wed, Apr 5, 2017 at 12:07 PM, SITTEL, MATTHEW C CTR USAF AFWA 16
WS/WXN
> via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
> >
> > I can't get NetCDF 4.4.1.1 to successfully compile.  I rebuilt
both
> > 4.3.0 and 4.4.1.1.  The former works (but doesn't generate an
"include"
> or "lib"
> > subdirectory during the build).  The latter throws a strange
error:
> >
> > /bin/sh ../libtool  --tag=CC   --mode=compile /usr/bin/gcc
> -DHAVE_CONFIG_H
> > -I. -I..  -I../include -I../oc2   -I/h/WXQC/met-6.0/lib/netcdf-
> c-4.4.1.1/include
> >  -MT libnetcdf4_la-nc4file.lo -MD -MP -MF
> > .deps/libnetcdf4_la-nc4file.Tpo -c -o libnetcdf4_la-nc4file.lo
`test
> > -f 'nc4file.c' || echo './'`nc4file.c
> > libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -I..
-I../include
> > -I../oc2 -I/h/WXQC/met-6.0/lib/netcdf-c-4.4.1.1/include -MT
> > libnetcdf4_la-nc4file.lo -MD -MP -MF .deps/libnetcdf4_la-
nc4file.Tpo
> > -c nc4file.c  -fPIC -DPIC -o .libs/libnetcdf4_la-nc4file.o
> > nc4file.c: In function ânc4_open_fileâ:
> > nc4file.c:2316: error: âH5LT_FILE_IMAGE_DONT_COPYâ undeclared
(first
> > use in this function)
> > nc4file.c:2316: error: (Each undeclared identifier is reported
only
> > once
> > nc4file.c:2316: error: for each function it appears in.)
> > nc4file.c:2316: error: âH5LT_FILE_IMAGE_DONT_RELEASEâ undeclared
> > (first use in this function)
> > make[1]: *** [libnetcdf4_la-nc4file.lo] Error 1
> > make[1]: Leaving directory `/gpfs/h/WXQC/met-6.0/lib/
> > netcdf-c-4.4.1.1/libsrc4'
> > make: *** [install-recursive] Error 1
> >
> > So I need to get this build figured out first.  Before I rebuilt,
all
> > I saw was a "netcdf.h" in the 4.4.1.1 include directory,
apparently
> > built during the portion of the install that was successful.
> >
> > Matt
> >
> > -----Original Message-----
> > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > Sent: Wednesday, April 5, 2017 10:13 AM
> > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > matthew.sittel.ctr at us.af.mil>
> > Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> > Install Issues
> >
> > Matt,
> >
> > Hmmm, so the following file doesn't exist?
> >
> > ls  /h/WXQC/MET_external_libs/include/netcdf
> >
> > If not, can you please send me the contents of those directories:
> >
> > ls /h/WXQC/MET_external_libs/include/netcdf/include
> > /h/WXQC/MET_external_libs/include/netcdf/lib
> > > netcdf_dir_listing
> >
> > Please send me "netcdf_dir_listing", the "met-6.0/config.log"
file,
> > and the output of make (i.e. cd met-6.0; make clean; make install
>&
> > make_install.log).
> >
> > Thanks,
> > John
> >
> > On Wed, Apr 5, 2017 at 10:20 AM, SITTEL, MATTHEW C CTR USAF AFWA
16
> > WS/WXN via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
> > >
> > > Hi John,
> > >
> > > I tried your suggestion for the parent directory MET_NETCDF
setting,
> > > but I'm still getting that same error on the <netcdf> that I
pasted
> > > in
> > earlier.
> > >
> > > Thanks,
> > > Matt
> > >
> > > -----Original Message-----
> > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > Sent: Wednesday, April 5, 2017 8:52 AM
> > > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > > matthew.sittel.ctr at us.af.mil>
> > > Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> > > Install Issues
> > >
> > > Matt,
> > >
> > > Yes, good point.  Since NetCDF4 is split out into multiple
pieces,
> > > we'll need to give some thought for how to set this up and
configure
> MET.
> > > Setting MET_NETCDF to point to only netcdf-c-4.4.1.1 won't work
well.
> > >
> > > On systems in which I don't have root permission, I usually pick
a
> > > single directory and then install all the dependencies into that
> > > single
> > location.
> > > Here are some commands you might use.  Note that the last step
sets
> > > MET_NETCDF to point to the library directory we're creating.
> > >
> > > Please let me know how this all goes.
> > >
> > > Thanks,
> > > John
> > >
> > > # Create single library installation directory
> > >
> > > setenv MET_LIB_DIR /h/WXQC/MET_external_libs
> > >
> > > mkdir -p $MET_LIB_DIR
> > >
> > > cd $MET_LIB_DIR
> > >
> > > # Compilers
> > >
> > > setenv CC `which gcc`
> > >
> > > setenv CXX `which g++`
> > >
> > > setenv FC `which gfortran`
> > >
> > > setenv F77 `which gfortran`
> > >
> > > # HDF5
> > >
> > > wget
> > > https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/
> > > hdf5-1.10.0-patch1/src/hdf5-1.10.0-patch1.tar
> > >
> > > tar -xvzf hdf5-1.10.0-patch1.tar
> > >
> > > cd hdf5-1.10.0-patch1
> > >
> > > ./configure --prefix=${MET_LIB_DIR}
> > >
> > > make install
> > >
> > > # NetCDF-C
> > >
> > > wget https://github.com/Unidata/netcdf-c/archive/v4.4.1.1.zip
> > >
> > > unzip v4.4.1.1.zip
> > >
> > > cd netcdf-c-4.4.1.1
> > >
> > > ./configure --prefix=${MET_LIB_DIR} LDFLAGS=-L${MET_LIB_DIR}/lib
> > > CPPFLAGS=-I${MET_LIB_DIR}/include
> > >
> > > make install
> > >
> > > # NetCDF-CXX
> > >
> > > wget https://github.com/Unidata/netcdf-
cxx4/archive/v4.3.0.tar.gz
> > >
> > > tar -xvzf v4.3.0.tar.gz
> > >
> > > cd netcdf-cxx4-4.3.0
> > >
> > > ./configure --prefix=${MET_LIB_DIR} LDFLAGS=-L${MET_LIB_DIR}/lib
> > > CPPFLAGS=-I${MET_LIB_DIR}/include
> > >
> > > make install
> > >
> > >
> > > # Set MET_NETCDF
> > >
> > > setenv MET_NETCDF ${MET_LIB_DIR}
> > >
> > >
> > > On Wed, Apr 5, 2017 at 9:26 AM, SITTEL, MATTHEW C CTR USAF AFWA
16
> > > WS/WXN via RT <met_help at ucar.edu> wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053
>
> > > >
> > > > We were using 4.1.3 so I updated the versions and got both of
> > > > those downloaded (funny, USAF lets us download the libraries
but
> > > > not MET) and installed.
> > > >
> > > > I'm still getting that same error though.  It gets tripped up
on
> > > > this line from nc_utils.h:
> > > >
> > > > #include <netcdf>
> > > > using namespace netCDF;
> > > >
> > > > The error message is always the same:
> > > >
> > > > In file included from nc_var_info.cc:24:
> > > > nc_utils.h:22:18: error: netcdf: No such file or directory In
file
> > > > included from nc_var_info.cc:24:
> > > > nc_utils.h:23: error: netCDF is not a namespace-name
> > > > nc_utils.h:23: error: expected namespace-name before ; token
> > > >
> > > > The part I'm missing is where "netcdf" gets defined.  Is it
meant
> > > > to be an environment variable?  I have a whole bunch of export
> > > > commands in a separate batch file so the configure properly
sets
> > > > the directory paths, but something must not be set correctly
to
> > > > get that variable name
> > > defined.
> > > >
> > > > I updated the line in my batch file to:
> > > >
> > > > export MET_NETCDF=/h/WXQC/met-6.0/lib/netcdf-c-4.4.1.1
> > > >
> > > > If both this and 4.3.0 are needed, do I need to explicitly set
the
> > > > other version somewhere so the build has both available?
> > > >
> > > > Matt
> > > >
> > > > -----Original Message-----
> > > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > > Sent: Tuesday, April 4, 2017 3:49 PM
> > > > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > > > matthew.sittel.ctr at us.af.mil>
> > > > Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053]
V6.0
> > > > Install Issues
> > > >
> > > > Matt,
> > > >
> > > > I'm not an expert on NetCDF, but I've learned that there are
> > > > *many* ways of configuring it!
> > > >
> > > > Here are the commands I used today to build the latest
versions of
> > > > HDF5 and
> > > > NetCDF4 with GNU compilers on my Mac today for compiling MET.
> > > > NetCDF is split across 2 packages... one for C and one for
C++.
> > > >
> > > > In the commands below, you'd need to adjust the paths which
> > > > include "/Users/johnhg/MET/external_libs"
> > > > to work on your machine. Or if you have root access, you could
> > > > remove "--prefix" and let autoconf install into it's default
> > > > location of /usr/local.
> > > >
> > > > John
> > > >
> > > > # Compilers
> > > >
> > > > setenv CC `which gcc`
> > > >
> > > > setenv CXX `which g++`
> > > >
> > > > setenv FC `which gfortran`
> > > > setenv F77 `which gfortran`
> > > >
> > > > # HDF5
> > > >
> > > > wget
> > > > https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/
> > > > hdf5-1.10.0-patch1/src/hdf5-1.10.0-patch1.tar
> > > >
> > > > tar -xvzf hdf5-1.10.0-patch1.tar
> > > >
> > > > cd hdf5-1.10.0-patch1
> > > >
> > > > ./configure --prefix=/Users/johnhg/MET/external_libs
> > > >
> > > > make install
> > > >
> > > > # NetCDF-C
> > > >
> > > > wget https://github.com/Unidata/netcdf-c/archive/v4.4.1.1.zip
> > > >
> > > > unzip v4.4.1.1.zip
> > > >
> > > > cd netcdf-c-4.4.1.1
> > > >
> > > > ./configure --prefix=/Users/johnhg/MET/external_libs
> > > > LDFLAGS=-L/Users/johnhg/MET/external_libs/lib
> > > > CPPFLAGS=-I/Users/johnhg/MET/external_libs/include
> > > >
> > > > make install
> > > >
> > > > # NetCDF-CXX
> > > >
> > > > wget https://github.com/Unidata/netcdf-
cxx4/archive/v4.3.0.tar.gz
> > > >
> > > > tar -xvzf v4.3.0.tar.gz
> > > >
> > > > cd netcdf-cxx4-4.3.0
> > > >
> > > > ./configure --prefix=/Users/johnhg/MET/external_libs
> > > > LDFLAGS=-L/Users/johnhg/MET/external_libs/lib
> > > > CPPFLAGS=-I/Users/johnhg/MET/external_libs/include
> > > > make install
> > > >
> > > > On Tue, Apr 4, 2017 at 4:26 PM, SITTEL, MATTHEW C CTR USAF
AFWA 16
> > > > WS/WXN via RT <met_help at ucar.edu> wrote:
> > > >
> > > > >
> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
> > > > >
> > > > > Hi John,
> > > > >
> > > > > I have version 4.1.3 for NetCDF (we used it to build 5.2),
and I
> > > > > have all
> > > > > 3 sets of HDF libraries installed: HDF (4.2.3), HDF5
(5.1.10.0)
> > > > > and
> > > > HDFEOS.
> > > > >
> > > > > I think I have the directories in the Makefile, populated by
> > > > > environment variables, set correctly, as follows:
> > > > >
> > > > > MET_BUFR = /h/WXQC/met-6.0/lib/BUFRLIB_v10-0-1
> > > > > MET_BUFRLIB = /h/WXQC/met-6.0/lib/BUFRLIB_v10-0-1
> > > > > MET_CAIRO =
> > > > > MET_CAIROINC =
> > > > > MET_CAIROLIB =
> > > > > MET_FREETYPE =
> > > > > MET_FREETYPEINC =
> > > > > MET_FREETYPELIB =
> > > > > MET_GRIB2C = /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GRIB2CINC
=
> > > > > /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GRIB2CLIB =
> > > > > /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GSL =
> > > > > /h/WXQC/met-6.0/lib/gsl-1.15 MET_GSLINC = ${MET_GSL}/include
> > > > > MET_GSLLIB = ${MET_GSL}/lib MET_HDF =
> > > > > /h/WXQC/met-6.0/lib/HDF4.2r3
> > > > > MET_HDF5 = /h/WXQC/met-6.0/lib/hdf5-1.10.0 MET_HDF5INC =
> > > > > ${MET_HDF5}/include MET_HDF5LIB = ${MET_HDF5}/lib MET_HDFEOS
=
> > > > > /h/WXQC/met-6.0/lib/hdfeos MET_HDFEOSINC =
${MET_HDFEOS}/include
> > > > > MET_HDFEOSLIB = ${MET_HDFEOS}/lib MET_HDFINC =
> > > > > ${MET_HDF}/include MET_HDFLIB = ${MET_HDF}/lib MET_NETCDF =
> > > > > /h/WXQC/met-6.0/lib/netcdf-4.1.3 MET_NETCDFINC =
> > > > > ${MET_NETCDF}/include MET_NETCDFLIB = ${MET_NETCDF}/lib
> > > > >
> > > > > Do you see anything here that might be the issue?
> > > > >
> > > > > Thanks,
> > > > > Matt
> > > > >
> > > > > -----Original Message-----
> > > > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > > > Sent: Tuesday, April 4, 2017 2:19 PM
> > > > > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > > > > matthew.sittel.ctr at us.af.mil>
> > > > > Subject: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> > > > > Install Issues
> > > > >
> > > > > Hello Matt,
> > > > >
> > > > > I'm not surprised that you'd receive an error when compiling
MET
> > > > > 6.0 using the previous MET 5.2 environment.  In 6.0 we've
made a
> > > > > large change from using NetCDF 3 to 4.
> > > > >
> > > > > You'll need to have both NetCDF 4 and HDF5, upon which
NetCDF 4
> > > > > is built, installed.  Please take a look at the MET Users
Guide,
> > > > > the online tutorial, or run ./configure --help for info
about
> compiling.
> > > > >
> > > > > Thanks,
> > > > > John
> > > > >
> > > > > On Tue, Apr 4, 2017 at 3:08 PM, SITTEL, MATTHEW C CTR USAF
AFWA
> > > > > 16 WS/WXN via RT <met_help at ucar.edu> wrote:
> > > > >
> > > > > >
> > > > > > Tue Apr 04 13:08:45 2017: Request 80053 was acted upon.
> > > > > > Transaction: Ticket created by
matthew.sittel.ctr at us.af.mil
> > > > > >        Queue: met_help
> > > > > >      Subject: V6.0 Install Issues
> > > > > >        Owner: Nobody
> > > > > >   Requestors: matthew.sittel.ctr at us.af.mil
> > > > > >       Status: new
> > > > > >  Ticket <URL:
> > > > > > https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053
> > > > > > >
> > > > > >
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I'm having trouble getting MET to install.  Here's where
it's
> > > > > > failing (excerpt from the Make install log):
> > > > > >
> > > > > > make[3]: Entering directory `/gpfs/h/WXQC/met-6.0/src/
> > > > > libcode/vx_nc_util'
> > > > > > g++ -DHAVE_CONFIG_H -I. -I../../..
> > > > > > g++ -I../../../src/basic/vx_cal
> > > > > > -I../../../src/basic/vx_config -I../../../src/basic/vx_log
> > > > > > -I../../../src/basic/vx_math -I../../../src/basic/vx_util
> > > > > > -I../../../src/l ibcode/vx_afm
> > > > > > -I../../../src/libcode/vx_analysis_util
> > > > > > -I../../../src/libcode/vx_color
> > > > > > -I../../../src/libcode/vx_data2d
> > > > > > -I../../../src/libcode/vx_data2d_factory
> > > > > > -I../../../src/libcode/vx_ data2d_grib
> > > > > >  -I../../../src/libcode/vx_data2d_grib2
> > > > > > -I../../../src/libcode/vx_data2d_nccf
> > > > > > -I../../../src/libcode/vx_data2d_nc_met
> > > > > > -I../../../src/libcode/vx_data2d_nc_pinterp
> > > > > > -I../../../src/libcode/vx_geodesy -
> > > > > > I../../../src/libcode/vx_gnomon
-I../../../src/libcode/vx_grid
> > > > > > -I../../../src/libcode/vx_gsl_prob
> > > > > > -I../../../src/libcode/vx_nav
> > > > > > -I../../../src/libcode/vx_nc_util
> > > > > > -I../../../src/libcode/vx_pb_util
> > > > > > - I../../../src/libcode/vx_plot_util
> > > > > > -I../../../src/libcode/vx_ps -I../../../src/libcode/vx_pxm
> > > > > > -I../../../src/libcode/vx_render
> > > > > > -I../../../src/libcode/vx_regrid
> > > > > > -I../../../src/libcode/vx_shapedata
> > > > > > - I../../../src/libcode/vx_solar
> > > > > > -I../../../src/libcode/vx_statistics
> > > > > > -I../../../src/libcode/vx_stat_out
> > > > > > -I../../../src/libcode/vx_time_series
> > > > > > -I../../../src/libcode/vx_tc_util -I/h/WXQC/met-5.1/lib/
> > > > > > netcdf-4.1.3/compiled/include
> > > > > > -I/h/WXQC/met-5.1/lib/g2clib-1.4.0
> > > > > > -I/h/WXQC/met-5.1/lib/gsl-1.15/include -DBLOCK4
-DWITH_GRIB2
> > > > > > -DMET_BASE="\"/h/WXQC/met-6.0/share/met\""  -g -MT
> > > > > > libvx_nc_util_a-nc_v ar_info.o -MD -MP -MF
> > > > > > .deps/libvx_nc_util_a-nc_var_info.Tpo -c -o
> > > > > > libvx_nc_util_a-nc_var_info.o `test -f 'nc_var_info.cc' ||
> > > > > > echo './'`nc_var_info.cc In file included from
nc_var_info.cc:24:
> > > > > > nc_utils.h:22:18: error: netcdf: No such file or directory
In
> > > > > > file included from nc_var_info.cc:24:
> > > > > > nc_utils.h:23: error: ânetCDFâ is not a namespace-name
> > > > > > nc_utils.h:23: error: expected namespace-name before â;â
token
> > > > > > In file included from nc_var_info.cc:24:
> > > > > > nc_utils.h:66: error: ISO C++ forbids declaration of
âNcAttâ
> > > > > > with no type
> > > > > > nc_utils.h:66: error: expected â,â or â...â before â*â
token
> > > > > >
> > > > > > Indeed there is no file named "netcdf" in the directory.
I
> > > > > > see it's the result of an "include <netcdf>" statement,
but I
> > > > > > can't tell if this is assumed to be an environmental
variable
> > > > > > or if there should be a physical file by that name.
> > > > > >
> > > > > > I can provide more if you need it.  Sorry about those
> > > > > > extraneous
> > "â"
> > > > > > characters... I'm not sure why they are there.
> > > > > >
> > > > > > Thanks,
> > > > > > Matt
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>
>

------------------------------------------------
Subject: RE: FW: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0 Install Issues
From: SITTEL, MATTHEW C CTR USAF AFWA 16 WS/WXN
Time: Thu Apr 06 08:42:24 2017

Hi John,

Here's where I have the problem with HDF4-2-12.  I run configure and
then try to install:

[1428 qcteam hpc9-lsn-01d /h/WXQC/met-6.0/lib/tar/hdf-4.2.12] make
install
sh configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/h/WXQC/met-6.0/lib/tar/hdf-4.2.12/bin/missing: Unknown `--is-
lightweight' option
Try `/h/WXQC/met-6.0/lib/tar/hdf-4.2.12/bin/missing --help' for more
information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of
Makefiles... no
checking shell variables initial values... done
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking if basename works... yes
checking if xargs works... yes
checking for config x86_64-unknown-linux-gnu... no
checking for config x86_64-unknown-linux-gnu... no
checking for config unknown-linux-gnu... no
checking for config unknown-linux-gnu... no
checking for config x86_64-linux-gnu... no
checking for config x86_64-linux-gnu... no
checking for config x86_64-unknown... no
checking for config linux-gnu... found
gfortran: '-V' option must have argument
checking whether make sets $(MAKE)... (cached) yes
checking for gcc... /usr/bin/gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc accepts -g... yes
checking for /usr/bin/gcc option to accept ISO C89... none needed
checking whether /usr/bin/gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of /usr/bin/gcc... gcc3
checking how to run the C preprocessor... /usr/bin/gcc -E
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/bin/g++ accepts -g... yes
checking dependency style of /usr/bin/g++... gcc3
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether /usr/bin/gfortran accepts -g... yes
checking how to get verbose linking output from /usr/bin/gfortran...
-v
checking for Fortran 77 libraries of /usr/bin/gfortran...
-L/h/WXQC/met-6.0/lib/jasper/lib -L/h/WXQC/met-6.0/lib/zlib-1.2.6/lib
-L/h/WXQC/met-6.0/lib/libpng-1.2.34/lib -L/usr/lib/gcc/x86_64-redhat-
linux/4.4.7 -L/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64
-L/lib/../lib64 -L/usr/lib/../lib64
-L/gpfs/shared/intel/parallel_studio_xe_2016_u2/compilers_and_libraries_2016.2.181/linux/ipp/lib/intel64
-L/gpfs/shared/intel/parallel_studio_xe_2016_u2/compilers_and_libraries_2016.2.181/linux/compiler/lib/intel64
-L/gpfs/shared/intel/parallel_studio_xe_2016_u2/compilers_and_libraries_2016.2.181/linux/mkl/lib/intel64
-L/gpfs/shared/intel/parallel_studio_xe_2016_u2/compilers_and_libraries_2016.2.181/linux/tbb/lib/intel64/gcc4.4
-L/gpfs/shared/intel/parallel_studio_xe_2016_u2/compilers_and_libraries_2016.2.181/linux/daal/lib/intel64_lin
-L/gpfs/shared/intel/parallel_studio_xe_2016_u2/compilers_and_libraries_2016.2.181/linux/daal/../tbb/lib/intel64_lin/gcc4.4
-L/gpfs/shared/intel/parallel_studio_xe_2016_u2/compilers_and_libraries_2016.2.181/linux/daal/../compiler/lib/intel64_lin
-L/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../.. -lgfortranbegin
-lgfortran -lm
checking for dummy main to link with Fortran 77 libraries... none
checking for Fortran 77 name-mangling scheme... lower case,
underscore, no extra underscore
checking if Java JNI interface enabled... no
checking whether ln -s works... yes
checking for ar... ar
checking for bison... no
checking for byacc... no
checking for yacc... no
configure: error: cannot find yacc utility
make: *** [_config] Error 1

HDFEOS then fails because of:

configure: error: can't link against HDF4 library

Which I'm guessing is because the above build fails.

Matt

-----Original Message-----
From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
Sent: Thursday, April 6, 2017 9:18 AM
To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL
<matthew.sittel.ctr at us.af.mil>
Subject: Re: FW: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
Install Issues

Bob,

Great, glad you were able to figure that out.   That's what I was
going to
recommend.

Matt,

Glad you made progress, but I am concerned about the calling of yacc.
Our intention is to strip all calls to lex and yacc out of the
released tarball.  So I should look at this more closely.

Thanks,
John


On Thu, Apr 6, 2017 at 9:51 AM, robert.craig.2 at us.af.mil via RT <
met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
>
> John, I also solved the threshold issue for category forecasts - set
> the fcst and ob to ==1.
>
> Bob
>
> -----Original Message-----
> From: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL
> Sent: Thursday, April 06, 2017 8:36 AM
> To: met_help at ucar.edu
> Cc: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
> <robert.craig.2 at us.af.mil>
> Subject: RE: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> Install Issues
>
> Hey John,
>
> Good news - I got almost all of the binary executables to build.  I
> may not be able to get everything installed though, because of the
> following local issues:
>
> -Sourceforge downloads are blocked here so I can't get the Freetype,
> so MODE-Graphics can't be built.  I'm not sure there's a demand for
it
> at this point so that may be okay.
>
> -Lidar2nc build is failing because I don't have "yacc" defined,
which
> is preventing me from getting the HDF4 and EOS2 libraries built.  I
> presume modis_regrid will fail for the same reason, but it gets to
> this one first and fails.  For now I am disabling this one, and as
> before I don't know if anyone needs this.
>
> The above three aren't critical as of now since no one is asking for
> them.  But I may need to go back and install later if someone
requests it.
>
> Thanks for all your help!  I'll go read the User's Guide now.
> Speaking of which, I noticed there are references to version 5.1 in
> the text.  You might want to do a global change on those.
>
> Matt
>
> -----Original Message-----
> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> Sent: Wednesday, April 5, 2017 11:22 AM
> To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> matthew.sittel.ctr at us.af.mil>
> Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> Install Issues
>
> Matt,
>
> NetCDF4 is compiled on top of HDF5.  So HDF5 must be compiled first.
> That's why I included them in the instructions.
>
> Do the HDF5 compilation commands work?  Those LDFLAGS and CPPFLAGS
> arguments to the NetCDF configure scripts are important too.  They
> tell NetCDF where to find the HDF5 libraries it needs.
>
> Thanks,
> John
>
> On Wed, Apr 5, 2017 at 12:07 PM, SITTEL, MATTHEW C CTR USAF AFWA 16
> WS/WXN via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
> >
> > I can't get NetCDF 4.4.1.1 to successfully compile.  I rebuilt
both
> > 4.3.0 and 4.4.1.1.  The former works (but doesn't generate an
"include"
> or "lib"
> > subdirectory during the build).  The latter throws a strange
error:
> >
> > /bin/sh ../libtool  --tag=CC   --mode=compile /usr/bin/gcc
> -DHAVE_CONFIG_H
> > -I. -I..  -I../include -I../oc2   -I/h/WXQC/met-6.0/lib/netcdf-
> c-4.4.1.1/include
> >  -MT libnetcdf4_la-nc4file.lo -MD -MP -MF
> > .deps/libnetcdf4_la-nc4file.Tpo -c -o libnetcdf4_la-nc4file.lo
`test
> > -f 'nc4file.c' || echo './'`nc4file.c
> > libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -I..
> > -I../include
> > -I../oc2 -I/h/WXQC/met-6.0/lib/netcdf-c-4.4.1.1/include -MT
> > libnetcdf4_la-nc4file.lo -MD -MP -MF .deps/libnetcdf4_la-
nc4file.Tpo
> > -c nc4file.c  -fPIC -DPIC -o .libs/libnetcdf4_la-nc4file.o
> > nc4file.c: In function ânc4_open_fileâ:
> > nc4file.c:2316: error: âH5LT_FILE_IMAGE_DONT_COPYâ undeclared
(first
> > use in this function)
> > nc4file.c:2316: error: (Each undeclared identifier is reported
only
> > once
> > nc4file.c:2316: error: for each function it appears in.)
> > nc4file.c:2316: error: âH5LT_FILE_IMAGE_DONT_RELEASEâ undeclared
> > (first use in this function)
> > make[1]: *** [libnetcdf4_la-nc4file.lo] Error 1
> > make[1]: Leaving directory `/gpfs/h/WXQC/met-6.0/lib/
> > netcdf-c-4.4.1.1/libsrc4'
> > make: *** [install-recursive] Error 1
> >
> > So I need to get this build figured out first.  Before I rebuilt,
> > all I saw was a "netcdf.h" in the 4.4.1.1 include directory,
> > apparently built during the portion of the install that was
successful.
> >
> > Matt
> >
> > -----Original Message-----
> > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > Sent: Wednesday, April 5, 2017 10:13 AM
> > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > matthew.sittel.ctr at us.af.mil>
> > Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> > Install Issues
> >
> > Matt,
> >
> > Hmmm, so the following file doesn't exist?
> >
> > ls  /h/WXQC/MET_external_libs/include/netcdf
> >
> > If not, can you please send me the contents of those directories:
> >
> > ls /h/WXQC/MET_external_libs/include/netcdf/include
> > /h/WXQC/MET_external_libs/include/netcdf/lib
> > > netcdf_dir_listing
> >
> > Please send me "netcdf_dir_listing", the "met-6.0/config.log"
file,
> > and the output of make (i.e. cd met-6.0; make clean; make install
>&
> > make_install.log).
> >
> > Thanks,
> > John
> >
> > On Wed, Apr 5, 2017 at 10:20 AM, SITTEL, MATTHEW C CTR USAF AFWA
16
> > WS/WXN via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
> > >
> > > Hi John,
> > >
> > > I tried your suggestion for the parent directory MET_NETCDF
> > > setting, but I'm still getting that same error on the <netcdf>
> > > that I pasted in
> > earlier.
> > >
> > > Thanks,
> > > Matt
> > >
> > > -----Original Message-----
> > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > Sent: Wednesday, April 5, 2017 8:52 AM
> > > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > > matthew.sittel.ctr at us.af.mil>
> > > Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> > > Install Issues
> > >
> > > Matt,
> > >
> > > Yes, good point.  Since NetCDF4 is split out into multiple
pieces,
> > > we'll need to give some thought for how to set this up and
> > > configure
> MET.
> > > Setting MET_NETCDF to point to only netcdf-c-4.4.1.1 won't work
well.
> > >
> > > On systems in which I don't have root permission, I usually pick
a
> > > single directory and then install all the dependencies into that
> > > single
> > location.
> > > Here are some commands you might use.  Note that the last step
> > > sets MET_NETCDF to point to the library directory we're
creating.
> > >
> > > Please let me know how this all goes.
> > >
> > > Thanks,
> > > John
> > >
> > > # Create single library installation directory
> > >
> > > setenv MET_LIB_DIR /h/WXQC/MET_external_libs
> > >
> > > mkdir -p $MET_LIB_DIR
> > >
> > > cd $MET_LIB_DIR
> > >
> > > # Compilers
> > >
> > > setenv CC `which gcc`
> > >
> > > setenv CXX `which g++`
> > >
> > > setenv FC `which gfortran`
> > >
> > > setenv F77 `which gfortran`
> > >
> > > # HDF5
> > >
> > > wget
> > > https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/
> > > hdf5-1.10.0-patch1/src/hdf5-1.10.0-patch1.tar
> > >
> > > tar -xvzf hdf5-1.10.0-patch1.tar
> > >
> > > cd hdf5-1.10.0-patch1
> > >
> > > ./configure --prefix=${MET_LIB_DIR}
> > >
> > > make install
> > >
> > > # NetCDF-C
> > >
> > > wget https://github.com/Unidata/netcdf-c/archive/v4.4.1.1.zip
> > >
> > > unzip v4.4.1.1.zip
> > >
> > > cd netcdf-c-4.4.1.1
> > >
> > > ./configure --prefix=${MET_LIB_DIR} LDFLAGS=-L${MET_LIB_DIR}/lib
> > > CPPFLAGS=-I${MET_LIB_DIR}/include
> > >
> > > make install
> > >
> > > # NetCDF-CXX
> > >
> > > wget https://github.com/Unidata/netcdf-
cxx4/archive/v4.3.0.tar.gz
> > >
> > > tar -xvzf v4.3.0.tar.gz
> > >
> > > cd netcdf-cxx4-4.3.0
> > >
> > > ./configure --prefix=${MET_LIB_DIR} LDFLAGS=-L${MET_LIB_DIR}/lib
> > > CPPFLAGS=-I${MET_LIB_DIR}/include
> > >
> > > make install
> > >
> > >
> > > # Set MET_NETCDF
> > >
> > > setenv MET_NETCDF ${MET_LIB_DIR}
> > >
> > >
> > > On Wed, Apr 5, 2017 at 9:26 AM, SITTEL, MATTHEW C CTR USAF AFWA
16
> > > WS/WXN via RT <met_help at ucar.edu> wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053
>
> > > >
> > > > We were using 4.1.3 so I updated the versions and got both of
> > > > those downloaded (funny, USAF lets us download the libraries
but
> > > > not MET) and installed.
> > > >
> > > > I'm still getting that same error though.  It gets tripped up
on
> > > > this line from nc_utils.h:
> > > >
> > > > #include <netcdf>
> > > > using namespace netCDF;
> > > >
> > > > The error message is always the same:
> > > >
> > > > In file included from nc_var_info.cc:24:
> > > > nc_utils.h:22:18: error: netcdf: No such file or directory In
> > > > file included from nc_var_info.cc:24:
> > > > nc_utils.h:23: error: netCDF is not a namespace-name
> > > > nc_utils.h:23: error: expected namespace-name before ; token
> > > >
> > > > The part I'm missing is where "netcdf" gets defined.  Is it
> > > > meant to be an environment variable?  I have a whole bunch of
> > > > export commands in a separate batch file so the configure
> > > > properly sets the directory paths, but something must not be
set
> > > > correctly to get that variable name
> > > defined.
> > > >
> > > > I updated the line in my batch file to:
> > > >
> > > > export MET_NETCDF=/h/WXQC/met-6.0/lib/netcdf-c-4.4.1.1
> > > >
> > > > If both this and 4.3.0 are needed, do I need to explicitly set
> > > > the other version somewhere so the build has both available?
> > > >
> > > > Matt
> > > >
> > > > -----Original Message-----
> > > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > > Sent: Tuesday, April 4, 2017 3:49 PM
> > > > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > > > matthew.sittel.ctr at us.af.mil>
> > > > Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053]
V6.0
> > > > Install Issues
> > > >
> > > > Matt,
> > > >
> > > > I'm not an expert on NetCDF, but I've learned that there are
> > > > *many* ways of configuring it!
> > > >
> > > > Here are the commands I used today to build the latest
versions
> > > > of
> > > > HDF5 and
> > > > NetCDF4 with GNU compilers on my Mac today for compiling MET.
> > > > NetCDF is split across 2 packages... one for C and one for
C++.
> > > >
> > > > In the commands below, you'd need to adjust the paths which
> > > > include "/Users/johnhg/MET/external_libs"
> > > > to work on your machine. Or if you have root access, you could
> > > > remove "--prefix" and let autoconf install into it's default
> > > > location of /usr/local.
> > > >
> > > > John
> > > >
> > > > # Compilers
> > > >
> > > > setenv CC `which gcc`
> > > >
> > > > setenv CXX `which g++`
> > > >
> > > > setenv FC `which gfortran`
> > > > setenv F77 `which gfortran`
> > > >
> > > > # HDF5
> > > >
> > > > wget
> > > > https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/
> > > > hdf5-1.10.0-patch1/src/hdf5-1.10.0-patch1.tar
> > > >
> > > > tar -xvzf hdf5-1.10.0-patch1.tar
> > > >
> > > > cd hdf5-1.10.0-patch1
> > > >
> > > > ./configure --prefix=/Users/johnhg/MET/external_libs
> > > >
> > > > make install
> > > >
> > > > # NetCDF-C
> > > >
> > > > wget https://github.com/Unidata/netcdf-c/archive/v4.4.1.1.zip
> > > >
> > > > unzip v4.4.1.1.zip
> > > >
> > > > cd netcdf-c-4.4.1.1
> > > >
> > > > ./configure --prefix=/Users/johnhg/MET/external_libs
> > > > LDFLAGS=-L/Users/johnhg/MET/external_libs/lib
> > > > CPPFLAGS=-I/Users/johnhg/MET/external_libs/include
> > > >
> > > > make install
> > > >
> > > > # NetCDF-CXX
> > > >
> > > > wget
> > > > https://github.com/Unidata/netcdf-cxx4/archive/v4.3.0.tar.gz
> > > >
> > > > tar -xvzf v4.3.0.tar.gz
> > > >
> > > > cd netcdf-cxx4-4.3.0
> > > >
> > > > ./configure --prefix=/Users/johnhg/MET/external_libs
> > > > LDFLAGS=-L/Users/johnhg/MET/external_libs/lib
> > > > CPPFLAGS=-I/Users/johnhg/MET/external_libs/include
> > > > make install
> > > >
> > > > On Tue, Apr 4, 2017 at 4:26 PM, SITTEL, MATTHEW C CTR USAF
AFWA
> > > > 16 WS/WXN via RT <met_help at ucar.edu> wrote:
> > > >
> > > > >
> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053
> > > > > >
> > > > >
> > > > > Hi John,
> > > > >
> > > > > I have version 4.1.3 for NetCDF (we used it to build 5.2),
and
> > > > > I have all
> > > > > 3 sets of HDF libraries installed: HDF (4.2.3), HDF5
> > > > > (5.1.10.0) and
> > > > HDFEOS.
> > > > >
> > > > > I think I have the directories in the Makefile, populated by
> > > > > environment variables, set correctly, as follows:
> > > > >
> > > > > MET_BUFR = /h/WXQC/met-6.0/lib/BUFRLIB_v10-0-1
> > > > > MET_BUFRLIB = /h/WXQC/met-6.0/lib/BUFRLIB_v10-0-1
> > > > > MET_CAIRO =
> > > > > MET_CAIROINC =
> > > > > MET_CAIROLIB =
> > > > > MET_FREETYPE =
> > > > > MET_FREETYPEINC =
> > > > > MET_FREETYPELIB =
> > > > > MET_GRIB2C = /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GRIB2CINC
=
> > > > > /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GRIB2CLIB =
> > > > > /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GSL =
> > > > > /h/WXQC/met-6.0/lib/gsl-1.15 MET_GSLINC = ${MET_GSL}/include
> > > > > MET_GSLLIB = ${MET_GSL}/lib MET_HDF =
> > > > > /h/WXQC/met-6.0/lib/HDF4.2r3
> > > > > MET_HDF5 = /h/WXQC/met-6.0/lib/hdf5-1.10.0 MET_HDF5INC =
> > > > > ${MET_HDF5}/include MET_HDF5LIB = ${MET_HDF5}/lib MET_HDFEOS
=
> > > > > /h/WXQC/met-6.0/lib/hdfeos MET_HDFEOSINC =
> > > > > ${MET_HDFEOS}/include MET_HDFEOSLIB = ${MET_HDFEOS}/lib
> > > > > MET_HDFINC = ${MET_HDF}/include MET_HDFLIB = ${MET_HDF}/lib
> > > > > MET_NETCDF =
> > > > > /h/WXQC/met-6.0/lib/netcdf-4.1.3 MET_NETCDFINC =
> > > > > ${MET_NETCDF}/include MET_NETCDFLIB = ${MET_NETCDF}/lib
> > > > >
> > > > > Do you see anything here that might be the issue?
> > > > >
> > > > > Thanks,
> > > > > Matt
> > > > >
> > > > > -----Original Message-----
> > > > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > > > Sent: Tuesday, April 4, 2017 2:19 PM
> > > > > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > > > > matthew.sittel.ctr at us.af.mil>
> > > > > Subject: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> > > > > Install Issues
> > > > >
> > > > > Hello Matt,
> > > > >
> > > > > I'm not surprised that you'd receive an error when compiling
> > > > > MET
> > > > > 6.0 using the previous MET 5.2 environment.  In 6.0 we've
made
> > > > > a large change from using NetCDF 3 to 4.
> > > > >
> > > > > You'll need to have both NetCDF 4 and HDF5, upon which
NetCDF
> > > > > 4 is built, installed.  Please take a look at the MET Users
> > > > > Guide, the online tutorial, or run ./configure --help for
info
> > > > > about
> compiling.
> > > > >
> > > > > Thanks,
> > > > > John
> > > > >
> > > > > On Tue, Apr 4, 2017 at 3:08 PM, SITTEL, MATTHEW C CTR USAF
> > > > > AFWA
> > > > > 16 WS/WXN via RT <met_help at ucar.edu> wrote:
> > > > >
> > > > > >
> > > > > > Tue Apr 04 13:08:45 2017: Request 80053 was acted upon.
> > > > > > Transaction: Ticket created by
matthew.sittel.ctr at us.af.mil
> > > > > >        Queue: met_help
> > > > > >      Subject: V6.0 Install Issues
> > > > > >        Owner: Nobody
> > > > > >   Requestors: matthew.sittel.ctr at us.af.mil
> > > > > >       Status: new
> > > > > >  Ticket <URL:
> > > > > > https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053
> > > > > > >
> > > > > >
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I'm having trouble getting MET to install.  Here's where
> > > > > > it's failing (excerpt from the Make install log):
> > > > > >
> > > > > > make[3]: Entering directory `/gpfs/h/WXQC/met-6.0/src/
> > > > > libcode/vx_nc_util'
> > > > > > g++ -DHAVE_CONFIG_H -I. -I../../..
> > > > > > g++ -I../../../src/basic/vx_cal
> > > > > > -I../../../src/basic/vx_config -I../../../src/basic/vx_log
> > > > > > -I../../../src/basic/vx_math -I../../../src/basic/vx_util
> > > > > > -I../../../src/l ibcode/vx_afm
> > > > > > -I../../../src/libcode/vx_analysis_util
> > > > > > -I../../../src/libcode/vx_color
> > > > > > -I../../../src/libcode/vx_data2d
> > > > > > -I../../../src/libcode/vx_data2d_factory
> > > > > > -I../../../src/libcode/vx_ data2d_grib
> > > > > >  -I../../../src/libcode/vx_data2d_grib2
> > > > > > -I../../../src/libcode/vx_data2d_nccf
> > > > > > -I../../../src/libcode/vx_data2d_nc_met
> > > > > > -I../../../src/libcode/vx_data2d_nc_pinterp
> > > > > > -I../../../src/libcode/vx_geodesy -
> > > > > > I../../../src/libcode/vx_gnomon
> > > > > > -I../../../src/libcode/vx_grid
> > > > > > -I../../../src/libcode/vx_gsl_prob
> > > > > > -I../../../src/libcode/vx_nav
> > > > > > -I../../../src/libcode/vx_nc_util
> > > > > > -I../../../src/libcode/vx_pb_util
> > > > > > - I../../../src/libcode/vx_plot_util
> > > > > > -I../../../src/libcode/vx_ps -I../../../src/libcode/vx_pxm
> > > > > > -I../../../src/libcode/vx_render
> > > > > > -I../../../src/libcode/vx_regrid
> > > > > > -I../../../src/libcode/vx_shapedata
> > > > > > - I../../../src/libcode/vx_solar
> > > > > > -I../../../src/libcode/vx_statistics
> > > > > > -I../../../src/libcode/vx_stat_out
> > > > > > -I../../../src/libcode/vx_time_series
> > > > > > -I../../../src/libcode/vx_tc_util -I/h/WXQC/met-5.1/lib/
> > > > > > netcdf-4.1.3/compiled/include
> > > > > > -I/h/WXQC/met-5.1/lib/g2clib-1.4.0
> > > > > > -I/h/WXQC/met-5.1/lib/gsl-1.15/include -DBLOCK4
-DWITH_GRIB2
> > > > > > -DMET_BASE="\"/h/WXQC/met-6.0/share/met\""  -g -MT
> > > > > > libvx_nc_util_a-nc_v ar_info.o -MD -MP -MF
> > > > > > .deps/libvx_nc_util_a-nc_var_info.Tpo -c -o
> > > > > > libvx_nc_util_a-nc_var_info.o `test -f 'nc_var_info.cc' ||
> > > > > > echo './'`nc_var_info.cc In file included from
nc_var_info.cc:24:
> > > > > > nc_utils.h:22:18: error: netcdf: No such file or directory
> > > > > > In file included from nc_var_info.cc:24:
> > > > > > nc_utils.h:23: error: ânetCDFâ is not a namespace-name
> > > > > > nc_utils.h:23: error: expected namespace-name before â;â
> > > > > > token In file included from nc_var_info.cc:24:
> > > > > > nc_utils.h:66: error: ISO C++ forbids declaration of
âNcAttâ
> > > > > > with no type
> > > > > > nc_utils.h:66: error: expected â,â or â...â before â*â
token
> > > > > >
> > > > > > Indeed there is no file named "netcdf" in the directory.
I
> > > > > > see it's the result of an "include <netcdf>" statement,
but
> > > > > > I can't tell if this is assumed to be an environmental
> > > > > > variable or if there should be a physical file by that
name.
> > > > > >
> > > > > > I can provide more if you need it.  Sorry about those
> > > > > > extraneous
> > "â"
> > > > > > characters... I'm not sure why they are there.
> > > > > >
> > > > > > Thanks,
> > > > > > Matt
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>
>



------------------------------------------------
Subject: V6.0 Install Issues
From: John Halley Gotway
Time: Thu Apr 06 09:32:46 2017

Matt,

Ah OK, so it's HDF4 which has the dependency on yacc.  Unfortunately
that's
out of our control.  Although having lex and yacc (or flex and bison)
are
very standard things to have on a Linux machine.  I'd suggest asking
your
sys-admin to install them.  It should be a one liner for them to
install
the package that contains them.

John

On Thu, Apr 6, 2017 at 10:42 AM, SITTEL, MATTHEW C CTR USAF AFWA 16
WS/WXN
via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
>
> Hi John,
>
> Here's where I have the problem with HDF4-2-12.  I run configure and
then
> try to install:
>
> [1428 qcteam hpc9-lsn-01d /h/WXQC/met-6.0/lib/tar/hdf-4.2.12] make
install
> sh configure
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> /h/WXQC/met-6.0/lib/tar/hdf-4.2.12/bin/missing: Unknown
> `--is-lightweight' option
> Try `/h/WXQC/met-6.0/lib/tar/hdf-4.2.12/bin/missing --help' for more
> information
> configure: WARNING: 'missing' script is too old or missing
> checking for a thread-safe mkdir -p... /bin/mkdir -p
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking whether make supports nested variables... yes
> checking whether to enable maintainer-specific portions of
Makefiles... no
> checking shell variables initial values... done
> checking build system type... x86_64-unknown-linux-gnu
> checking host system type... x86_64-unknown-linux-gnu
> checking if basename works... yes
> checking if xargs works... yes
> checking for config x86_64-unknown-linux-gnu... no
> checking for config x86_64-unknown-linux-gnu... no
> checking for config unknown-linux-gnu... no
> checking for config unknown-linux-gnu... no
> checking for config x86_64-linux-gnu... no
> checking for config x86_64-linux-gnu... no
> checking for config x86_64-unknown... no
> checking for config linux-gnu... found
> gfortran: '-V' option must have argument
> checking whether make sets $(MAKE)... (cached) yes
> checking for gcc... /usr/bin/gcc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether /usr/bin/gcc accepts -g... yes
> checking for /usr/bin/gcc option to accept ISO C89... none needed
> checking whether /usr/bin/gcc understands -c and -o together... yes
> checking for style of include used by make... GNU
> checking dependency style of /usr/bin/gcc... gcc3
> checking how to run the C preprocessor... /usr/bin/gcc -E
> checking whether we are using the GNU C++ compiler... yes
> checking whether /usr/bin/g++ accepts -g... yes
> checking dependency style of /usr/bin/g++... gcc3
> checking whether we are using the GNU Fortran 77 compiler... yes
> checking whether /usr/bin/gfortran accepts -g... yes
> checking how to get verbose linking output from /usr/bin/gfortran...
-v
> checking for Fortran 77 libraries of /usr/bin/gfortran...
> -L/h/WXQC/met-6.0/lib/jasper/lib -L/h/WXQC/met-6.0/lib/zlib-
1.2.6/lib
> -L/h/WXQC/met-6.0/lib/libpng-1.2.34/lib -L/usr/lib/gcc/x86_64-
redhat-linux/4.4.7
> -L/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64
> -L/lib/../lib64 -L/usr/lib/../lib64 -L/gpfs/shared/intel/parallel_
>
studio_xe_2016_u2/compilers_and_libraries_2016.2.181/linux/ipp/lib/intel64
> -L/gpfs/shared/intel/parallel_studio_xe_2016_u2/compilers_
> and_libraries_2016.2.181/linux/compiler/lib/intel64
> -L/gpfs/shared/intel/parallel_studio_xe_2016_u2/compilers_
> and_libraries_2016.2.181/linux/mkl/lib/intel64
> -L/gpfs/shared/intel/parallel_studio_xe_2016_u2/compilers_
> and_libraries_2016.2.181/linux/tbb/lib/intel64/gcc4.4
> -L/gpfs/shared/intel/parallel_studio_xe_2016_u2/compilers_
> and_libraries_2016.2.181/linux/daal/lib/intel64_lin
> -L/gpfs/shared/intel/parallel_studio_xe_2016_u2/compilers_
> and_libraries_2016.2.181/linux/daal/../tbb/lib/intel64_lin/gcc4.4
> -L/gpfs/shared/int!
>  el/parallel_studio_xe_2016_u2/compilers_and_libraries_2016.
> 2.181/linux/daal/../compiler/lib/intel64_lin -L/usr/lib/gcc/x86_64-
redhat-linux/4.4.7/../../..
> -lgfortranbegin -lgfortran -lm
> checking for dummy main to link with Fortran 77 libraries... none
> checking for Fortran 77 name-mangling scheme... lower case,
underscore, no
> extra underscore
> checking if Java JNI interface enabled... no
> checking whether ln -s works... yes
> checking for ar... ar
> checking for bison... no
> checking for byacc... no
> checking for yacc... no
> configure: error: cannot find yacc utility
> make: *** [_config] Error 1
>
> HDFEOS then fails because of:
>
> configure: error: can't link against HDF4 library
>
> Which I'm guessing is because the above build fails.
>
> Matt
>
> -----Original Message-----
> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> Sent: Thursday, April 6, 2017 9:18 AM
> To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> matthew.sittel.ctr at us.af.mil>
> Subject: Re: FW: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> Install Issues
>
> Bob,
>
> Great, glad you were able to figure that out.   That's what I was
going to
> recommend.
>
> Matt,
>
> Glad you made progress, but I am concerned about the calling of
yacc.  Our
> intention is to strip all calls to lex and yacc out of the released
> tarball.  So I should look at this more closely.
>
> Thanks,
> John
>
>
> On Thu, Apr 6, 2017 at 9:51 AM, robert.craig.2 at us.af.mil via RT <
> met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
> >
> > John, I also solved the threshold issue for category forecasts -
set
> > the fcst and ob to ==1.
> >
> > Bob
> >
> > -----Original Message-----
> > From: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL
> > Sent: Thursday, April 06, 2017 8:36 AM
> > To: met_help at ucar.edu
> > Cc: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
> > <robert.craig.2 at us.af.mil>
> > Subject: RE: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> > Install Issues
> >
> > Hey John,
> >
> > Good news - I got almost all of the binary executables to build.
I
> > may not be able to get everything installed though, because of the
> > following local issues:
> >
> > -Sourceforge downloads are blocked here so I can't get the
Freetype,
> > so MODE-Graphics can't be built.  I'm not sure there's a demand
for it
> > at this point so that may be okay.
> >
> > -Lidar2nc build is failing because I don't have "yacc" defined,
which
> > is preventing me from getting the HDF4 and EOS2 libraries built.
I
> > presume modis_regrid will fail for the same reason, but it gets to
> > this one first and fails.  For now I am disabling this one, and as
> > before I don't know if anyone needs this.
> >
> > The above three aren't critical as of now since no one is asking
for
> > them.  But I may need to go back and install later if someone
requests
> it.
> >
> > Thanks for all your help!  I'll go read the User's Guide now.
> > Speaking of which, I noticed there are references to version 5.1
in
> > the text.  You might want to do a global change on those.
> >
> > Matt
> >
> > -----Original Message-----
> > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > Sent: Wednesday, April 5, 2017 11:22 AM
> > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > matthew.sittel.ctr at us.af.mil>
> > Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> > Install Issues
> >
> > Matt,
> >
> > NetCDF4 is compiled on top of HDF5.  So HDF5 must be compiled
first.
> > That's why I included them in the instructions.
> >
> > Do the HDF5 compilation commands work?  Those LDFLAGS and CPPFLAGS
> > arguments to the NetCDF configure scripts are important too.  They
> > tell NetCDF where to find the HDF5 libraries it needs.
> >
> > Thanks,
> > John
> >
> > On Wed, Apr 5, 2017 at 12:07 PM, SITTEL, MATTHEW C CTR USAF AFWA
16
> > WS/WXN via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
> > >
> > > I can't get NetCDF 4.4.1.1 to successfully compile.  I rebuilt
both
> > > 4.3.0 and 4.4.1.1.  The former works (but doesn't generate an
"include"
> > or "lib"
> > > subdirectory during the build).  The latter throws a strange
error:
> > >
> > > /bin/sh ../libtool  --tag=CC   --mode=compile /usr/bin/gcc
> > -DHAVE_CONFIG_H
> > > -I. -I..  -I../include -I../oc2   -I/h/WXQC/met-6.0/lib/netcdf-
> > c-4.4.1.1/include
> > >  -MT libnetcdf4_la-nc4file.lo -MD -MP -MF
> > > .deps/libnetcdf4_la-nc4file.Tpo -c -o libnetcdf4_la-nc4file.lo
`test
> > > -f 'nc4file.c' || echo './'`nc4file.c
> > > libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -I..
> > > -I../include
> > > -I../oc2 -I/h/WXQC/met-6.0/lib/netcdf-c-4.4.1.1/include -MT
> > > libnetcdf4_la-nc4file.lo -MD -MP -MF .deps/libnetcdf4_la-
nc4file.Tpo
> > > -c nc4file.c  -fPIC -DPIC -o .libs/libnetcdf4_la-nc4file.o
> > > nc4file.c: In function ânc4_open_fileâ:
> > > nc4file.c:2316: error: âH5LT_FILE_IMAGE_DONT_COPYâ undeclared
(first
> > > use in this function)
> > > nc4file.c:2316: error: (Each undeclared identifier is reported
only
> > > once
> > > nc4file.c:2316: error: for each function it appears in.)
> > > nc4file.c:2316: error: âH5LT_FILE_IMAGE_DONT_RELEASEâ undeclared
> > > (first use in this function)
> > > make[1]: *** [libnetcdf4_la-nc4file.lo] Error 1
> > > make[1]: Leaving directory `/gpfs/h/WXQC/met-6.0/lib/
> > > netcdf-c-4.4.1.1/libsrc4'
> > > make: *** [install-recursive] Error 1
> > >
> > > So I need to get this build figured out first.  Before I
rebuilt,
> > > all I saw was a "netcdf.h" in the 4.4.1.1 include directory,
> > > apparently built during the portion of the install that was
successful.
> > >
> > > Matt
> > >
> > > -----Original Message-----
> > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > Sent: Wednesday, April 5, 2017 10:13 AM
> > > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > > matthew.sittel.ctr at us.af.mil>
> > > Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053] V6.0
> > > Install Issues
> > >
> > > Matt,
> > >
> > > Hmmm, so the following file doesn't exist?
> > >
> > > ls  /h/WXQC/MET_external_libs/include/netcdf
> > >
> > > If not, can you please send me the contents of those
directories:
> > >
> > > ls /h/WXQC/MET_external_libs/include/netcdf/include
> > > /h/WXQC/MET_external_libs/include/netcdf/lib
> > > > netcdf_dir_listing
> > >
> > > Please send me "netcdf_dir_listing", the "met-6.0/config.log"
file,
> > > and the output of make (i.e. cd met-6.0; make clean; make
install >&
> > > make_install.log).
> > >
> > > Thanks,
> > > John
> > >
> > > On Wed, Apr 5, 2017 at 10:20 AM, SITTEL, MATTHEW C CTR USAF AFWA
16
> > > WS/WXN via RT <met_help at ucar.edu> wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053
>
> > > >
> > > > Hi John,
> > > >
> > > > I tried your suggestion for the parent directory MET_NETCDF
> > > > setting, but I'm still getting that same error on the <netcdf>
> > > > that I pasted in
> > > earlier.
> > > >
> > > > Thanks,
> > > > Matt
> > > >
> > > > -----Original Message-----
> > > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > > Sent: Wednesday, April 5, 2017 8:52 AM
> > > > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > > > matthew.sittel.ctr at us.af.mil>
> > > > Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053]
V6.0
> > > > Install Issues
> > > >
> > > > Matt,
> > > >
> > > > Yes, good point.  Since NetCDF4 is split out into multiple
pieces,
> > > > we'll need to give some thought for how to set this up and
> > > > configure
> > MET.
> > > > Setting MET_NETCDF to point to only netcdf-c-4.4.1.1 won't
work well.
> > > >
> > > > On systems in which I don't have root permission, I usually
pick a
> > > > single directory and then install all the dependencies into
that
> > > > single
> > > location.
> > > > Here are some commands you might use.  Note that the last step
> > > > sets MET_NETCDF to point to the library directory we're
creating.
> > > >
> > > > Please let me know how this all goes.
> > > >
> > > > Thanks,
> > > > John
> > > >
> > > > # Create single library installation directory
> > > >
> > > > setenv MET_LIB_DIR /h/WXQC/MET_external_libs
> > > >
> > > > mkdir -p $MET_LIB_DIR
> > > >
> > > > cd $MET_LIB_DIR
> > > >
> > > > # Compilers
> > > >
> > > > setenv CC `which gcc`
> > > >
> > > > setenv CXX `which g++`
> > > >
> > > > setenv FC `which gfortran`
> > > >
> > > > setenv F77 `which gfortran`
> > > >
> > > > # HDF5
> > > >
> > > > wget
> > > > https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/
> > > > hdf5-1.10.0-patch1/src/hdf5-1.10.0-patch1.tar
> > > >
> > > > tar -xvzf hdf5-1.10.0-patch1.tar
> > > >
> > > > cd hdf5-1.10.0-patch1
> > > >
> > > > ./configure --prefix=${MET_LIB_DIR}
> > > >
> > > > make install
> > > >
> > > > # NetCDF-C
> > > >
> > > > wget https://github.com/Unidata/netcdf-c/archive/v4.4.1.1.zip
> > > >
> > > > unzip v4.4.1.1.zip
> > > >
> > > > cd netcdf-c-4.4.1.1
> > > >
> > > > ./configure --prefix=${MET_LIB_DIR} LDFLAGS=-
L${MET_LIB_DIR}/lib
> > > > CPPFLAGS=-I${MET_LIB_DIR}/include
> > > >
> > > > make install
> > > >
> > > > # NetCDF-CXX
> > > >
> > > > wget https://github.com/Unidata/netcdf-
cxx4/archive/v4.3.0.tar.gz
> > > >
> > > > tar -xvzf v4.3.0.tar.gz
> > > >
> > > > cd netcdf-cxx4-4.3.0
> > > >
> > > > ./configure --prefix=${MET_LIB_DIR} LDFLAGS=-
L${MET_LIB_DIR}/lib
> > > > CPPFLAGS=-I${MET_LIB_DIR}/include
> > > >
> > > > make install
> > > >
> > > >
> > > > # Set MET_NETCDF
> > > >
> > > > setenv MET_NETCDF ${MET_LIB_DIR}
> > > >
> > > >
> > > > On Wed, Apr 5, 2017 at 9:26 AM, SITTEL, MATTHEW C CTR USAF
AFWA 16
> > > > WS/WXN via RT <met_help at ucar.edu> wrote:
> > > >
> > > > >
> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053 >
> > > > >
> > > > > We were using 4.1.3 so I updated the versions and got both
of
> > > > > those downloaded (funny, USAF lets us download the libraries
but
> > > > > not MET) and installed.
> > > > >
> > > > > I'm still getting that same error though.  It gets tripped
up on
> > > > > this line from nc_utils.h:
> > > > >
> > > > > #include <netcdf>
> > > > > using namespace netCDF;
> > > > >
> > > > > The error message is always the same:
> > > > >
> > > > > In file included from nc_var_info.cc:24:
> > > > > nc_utils.h:22:18: error: netcdf: No such file or directory
In
> > > > > file included from nc_var_info.cc:24:
> > > > > nc_utils.h:23: error: netCDF is not a namespace-name
> > > > > nc_utils.h:23: error: expected namespace-name before ; token
> > > > >
> > > > > The part I'm missing is where "netcdf" gets defined.  Is it
> > > > > meant to be an environment variable?  I have a whole bunch
of
> > > > > export commands in a separate batch file so the configure
> > > > > properly sets the directory paths, but something must not be
set
> > > > > correctly to get that variable name
> > > > defined.
> > > > >
> > > > > I updated the line in my batch file to:
> > > > >
> > > > > export MET_NETCDF=/h/WXQC/met-6.0/lib/netcdf-c-4.4.1.1
> > > > >
> > > > > If both this and 4.3.0 are needed, do I need to explicitly
set
> > > > > the other version somewhere so the build has both available?
> > > > >
> > > > > Matt
> > > > >
> > > > > -----Original Message-----
> > > > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > > > Sent: Tuesday, April 4, 2017 3:49 PM
> > > > > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > > > > matthew.sittel.ctr at us.af.mil>
> > > > > Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053]
V6.0
> > > > > Install Issues
> > > > >
> > > > > Matt,
> > > > >
> > > > > I'm not an expert on NetCDF, but I've learned that there are
> > > > > *many* ways of configuring it!
> > > > >
> > > > > Here are the commands I used today to build the latest
versions
> > > > > of
> > > > > HDF5 and
> > > > > NetCDF4 with GNU compilers on my Mac today for compiling
MET.
> > > > > NetCDF is split across 2 packages... one for C and one for
C++.
> > > > >
> > > > > In the commands below, you'd need to adjust the paths which
> > > > > include "/Users/johnhg/MET/external_libs"
> > > > > to work on your machine. Or if you have root access, you
could
> > > > > remove "--prefix" and let autoconf install into it's default
> > > > > location of /usr/local.
> > > > >
> > > > > John
> > > > >
> > > > > # Compilers
> > > > >
> > > > > setenv CC `which gcc`
> > > > >
> > > > > setenv CXX `which g++`
> > > > >
> > > > > setenv FC `which gfortran`
> > > > > setenv F77 `which gfortran`
> > > > >
> > > > > # HDF5
> > > > >
> > > > > wget
> > > > > https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/
> > > > > hdf5-1.10.0-patch1/src/hdf5-1.10.0-patch1.tar
> > > > >
> > > > > tar -xvzf hdf5-1.10.0-patch1.tar
> > > > >
> > > > > cd hdf5-1.10.0-patch1
> > > > >
> > > > > ./configure --prefix=/Users/johnhg/MET/external_libs
> > > > >
> > > > > make install
> > > > >
> > > > > # NetCDF-C
> > > > >
> > > > > wget https://github.com/Unidata/netcdf-
c/archive/v4.4.1.1.zip
> > > > >
> > > > > unzip v4.4.1.1.zip
> > > > >
> > > > > cd netcdf-c-4.4.1.1
> > > > >
> > > > > ./configure --prefix=/Users/johnhg/MET/external_libs
> > > > > LDFLAGS=-L/Users/johnhg/MET/external_libs/lib
> > > > > CPPFLAGS=-I/Users/johnhg/MET/external_libs/include
> > > > >
> > > > > make install
> > > > >
> > > > > # NetCDF-CXX
> > > > >
> > > > > wget
> > > > > https://github.com/Unidata/netcdf-cxx4/archive/v4.3.0.tar.gz
> > > > >
> > > > > tar -xvzf v4.3.0.tar.gz
> > > > >
> > > > > cd netcdf-cxx4-4.3.0
> > > > >
> > > > > ./configure --prefix=/Users/johnhg/MET/external_libs
> > > > > LDFLAGS=-L/Users/johnhg/MET/external_libs/lib
> > > > > CPPFLAGS=-I/Users/johnhg/MET/external_libs/include
> > > > > make install
> > > > >
> > > > > On Tue, Apr 4, 2017 at 4:26 PM, SITTEL, MATTHEW C CTR USAF
AFWA
> > > > > 16 WS/WXN via RT <met_help at ucar.edu> wrote:
> > > > >
> > > > > >
> > > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053
> > > > > > >
> > > > > >
> > > > > > Hi John,
> > > > > >
> > > > > > I have version 4.1.3 for NetCDF (we used it to build 5.2),
and
> > > > > > I have all
> > > > > > 3 sets of HDF libraries installed: HDF (4.2.3), HDF5
> > > > > > (5.1.10.0) and
> > > > > HDFEOS.
> > > > > >
> > > > > > I think I have the directories in the Makefile, populated
by
> > > > > > environment variables, set correctly, as follows:
> > > > > >
> > > > > > MET_BUFR = /h/WXQC/met-6.0/lib/BUFRLIB_v10-0-1
> > > > > > MET_BUFRLIB = /h/WXQC/met-6.0/lib/BUFRLIB_v10-0-1
> > > > > > MET_CAIRO =
> > > > > > MET_CAIROINC =
> > > > > > MET_CAIROLIB =
> > > > > > MET_FREETYPE =
> > > > > > MET_FREETYPEINC =
> > > > > > MET_FREETYPELIB =
> > > > > > MET_GRIB2C = /h/WXQC/met-6.0/lib/g2clib-1.4.0
MET_GRIB2CINC =
> > > > > > /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GRIB2CLIB =
> > > > > > /h/WXQC/met-6.0/lib/g2clib-1.4.0 MET_GSL =
> > > > > > /h/WXQC/met-6.0/lib/gsl-1.15 MET_GSLINC =
${MET_GSL}/include
> > > > > > MET_GSLLIB = ${MET_GSL}/lib MET_HDF =
> > > > > > /h/WXQC/met-6.0/lib/HDF4.2r3
> > > > > > MET_HDF5 = /h/WXQC/met-6.0/lib/hdf5-1.10.0 MET_HDF5INC =
> > > > > > ${MET_HDF5}/include MET_HDF5LIB = ${MET_HDF5}/lib
MET_HDFEOS =
> > > > > > /h/WXQC/met-6.0/lib/hdfeos MET_HDFEOSINC =
> > > > > > ${MET_HDFEOS}/include MET_HDFEOSLIB = ${MET_HDFEOS}/lib
> > > > > > MET_HDFINC = ${MET_HDF}/include MET_HDFLIB =
${MET_HDF}/lib
> > > > > > MET_NETCDF =
> > > > > > /h/WXQC/met-6.0/lib/netcdf-4.1.3 MET_NETCDFINC =
> > > > > > ${MET_NETCDF}/include MET_NETCDFLIB = ${MET_NETCDF}/lib
> > > > > >
> > > > > > Do you see anything here that might be the issue?
> > > > > >
> > > > > > Thanks,
> > > > > > Matt
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > > > > Sent: Tuesday, April 4, 2017 2:19 PM
> > > > > > To: SITTEL, MATTHEW C CTR USAF AFMC AFLCMC/HBAW-OL <
> > > > > > matthew.sittel.ctr at us.af.mil>
> > > > > > Subject: [Non-DoD Source] Re: [rt.rap.ucar.edu #80053]
V6.0
> > > > > > Install Issues
> > > > > >
> > > > > > Hello Matt,
> > > > > >
> > > > > > I'm not surprised that you'd receive an error when
compiling
> > > > > > MET
> > > > > > 6.0 using the previous MET 5.2 environment.  In 6.0 we've
made
> > > > > > a large change from using NetCDF 3 to 4.
> > > > > >
> > > > > > You'll need to have both NetCDF 4 and HDF5, upon which
NetCDF
> > > > > > 4 is built, installed.  Please take a look at the MET
Users
> > > > > > Guide, the online tutorial, or run ./configure --help for
info
> > > > > > about
> > compiling.
> > > > > >
> > > > > > Thanks,
> > > > > > John
> > > > > >
> > > > > > On Tue, Apr 4, 2017 at 3:08 PM, SITTEL, MATTHEW C CTR USAF
> > > > > > AFWA
> > > > > > 16 WS/WXN via RT <met_help at ucar.edu> wrote:
> > > > > >
> > > > > > >
> > > > > > > Tue Apr 04 13:08:45 2017: Request 80053 was acted upon.
> > > > > > > Transaction: Ticket created by
matthew.sittel.ctr at us.af.mil
> > > > > > >        Queue: met_help
> > > > > > >      Subject: V6.0 Install Issues
> > > > > > >        Owner: Nobody
> > > > > > >   Requestors: matthew.sittel.ctr at us.af.mil
> > > > > > >       Status: new
> > > > > > >  Ticket <URL:
> > > > > > > https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80053
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > I'm having trouble getting MET to install.  Here's where
> > > > > > > it's failing (excerpt from the Make install log):
> > > > > > >
> > > > > > > make[3]: Entering directory `/gpfs/h/WXQC/met-6.0/src/
> > > > > > libcode/vx_nc_util'
> > > > > > > g++ -DHAVE_CONFIG_H -I. -I../../..
> > > > > > > g++ -I../../../src/basic/vx_cal
> > > > > > > -I../../../src/basic/vx_config
-I../../../src/basic/vx_log
> > > > > > > -I../../../src/basic/vx_math
-I../../../src/basic/vx_util
> > > > > > > -I../../../src/l ibcode/vx_afm
> > > > > > > -I../../../src/libcode/vx_analysis_util
> > > > > > > -I../../../src/libcode/vx_color
> > > > > > > -I../../../src/libcode/vx_data2d
> > > > > > > -I../../../src/libcode/vx_data2d_factory
> > > > > > > -I../../../src/libcode/vx_ data2d_grib
> > > > > > >  -I../../../src/libcode/vx_data2d_grib2
> > > > > > > -I../../../src/libcode/vx_data2d_nccf
> > > > > > > -I../../../src/libcode/vx_data2d_nc_met
> > > > > > > -I../../../src/libcode/vx_data2d_nc_pinterp
> > > > > > > -I../../../src/libcode/vx_geodesy -
> > > > > > > I../../../src/libcode/vx_gnomon
> > > > > > > -I../../../src/libcode/vx_grid
> > > > > > > -I../../../src/libcode/vx_gsl_prob
> > > > > > > -I../../../src/libcode/vx_nav
> > > > > > > -I../../../src/libcode/vx_nc_util
> > > > > > > -I../../../src/libcode/vx_pb_util
> > > > > > > - I../../../src/libcode/vx_plot_util
> > > > > > > -I../../../src/libcode/vx_ps
-I../../../src/libcode/vx_pxm
> > > > > > > -I../../../src/libcode/vx_render
> > > > > > > -I../../../src/libcode/vx_regrid
> > > > > > > -I../../../src/libcode/vx_shapedata
> > > > > > > - I../../../src/libcode/vx_solar
> > > > > > > -I../../../src/libcode/vx_statistics
> > > > > > > -I../../../src/libcode/vx_stat_out
> > > > > > > -I../../../src/libcode/vx_time_series
> > > > > > > -I../../../src/libcode/vx_tc_util -I/h/WXQC/met-5.1/lib/
> > > > > > > netcdf-4.1.3/compiled/include
> > > > > > > -I/h/WXQC/met-5.1/lib/g2clib-1.4.0
> > > > > > > -I/h/WXQC/met-5.1/lib/gsl-1.15/include -DBLOCK4
-DWITH_GRIB2
> > > > > > > -DMET_BASE="\"/h/WXQC/met-6.0/share/met\""  -g -MT
> > > > > > > libvx_nc_util_a-nc_v ar_info.o -MD -MP -MF
> > > > > > > .deps/libvx_nc_util_a-nc_var_info.Tpo -c -o
> > > > > > > libvx_nc_util_a-nc_var_info.o `test -f 'nc_var_info.cc'
||
> > > > > > > echo './'`nc_var_info.cc In file included from
> nc_var_info.cc:24:
> > > > > > > nc_utils.h:22:18: error: netcdf: No such file or
directory
> > > > > > > In file included from nc_var_info.cc:24:
> > > > > > > nc_utils.h:23: error: ânetCDFâ is not a namespace-name
> > > > > > > nc_utils.h:23: error: expected namespace-name before â;â
> > > > > > > token In file included from nc_var_info.cc:24:
> > > > > > > nc_utils.h:66: error: ISO C++ forbids declaration of
âNcAttâ
> > > > > > > with no type
> > > > > > > nc_utils.h:66: error: expected â,â or â...â before â*â
token
> > > > > > >
> > > > > > > Indeed there is no file named "netcdf" in the directory.
I
> > > > > > > see it's the result of an "include <netcdf>" statement,
but
> > > > > > > I can't tell if this is assumed to be an environmental
> > > > > > > variable or if there should be a physical file by that
name.
> > > > > > >
> > > > > > > I can provide more if you need it.  Sorry about those
> > > > > > > extraneous
> > > "â"
> > > > > > > characters... I'm not sure why they are there.
> > > > > > >
> > > > > > > Thanks,
> > > > > > > Matt
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>
>

------------------------------------------------


More information about the Met_help mailing list