[Met_help] [rt.rap.ucar.edu #81746] History for netcdf error

Julie Prestopnik via RT met_help at ucar.edu
Mon Aug 28 08:46:57 MDT 2017


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

Hi,

I have downloaded the latest MET (bug-fix version) and am trying to install it. It says that "netcdf: No such file or directory" and stops.
==================================================
In file included from nc_var_info.cc:24:
nc_utils.h:22:18: error: netcdf: No such file or directory
nc_utils.h:23: error: 'netCDF' is not a namespace-name
nc_utils.h:23: error: expected namespace-name before ';' token
nc_utils.h:66: error: expected ',' or '...' before '*' token
nc_utils.h:66: error: ISO C++ forbids declaration of 'NcAtt' with no type
nc_utils.h:67: error: expected ',' or '...' before '*' token
nc_utils.h:67: error: ISO C++ forbids declaration of 'NcAtt' with no type
nc_utils.h:68: error: expected ',' or '...' before '*' token
==================================================

MET-Help email Archive is not working. How can I solve this problem?

Many thanks!
Youngsun


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

Subject: netcdf error
From: Julie Prestopnik
Time: Thu Aug 24 12:32:56 2017

Hi.  I see that you are having trouble compiling the MET 6.0 bug-fix
version, specifically with regard to NETCDF.

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 feel free to take a look at the MET User's Guide and the online
tutorial:http://www.dtcenter.org/met/users/docs/users_guide/MET_Users_Guide_v6.0.pdfhttp://www.dtcenter.org/met/users/support/online_tutorial/METv6.0/tutorial.php?name=compilation&category=req_libs

There is an additional environment variable that will need to be set,
with the addition of HDF5:
Set *$MET_HDF5* to point to the main HDF5 directory.

Also, both the NetCDF-C package (netcdf-c-4.4.1.1) and the NetCDF-CXX
package (netcdf-cxx4-4.3.0) are required.

Here are the commands we've been using to compile these packages from
source.  The following assumes that you're using the GNU compilers and
that you've defined MET_LIB_DIR to point to your desired installation
directory:

# First pick where you'd like to install and define that as the
MET_LIB_DIR
environment variable:
setenv MET_LIB_DIR /path/to/lib/directory

# 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

I hope this helps!  Please let us know if you're able to get a
successful installation of MET or if you need further assistance.

Thanks,

Julie


On Thu, Aug 24, 2017 at 12:10 PM, Jung, Youngsun via RT
<met_help at ucar.edu>
wrote:

>
> Thu Aug 24 12:10:55 2017: Request 81746 was acted upon.
> Transaction: Ticket created by youngsun.jung at ou.edu
>        Queue: met_help
>      Subject: netcdf error
>        Owner: Nobody
>   Requestors: youngsun.jung at ou.edu
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=81746 >
>
>
> Hi,
>
> I have downloaded the latest MET (bug-fix version) and am trying to
> install it. It says that "netcdf: No such file or directory" and
stops.
> ==================================================
> In file included from nc_var_info.cc:24:
> nc_utils.h:22:18: error: netcdf: No such file or directory
> nc_utils.h:23: error: 'netCDF' is not a namespace-name
> nc_utils.h:23: error: expected namespace-name before ';' token
> nc_utils.h:66: error: expected ',' or '...' before '*' token
> nc_utils.h:66: error: ISO C++ forbids declaration of 'NcAtt' with no
type
> nc_utils.h:67: error: expected ',' or '...' before '*' token
> nc_utils.h:67: error: ISO C++ forbids declaration of 'NcAtt' with no
type
> nc_utils.h:68: error: expected ',' or '...' before '*' token
> ==================================================
>
> MET-Help email Archive is not working. How can I solve this problem?
>
> Many thanks!
> Youngsun
>
>

------------------------------------------------
Subject: RE: [rt.rap.ucar.edu #81746] netcdf error
From: Jung, Youngsun
Time: Thu Aug 24 15:35:34 2017

It worked! Thank you very much, Julie!

Youngsun

-----Original Message-----
From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
Sent: Thursday, August 24, 2017 1:33 PM
To: Jung, Youngsun
Subject: Re: [rt.rap.ucar.edu #81746] netcdf error

Hi.  I see that you are having trouble compiling the MET 6.0 bug-fix
version, specifically with regard to NETCDF.

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 feel free to take a look at the MET User's Guide and the online
tutorial:http://www.dtcenter.org/met/users/docs/users_guide/MET_Users_Guide_v6.0.pdfhttp://www.dtcenter.org/met/users/support/online_tutorial/METv6.0/tutorial.php?name=compilation&category=req_libs

There is an additional environment variable that will need to be set,
with the addition of HDF5:
Set *$MET_HDF5* to point to the main HDF5 directory.

Also, both the NetCDF-C package (netcdf-c-4.4.1.1) and the NetCDF-CXX
package (netcdf-cxx4-4.3.0) are required.

Here are the commands we've been using to compile these packages from
source.  The following assumes that you're using the GNU compilers and
that you've defined MET_LIB_DIR to point to your desired installation
directory:

# First pick where you'd like to install and define that as the
MET_LIB_DIR environment variable:
setenv MET_LIB_DIR /path/to/lib/directory

# 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

I hope this helps!  Please let us know if you're able to get a
successful installation of MET or if you need further assistance.

Thanks,

Julie


On Thu, Aug 24, 2017 at 12:10 PM, Jung, Youngsun via RT
<met_help at ucar.edu>
wrote:

>
> Thu Aug 24 12:10:55 2017: Request 81746 was acted upon.
> Transaction: Ticket created by youngsun.jung at ou.edu
>        Queue: met_help
>      Subject: netcdf error
>        Owner: Nobody
>   Requestors: youngsun.jung at ou.edu
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=81746
> >
>
>
> Hi,
>
> I have downloaded the latest MET (bug-fix version) and am trying to
> install it. It says that "netcdf: No such file or directory" and
stops.
> ==================================================
> In file included from nc_var_info.cc:24:
> nc_utils.h:22:18: error: netcdf: No such file or directory
> nc_utils.h:23: error: 'netCDF' is not a namespace-name
> nc_utils.h:23: error: expected namespace-name before ';' token
> nc_utils.h:66: error: expected ',' or '...' before '*' token
> nc_utils.h:66: error: ISO C++ forbids declaration of 'NcAtt' with no
> type
> nc_utils.h:67: error: expected ',' or '...' before '*' token
> nc_utils.h:67: error: ISO C++ forbids declaration of 'NcAtt' with no
> type
> nc_utils.h:68: error: expected ',' or '...' before '*' token
> ==================================================
>
> MET-Help email Archive is not working. How can I solve this problem?
>
> Many thanks!
> Youngsun
>
>



------------------------------------------------
Subject: netcdf error
From: Julie Prestopnik
Time: Fri Aug 25 08:44:00 2017

I'm so glad to hear you were able to get a successful installation.
I'll
go ahead and close this ticket, but please let us know if any other
issues
arise.

Julie

On Thu, Aug 24, 2017 at 3:35 PM, Jung, Youngsun via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=81746 >
>
> It worked! Thank you very much, Julie!
>
> Youngsun
>
> -----Original Message-----
> From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> Sent: Thursday, August 24, 2017 1:33 PM
> To: Jung, Youngsun
> Subject: Re: [rt.rap.ucar.edu #81746] netcdf error
>
> Hi.  I see that you are having trouble compiling the MET 6.0 bug-fix
> version, specifically with regard to NETCDF.
>
> 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 feel free to take a look at the MET User's Guide and the
online
> tutorial:http://www.dtcenter.org/met/users/docs/users_
> guide/MET_Users_Guide_v6.0.pdfhttp://www.dtcenter.org/
> met/users/support/online_tutorial/METv6.0/tutorial.php?
> name=compilation&category=req_libs
>
> There is an additional environment variable that will need to be
set, with
> the addition of HDF5:
> Set *$MET_HDF5* to point to the main HDF5 directory.
>
> Also, both the NetCDF-C package (netcdf-c-4.4.1.1) and the NetCDF-
CXX
> package (netcdf-cxx4-4.3.0) are required.
>
> Here are the commands we've been using to compile these packages
from
> source.  The following assumes that you're using the GNU compilers
and that
> you've defined MET_LIB_DIR to point to your desired installation
> directory:
>
> # First pick where you'd like to install and define that as the
> MET_LIB_DIR environment variable:
> setenv MET_LIB_DIR /path/to/lib/directory
>
> # 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
>
> I hope this helps!  Please let us know if you're able to get a
successful
> installation of MET or if you need further assistance.
>
> Thanks,
>
> Julie
>
>
> On Thu, Aug 24, 2017 at 12:10 PM, Jung, Youngsun via RT
<met_help at ucar.edu
> >
> wrote:
>
> >
> > Thu Aug 24 12:10:55 2017: Request 81746 was acted upon.
> > Transaction: Ticket created by youngsun.jung at ou.edu
> >        Queue: met_help
> >      Subject: netcdf error
> >        Owner: Nobody
> >   Requestors: youngsun.jung at ou.edu
> >       Status: new
> >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=81746
> > >
> >
> >
> > Hi,
> >
> > I have downloaded the latest MET (bug-fix version) and am trying
to
> > install it. It says that "netcdf: No such file or directory" and
stops.
> > ==================================================
> > In file included from nc_var_info.cc:24:
> > nc_utils.h:22:18: error: netcdf: No such file or directory
> > nc_utils.h:23: error: 'netCDF' is not a namespace-name
> > nc_utils.h:23: error: expected namespace-name before ';' token
> > nc_utils.h:66: error: expected ',' or '...' before '*' token
> > nc_utils.h:66: error: ISO C++ forbids declaration of 'NcAtt' with
no
> > type
> > nc_utils.h:67: error: expected ',' or '...' before '*' token
> > nc_utils.h:67: error: ISO C++ forbids declaration of 'NcAtt' with
no
> > type
> > nc_utils.h:68: error: expected ',' or '...' before '*' token
> > ==================================================
> >
> > MET-Help email Archive is not working. How can I solve this
problem?
> >
> > Many thanks!
> > Youngsun
> >
> >
>
>
>
>

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


More information about the Met_help mailing list