[Met_help] [rt.rap.ucar.edu #68890] History for Installing MET 5.0

John Halley Gotway via RT met_help at ucar.edu
Fri Oct 3 12:28:39 MDT 2014


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

Dear MET_Help,

     I was trying to install MET 5.0 in my system and it shows following
error during "make install". Error shows :

 In file included from nc_var_info.cc:24:
nc_var_info.h:24:21: error: netcdf.hh: No such file or directory
In file included from nc_var_info.cc:24:
nc_var_info.h:52: error: ISO C++ forbids declaration of ‘NcVar’ with no type
nc_var_info.h:52: error: expected ‘;’ before ‘*’ token
nc_var_info.h:68: error: ISO C++ forbids declaration of ‘NcDim’ with no type
nc_var_info.h:68: error: expected ‘;’ before ‘*’ token
nc_var_info.cc: In member function ‘void NcVarInfo::init_from_scratch()’:
nc_var_info.cc:98: error: ‘Dims’ was not declared in this scope
nc_var_info.cc:98: error: ‘NcDim’ was not declared in this scope
nc_var_info.cc:98: error: expected primary-expression before ‘)’ token
nc_var_info.cc:98: error: expected ‘;’ before numeric constant
nc_var_info.cc: In member function ‘void NcVarInfo::clear()’:
nc_var_info.cc:114: error: ‘var’ was not declared in this scope
nc_var_info.cc:114: error: ‘NcVar’ was not declared in this scope
nc_var_info.cc:114: error: expected primary-expression before ‘)’ token
nc_var_info.cc:114: error: expected ‘;’ before numeric constant
nc_var_info.cc:130: error: ‘Dims’ was not declared in this scope
nc_var_info.cc:130: error: type ‘<type error>’ argument given to ‘delete’,
expected pointer
nc_var_info.cc:130: error: ‘NcDim’ was not declared in this scope
nc_var_info.cc:130: error: expected primary-expression before ‘)’ token
nc_var_info.cc:130: error: expected ‘;’ before numeric constant
nc_var_info.cc: In member function ‘void NcVarInfo::dump(std::ostream&,
int) const’:
nc_var_info.cc:154: error: ‘var’ was not declared in this scope
nc_var_info.cc:180: error: ‘Dims’ was not declared in this scope
nc_var_info.cc: In member function ‘void NcVarInfo::assign(const
NcVarInfo&)’:
nc_var_info.cc:217: error: ‘var’ was not declared in this scope
nc_var_info.cc:217: error: ‘const class NcVarInfo’ has no member named ‘var’
nc_var_info.cc:238: error: ‘const class NcVarInfo’ has no member named
‘Dims’
nc_var_info.cc:240: error: ‘Dims’ was not declared in this scope
nc_var_info.cc:240: error: expected type-specifier before ‘NcDim’
nc_var_info.cc:240: error: expected ‘;’ before ‘NcDim’
nc_var_info.cc:242: error: ‘const class NcVarInfo’ has no member named
‘Dims’
nc_var_info.cc: In function ‘bool get_att_str(const NcVarInfo&, const
ConcatString&, ConcatString&)’:
nc_var_info.cc:271: error: ‘NcAtt’ was not declared in this scope
nc_var_info.cc:271: error: ‘att’ was not declared in this scope
nc_var_info.cc:271: error: expected primary-expression before ‘)’ token
nc_var_info.cc:271: error: expected ‘;’ before numeric constant
nc_var_info.cc:274: error: ‘const class NcVarInfo’ has no member named ‘var’
nc_var_info.cc:279: error: ‘const class NcVarInfo’ has no member named ‘var’
nc_var_info.cc:284: error: ‘ncChar’ was not declared in this scope
nc_var_info.cc: In function ‘bool get_att_int(const NcVarInfo&, const
ConcatString&, int&)’:
nc_var_info.cc:318: error: ‘NcAtt’ was not declared in this scope
nc_var_info.cc:318: error: ‘att’ was not declared in this scope
nc_var_info.cc:318: error: expected primary-expression before ‘)’ token
nc_var_info.cc:318: error: expected ‘;’ before numeric constant
nc_var_info.cc:321: error: ‘const class NcVarInfo’ has no member named ‘var’
nc_var_info.cc:326: error: ‘const class NcVarInfo’ has no member named ‘var’
nc_var_info.cc:331: error: ‘ncInt’ was not declared in this scope
make[3]: *** [libvx_nc_util_a-nc_var_info.o] Error 1


I have attached Makefile, make log and configure log. Is that anyway
related to netcdf library, do I need to update it ? Also, how to enable
GRIB2 enabled installation for 5.0 (in 4.1, there was option for switch on
or off for GRIB2).

Thanks,
 Partha


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

Subject: Installing MET 5.0
From: John Halley Gotway
Time: Mon Sep 08 10:46:36 2014

Partha,

Thanks for downloading the latest release of MET.  I see that you're
having
trouble configuring/compiling it.  We switched over to using autoconf
for
building MET version 5.0.  In previous versions, you edited a file by
hand
and then typed "make".  Now, you run the configure script.  Please
read
through the top-level met-5.0/README file for instructions about
building
MET.

You can set several environment variables to tell the configure script
where to find the dependent libraries.  For example, MET_NETCDF tells
it
where to find NetCDF.  Since you didn't set MET_NETCDF, I'm guessing
it's
finding a NetCDF build on your system that doesn't include the C++
interface, and that's why it can't find the file "netcdf.hh".

Based on what you sent me last month, it looks like you have NetCDF
built
here:
   /home/pbhattacharjee/Netcdf/netcdf-4.0

