[Met_help] [rt.rap.ucar.edu #79320] History for having trouble installing MET 5.2

John Halley Gotway via RT met_help at ucar.edu
Thu Feb 9 10:17:08 MST 2017


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

Hi,


The error I have is below:

In file included from data2d_grib2.cc:29:
data2d_grib2.h:27:21: error: grib2.h: No such file or directory
In file included from data2d_grib2.cc:29:
data2d_grib2.h:98: error: ‘gribfield’ has not been declared
data2d_grib2.h:101: error: ‘g2int’ has not been declared
data2d_grib2.h:102: error: ‘g2int’ has not been declared
data2d_grib2.h:103: error: ‘gribfield’ has not been declared
data2d_grib2.h:105: error: ‘g2int’ has not been declared
data2d_grib2.cc:37: error: variable or field ‘g2_miss’ declared void
data2d_grib2.cc:37: error: ‘gribfield’ was not declared in this scope
data2d_grib2.cc:37: error: ‘gfld’ was not declared in this scope
data2d_grib2.cc:37: error: expected primary-expression before ‘float’
data2d_grib2.cc:37: error: expected primary-expression before ‘int’
data2d_grib2.cc: In member function ‘void MetGrib2DataFile::read_grib2_record_list()’:
data2d_grib2.cc:583: error: ‘gribfield’ was not declared in this scope
data2d_grib2.cc:583: error: ‘gfld’ was not declared in this scope
data2d_grib2.cc:586: error: ‘g2int’ was not declared in this scope
data2d_grib2.cc:586: error: expected ‘;’ before ‘numfields’
data2d_grib2.cc:590: error: ‘numfields’ was not declared in this scope
data2d_grib2.cc:740: error: expected ‘;’ before ‘range_typ’
data2d_grib2.cc:743: error: expected ‘;’ before ‘range_val’
data2d_grib2.cc:746: error: ‘range_typ’ was not declared in this scope
data2d_grib2.cc:747: error: ‘range_val’ was not declared in this scope
data2d_grib2.cc:773: error: ‘g2_free’ was not declared in this scope
data2d_grib2.cc: At global scope:
data2d_grib2.cc:791: error: variable or field ‘read_grib2_grid’ declared void
data2d_grib2.cc:791: error: ‘gribfield’ was not declared in this scope
data2d_grib2.cc:791: error: ‘gfld’ was not declared in this scope
make[3]: *** [libvx_data2d_grib2_a-data2d_grib2.o] Error 1
make[3]: Leaving directory `/D2/xinxia/METplus/MET/met-5.2/src/libcode/vx_data2d_grib2'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/D2/xinxia/METplus/MET/met-5.2/src/libcode'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/D2/xinxia/METplus/MET/met-5.2/src'
make: *** [install-recursive] Error 1


and the .bashrc is:

export MET_NETCDF=/opt/intel-soft/netcdf3

export MET_BUFRLIB=/D2/xinxia/METplus/bufrlib

export MET_GSL=/D2/xinxia/METplus/GSL/gsl-2.3

export MET_GRIB2C=/D2/xinxia/METplus/g2clib-1.6.0

export MET_GRIB2CINC=/D2/xinxia/METplus/g2clib-1.6.0

export MET_GRIB2CLIB=/D2/xinxia/METplus/g2clib-1.6.0


It seems it couldn't find the data2d_grib2.h file.


Thanks,


Xinxia


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

Subject: having trouble installing MET 5.2
From: Xinxia Song
Time: Thu Feb 02 11:04:10 2017

Hi,


After I fixed by myself the error changes to:

-L/D2/xinxia/METplus/GSL/gsl-2.3/lib -L/D2/xinxia/METplus/Bufrlib -o
ensemble_stat ensemble_stat-ensemble_stat.o ensemble_stat-
ensemble_stat_conf_info.o -lvx_stat_out -lvx_statistics -lvx_shapedata
-lvx_gsl_prob -lvx_analysis_util -lvx_data2d_factory
-lvx_data2d_nc_met -lvx_data2d_grib -lvx_data2d_grib2
-L/D2/xinxia/METplus/g2clib-1.6.0 -lgrib2c -ljasper -lpng -lz
-lvx_data2d_nc_pinterp -lvx_data2d_nccf -lvx_data2d -lvx_nc_util
-lvx_regrid -lvx_grid -lvx_config -lvx_cal -lvx_util -lvx_math
-lvx_color -lvx_log -lm -lnetcdf_c++ -lnetcdf -lgsl -lgslcblas

/usr/bin/ld: cannot find -lgrib2c

collect2: ld returned 1 exit status

make[4]: *** [ensemble_stat] Error 1

make[4]: Leaving directory `/D2/xinxia/METplus/MET/met-
5.2/src/tools/core/ensemble_stat'


Could you help me?


Thanks,


Xinxia

________________________________
From: met_help at ucar.edu via RT <met_help at ucar.edu>
Sent: Thursday, February 2, 2017 7:13:54 AM
To: Xinxia_Song at outlook.com
Subject: [rt.rap.ucar.edu #79320] AutoReply: having trouble installing
MET 5.2

Greetings,

This message has been automatically generated in response to the
creation of a trouble ticket regarding:
        "having trouble installing MET 5.2",
a summary of which appears below.

There is no need to reply to this message right now.  Your ticket has
been
assigned an ID of [rt.rap.ucar.edu #79320].

Please include the string:

         [rt.rap.ucar.edu #79320]

in the subject line of all future correspondence about this issue. To
do so,
you may reply to this message.

                        Thank you,
                        met_help at ucar.edu

-------------------------------------------------------------------------
Hi,


The error I have is below:

In file included from data2d_grib2.cc:29:
data2d_grib2.h:27:21: error: grib2.h: No such file or directory
In file included from data2d_grib2.cc:29:
data2d_grib2.h:98: error: ‘gribfield’ has not been declared
data2d_grib2.h:101: error: ‘g2int’ has not been declared
data2d_grib2.h:102: error: ‘g2int’ has not been declared
data2d_grib2.h:103: error: ‘gribfield’ has not been declared
data2d_grib2.h:105: error: ‘g2int’ has not been declared
data2d_grib2.cc:37: error: variable or field ‘g2_miss’ declared void
data2d_grib2.cc:37: error: ‘gribfield’ was not declared in this scope
data2d_grib2.cc:37: error: ‘gfld’ was not declared in this scope
data2d_grib2.cc:37: error: expected primary-expression before ‘float’
data2d_grib2.cc:37: error: expected primary-expression before ‘int’
data2d_grib2.cc: In member function ‘void
MetGrib2DataFile::read_grib2_record_list()’:
data2d_grib2.cc:583: error: ‘gribfield’ was not declared in this scope
data2d_grib2.cc:583: error: ‘gfld’ was not declared in this scope
data2d_grib2.cc:586: error: ‘g2int’ was not declared in this scope
data2d_grib2.cc:586: error: expected ‘;’ before ‘numfields’
data2d_grib2.cc:590: error: ‘numfields’ was not declared in this scope
data2d_grib2.cc:740: error: expected ‘;’ before ‘range_typ’
data2d_grib2.cc:743: error: expected ‘;’ before ‘range_val’
data2d_grib2.cc:746: error: ‘range_typ’ was not declared in this scope
data2d_grib2.cc:747: error: ‘range_val’ was not declared in this scope
data2d_grib2.cc:773: error: ‘g2_free’ was not declared in this scope
data2d_grib2.cc: At global scope:
data2d_grib2.cc:791: error: variable or field ‘read_grib2_grid’
declared void
data2d_grib2.cc:791: error: ‘gribfield’ was not declared in this scope
data2d_grib2.cc:791: error: ‘gfld’ was not declared in this scope
make[3]: *** [libvx_data2d_grib2_a-data2d_grib2.o] Error 1
make[3]: Leaving directory `/D2/xinxia/METplus/MET/met-
5.2/src/libcode/vx_data2d_grib2'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/D2/xinxia/METplus/MET/met-
5.2/src/libcode'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/D2/xinxia/METplus/MET/met-5.2/src'
make: *** [install-recursive] Error 1


and the .bashrc is:

export MET_NETCDF=/opt/intel-soft/netcdf3

export MET_BUFRLIB=/D2/xinxia/METplus/bufrlib

export MET_GSL=/D2/xinxia/METplus/GSL/gsl-2.3

export MET_GRIB2C=/D2/xinxia/METplus/g2clib-1.6.0

export MET_GRIB2CINC=/D2/xinxia/METplus/g2clib-1.6.0

export MET_GRIB2CLIB=/D2/xinxia/METplus/g2clib-1.6.0


It seems it couldn't find the data2d_grib2.h file.


Thanks,


Xinxia


------------------------------------------------
Subject: having trouble installing MET 5.2
From: John Halley Gotway
Time: Thu Feb 02 11:32:21 2017

Xinxia,

I see you're having trouble compiling MET with the GRIB2C library.
The
newest version of the GRIB2C library (1.6.0) included some changes to
it's
defaults and we haven't update our documentation to account for them
yet.

The good news is that they're pretty easy to fix.  Please do the
following:

(1) Open up the following file for editing:
   /D2/xinxia/METplus/g2clib-1.6.0/makefile

(2) Edit the "CFLAGS" line by removing "-D__64BIT__":
   CFLAGS= -O3 -g -m64 $(INC) $(DEFS)

(3) Edit the "LIB" line by renaming it to libgrib2c.a:
   LIB=libgrib2c.a

(4) Recompile the GRIB2C library:
   rm *.a
   make

(5) Recompile MET.  Note, since you correctly have MET_GRIB2CINC and
MET_GRIB2CLIB set, you don't need MET_GRIB2C set:
   unsetenv MET_GRIB2C

Please let me know how it goes.

Thanks,
John Halley Gotway


On Thu, Feb 2, 2017 at 11:04 AM, Xinxia Song via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79320 >
>
> Hi,
>
>
> After I fixed by myself the error changes to:
>
> -L/D2/xinxia/METplus/GSL/gsl-2.3/lib -L/D2/xinxia/METplus/Bufrlib -o
> ensemble_stat ensemble_stat-ensemble_stat.o ensemble_stat-
ensemble_stat_conf_info.o
> -lvx_stat_out -lvx_statistics -lvx_shapedata -lvx_gsl_prob
> -lvx_analysis_util -lvx_data2d_factory -lvx_data2d_nc_met
-lvx_data2d_grib
> -lvx_data2d_grib2 -L/D2/xinxia/METplus/g2clib-1.6.0 -lgrib2c
-ljasper
> -lpng -lz -lvx_data2d_nc_pinterp -lvx_data2d_nccf -lvx_data2d
-lvx_nc_util
> -lvx_regrid -lvx_grid -lvx_config -lvx_cal -lvx_util -lvx_math
-lvx_color
> -lvx_log -lm -lnetcdf_c++ -lnetcdf -lgsl -lgslcblas
>
> /usr/bin/ld: cannot find -lgrib2c
>
> collect2: ld returned 1 exit status
>
> make[4]: *** [ensemble_stat] Error 1
>
> make[4]: Leaving directory `/D2/xinxia/METplus/MET/met-5.
> 2/src/tools/core/ensemble_stat'
>
>
> Could you help me?
>
>
> Thanks,
>
>
> Xinxia
>
> ________________________________
> From: met_help at ucar.edu via RT <met_help at ucar.edu>
> Sent: Thursday, February 2, 2017 7:13:54 AM
> To: Xinxia_Song at outlook.com
> Subject: [rt.rap.ucar.edu #79320] AutoReply: having trouble
installing
> MET 5.2
>
> Greetings,
>
> This message has been automatically generated in response to the
> creation of a trouble ticket regarding:
>         "having trouble installing MET 5.2",
> a summary of which appears below.
>
> There is no need to reply to this message right now.  Your ticket
has been
> assigned an ID of [rt.rap.ucar.edu #79320].
>
> Please include the string:
>
>          [rt.rap.ucar.edu #79320]
>
> in the subject line of all future correspondence about this issue.
To do
> so,
> you may reply to this message.
>
>                         Thank you,
>                         met_help at ucar.edu
>
>
-------------------------------------------------------------------------
> Hi,
>
>
> The error I have is below:
>
> In file included from data2d_grib2.cc:29:
> data2d_grib2.h:27:21: error: grib2.h: No such file or directory
> In file included from data2d_grib2.cc:29:
> data2d_grib2.h:98: error: ‘gribfield’ has not been declared
> data2d_grib2.h:101: error: ‘g2int’ has not been declared
> data2d_grib2.h:102: error: ‘g2int’ has not been declared
> data2d_grib2.h:103: error: ‘gribfield’ has not been declared
> data2d_grib2.h:105: error: ‘g2int’ has not been declared
> data2d_grib2.cc:37: error: variable or field ‘g2_miss’ declared void
> data2d_grib2.cc:37: error: ‘gribfield’ was not declared in this
scope
> data2d_grib2.cc:37: error: ‘gfld’ was not declared in this scope
> data2d_grib2.cc:37: error: expected primary-expression before
‘float’
> data2d_grib2.cc:37: error: expected primary-expression before ‘int’
> data2d_grib2.cc: In member function ‘void
MetGrib2DataFile::read_grib2_
> record_list()’:
> data2d_grib2.cc:583: error: ‘gribfield’ was not declared in this
scope
> data2d_grib2.cc:583: error: ‘gfld’ was not declared in this scope
> data2d_grib2.cc:586: error: ‘g2int’ was not declared in this scope
> data2d_grib2.cc:586: error: expected ‘;’ before ‘numfields’
> data2d_grib2.cc:590: error: ‘numfields’ was not declared in this
scope
> data2d_grib2.cc:740: error: expected ‘;’ before ‘range_typ’
> data2d_grib2.cc:743: error: expected ‘;’ before ‘range_val’
> data2d_grib2.cc:746: error: ‘range_typ’ was not declared in this
scope
> data2d_grib2.cc:747: error: ‘range_val’ was not declared in this
scope
> data2d_grib2.cc:773: error: ‘g2_free’ was not declared in this scope
> data2d_grib2.cc: At global scope:
> data2d_grib2.cc:791: error: variable or field ‘read_grib2_grid’
declared
> void
> data2d_grib2.cc:791: error: ‘gribfield’ was not declared in this
scope
> data2d_grib2.cc:791: error: ‘gfld’ was not declared in this scope
> make[3]: *** [libvx_data2d_grib2_a-data2d_grib2.o] Error 1
> make[3]: Leaving directory `/D2/xinxia/METplus/MET/met-5.
> 2/src/libcode/vx_data2d_grib2'
> make[2]: *** [install-recursive] Error 1
> make[2]: Leaving directory `/D2/xinxia/METplus/MET/met-
5.2/src/libcode'
> make[1]: *** [install-recursive] Error 1
> make[1]: Leaving directory `/D2/xinxia/METplus/MET/met-5.2/src'
> make: *** [install-recursive] Error 1
>
>
> and the .bashrc is:
>
> export MET_NETCDF=/opt/intel-soft/netcdf3
>
> export MET_BUFRLIB=/D2/xinxia/METplus/bufrlib
>
> export MET_GSL=/D2/xinxia/METplus/GSL/gsl-2.3
>
> export MET_GRIB2C=/D2/xinxia/METplus/g2clib-1.6.0
>
> export MET_GRIB2CINC=/D2/xinxia/METplus/g2clib-1.6.0
>
> export MET_GRIB2CLIB=/D2/xinxia/METplus/g2clib-1.6.0
>
>
> It seems it couldn't find the data2d_grib2.h file.
>
>
> Thanks,
>
>
> Xinxia
>
>
>

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


More information about the Met_help mailing list