You can set the environment variable like this:
   setenv MET_NETCDF  /home/pbhattacharjee/Netcdf/netcdf-4.0

Also, you enable support for GRIB2 with the "--enable-grib2" argument
to
configure.

But this is all explained in that README file.

Hope that helps.

Thanks,
John Halley Gotway

On Mon, Sep 8, 2014 at 10:20 AM, Partha Bhattacharjee - NOAA Affiliate
via
RT <met_help at ucar.edu> wrote:

>
> Mon Sep 08 10:20:05 2014: Request 68890 was acted upon.
> Transaction: Ticket created by partha.bhattacharjee at noaa.gov
>        Queue: met_help
>      Subject: Installing MET 5.0
>        Owner: Nobody
>   Requestors: partha.bhattacharjee at noaa.gov
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=68890 >
>
>
> Dear MET_Help,
>
>      I was trying to install MET 5.0 in my system and it shows
following
> error during "make install". Error shows :
>
>  In file included from nc_var_info.cc:24:
> nc_var_info.h:24:21: error: netcdf.hh: No such file or directory
> In file included from nc_var_info.cc:24:
> nc_var_info.h:52: error: ISO C++ forbids declaration of ‘NcVar’ with
no
> type
> nc_var_info.h:52: error: expected ‘;’ before ‘*’ token
> nc_var_info.h:68: error: ISO C++ forbids declaration of ‘NcDim’ with
no
> type
> nc_var_info.h:68: error: expected ‘;’ before ‘*’ token
> nc_var_info.cc: In member function ‘void
NcVarInfo::init_from_scratch()’:
> nc_var_info.cc:98: error: ‘Dims’ was not declared in this scope
> nc_var_info.cc:98: error: ‘NcDim’ was not declared in this scope
> nc_var_info.cc:98: error: expected primary-expression before ‘)’
token
> nc_var_info.cc:98: error: expected ‘;’ before numeric constant
> nc_var_info.cc: In member function ‘void NcVarInfo::clear()’:
> nc_var_info.cc:114: error: ‘var’ was not declared in this scope
> nc_var_info.cc:114: error: ‘NcVar’ was not declared in this scope
> nc_var_info.cc:114: error: expected primary-expression before ‘)’
token
> nc_var_info.cc:114: error: expected ‘;’ before numeric constant
> nc_var_info.cc:130: error: ‘Dims’ was not declared in this scope
> nc_var_info.cc:130: error: type ‘<type error>’ argument given to
‘delete’,
> expected pointer
> nc_var_info.cc:130: error: ‘NcDim’ was not declared in this scope
> nc_var_info.cc:130: error: expected primary-expression before ‘)’
token
> nc_var_info.cc:130: error: expected ‘;’ before numeric constant
> nc_var_info.cc: In member function ‘void
NcVarInfo::dump(std::ostream&,
> int) const’:
> nc_var_info.cc:154: error: ‘var’ was not declared in this scope
> nc_var_info.cc:180: error: ‘Dims’ was not declared in this scope
> nc_var_info.cc: In member function ‘void NcVarInfo::assign(const
> NcVarInfo&)’:
> nc_var_info.cc:217: error: ‘var’ was not declared in this scope
> nc_var_info.cc:217: error: ‘const class NcVarInfo’ has no member
named
> ‘var’
> nc_var_info.cc:238: error: ‘const class NcVarInfo’ has no member
named
> ‘Dims’
> nc_var_info.cc:240: error: ‘Dims’ was not declared in this scope
> nc_var_info.cc:240: error: expected type-specifier before ‘NcDim’
> nc_var_info.cc:240: error: expected ‘;’ before ‘NcDim’
> nc_var_info.cc:242: error: ‘const class NcVarInfo’ has no member
named
> ‘Dims’
> nc_var_info.cc: In function ‘bool get_att_str(const NcVarInfo&,
const
> ConcatString&, ConcatString&)’:
> nc_var_info.cc:271: error: ‘NcAtt’ was not declared in this scope
> nc_var_info.cc:271: error: ‘att’ was not declared in this scope
> nc_var_info.cc:271: error: expected primary-expression before ‘)’
token
> nc_var_info.cc:271: error: expected ‘;’ before numeric constant
> nc_var_info.cc:274: error: ‘const class NcVarInfo’ has no member
named
> ‘var’
> nc_var_info.cc:279: error: ‘const class NcVarInfo’ has no member
named
> ‘var’
> nc_var_info.cc:284: error: ‘ncChar’ was not declared in this scope
> nc_var_info.cc: In function ‘bool get_att_int(const NcVarInfo&,
const
> ConcatString&, int&)’:
> nc_var_info.cc:318: error: ‘NcAtt’ was not declared in this scope
> nc_var_info.cc:318: error: ‘att’ was not declared in this scope
> nc_var_info.cc:318: error: expected primary-expression before ‘)’
token
> nc_var_info.cc:318: error: expected ‘;’ before numeric constant
> nc_var_info.cc:321: error: ‘const class NcVarInfo’ has no member
named
> ‘var’
> nc_var_info.cc:326: error: ‘const class NcVarInfo’ has no member
named
> ‘var’
> nc_var_info.cc:331: error: ‘ncInt’ was not declared in this scope
> make[3]: *** [libvx_nc_util_a-nc_var_info.o] Error 1
>
>
> I have attached Makefile, make log and configure log. Is that anyway
> related to netcdf library, do I need to update it ? Also, how to
enable
> GRIB2 enabled installation for 5.0 (in 4.1, there was option for
switch on
> or off for GRIB2).
>
> Thanks,
>  Partha
>
>

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


More information about the Met_help mailing list