[Met_help] [rt.rap.ucar.edu #57487] History for building MET4 with grib2

Paul Oldenburg via RT met_help at ucar.edu
Fri Jul 27 14:23:11 MDT 2012


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

Hi,
 
I am trying to build MET 4.0 with grib2 on. I do have wgrib2 in my system
and working fine. However, the compilation crashes after the
vx_analysis_util Library.
 
It does not find a library called "z":
 
===
*** Finished Making the vx_analysis_util Library ***
 
 
 
/opt/intel/cce/10.1.023/bin/icc ensemble_stat_conf_info.cc -Wshadow -static
-DBLOCK4 -DWITH_GRIB2 -c -I/home/cjones/wrf/METv4.0/include
-I/usr/include/gsl -I/usr/local/netcdf/include
/opt/intel/cce/10.1.023/bin/icc -o ensemble_stat ensemble_stat.cc
ensemble_stat_conf_info.o \
            -Wshadow -static  -DBLOCK4 -DWITH_GRIB2
-DMET_BASE=\"/home/cjones/wrf/METv4.0\" \
            -I/home/cjones/wrf/METv4.0/include -I/usr/local/netcdf/include
-I/usr/include/gsl -I/usr/local/grib2/g2clib-1.2.1/ \
            -L/home/cjones/wrf/METv4.0/lib -L/usr/local/netcdf/lib
-L/usr/lib -L/usr/local/grib2/g2clib-1.2.1/ \
            -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 -lgrib2c -ljasper -lpng -lz \
            -lvx_data2d_nc_pinterp \
            -lvx_data2d \
            -lvx_nc_util \
            -lvx_grid \
            -lvx_config \
            -lvx_cal \
            -lvx_util \
            -lvx_math \
            -lvx_color \
            -lvx_log \
            -lm -lnetcdf_c++ -lnetcdf -lgsl -lgslcblas \
            
ld: cannot find -lz
make[4]: *** [ensemble_stat] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2
 
===
 
My path definitions for grib2 are:
 
GRIB2C_BASE  = /usr/local/grib2
GRIB2C_INCS  = -I/usr/local/grib2/g2clib-1.2.1/
GRIB2C_LIBS  = -L/usr/local/grib2/g2clib-1.2.1/
 
What package is the "z" library?
 
Thanks,
 
Charles.
 
*====================================================*
Dr. Charles Jones
Researcher
Earth Research Institute (ERI)
University of California, Santa Barbara, CA 93106-3060
 
phone: (805) 893-5824
fax:   (805) 893-2578
email:  <mailto:cjones at icess.ucsb.edu> cjones at eri.ucsb.edu
URL:   <http://www.icess.ucsb.edu/asr/> http://www.eri.ucsb.edu/asr/
|=====================================================*
 


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

Subject: Re: [rt.rap.ucar.edu #57487] building MET4 with grib2
From: Paul Oldenburg
Time: Wed Jul 18 08:41:35 2012

Charles,

The z library is required by the grib2c library, which is used in MET
to read GRIB2 data.  The libraries jasper and png
are also required by grib2c.  You need to find the location of these
libraries on your system and then add them to the
included library paths.  The libraries have names with the format
lib[name].a, for example libz.a.  They may already be
installed on your system in /usr/lib, /usr/lib64, /usr/local/lib or
something like that.  When you find the directories,
add them to the GRIB2C_LIBS setting in the user_defs.mk file like
this:

GRIB2C_LIBS = -L[directory_with_libz.a]

Please let me know if you have any question.

Paul


On 07/17/2012 07:38 PM, cjones via RT wrote:
>
> Tue Jul 17 19:38:09 2012: Request 57487 was acted upon.
> Transaction: Ticket created by cjones at icess.ucsb.edu
>         Queue: met_help
>       Subject: building MET4 with grib2
>         Owner: Nobody
>    Requestors: cjones at icess.ucsb.edu
>        Status: new
>   Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=57487 >
>
>
> Hi,
>
> I am trying to build MET 4.0 with grib2 on. I do have wgrib2 in my
system
> and working fine. However, the compilation crashes after the
> vx_analysis_util Library.
>
> It does not find a library called "z":
>
> ===
> *** Finished Making the vx_analysis_util Library ***
>
>
>
> /opt/intel/cce/10.1.023/bin/icc ensemble_stat_conf_info.cc -Wshadow
-static
> -DBLOCK4 -DWITH_GRIB2 -c -I/home/cjones/wrf/METv4.0/include
> -I/usr/include/gsl -I/usr/local/netcdf/include
> /opt/intel/cce/10.1.023/bin/icc -o ensemble_stat ensemble_stat.cc
> ensemble_stat_conf_info.o \
>              -Wshadow -static  -DBLOCK4 -DWITH_GRIB2
> -DMET_BASE=\"/home/cjones/wrf/METv4.0\" \
>              -I/home/cjones/wrf/METv4.0/include
-I/usr/local/netcdf/include
> -I/usr/include/gsl -I/usr/local/grib2/g2clib-1.2.1/ \
>              -L/home/cjones/wrf/METv4.0/lib -L/usr/local/netcdf/lib
> -L/usr/lib -L/usr/local/grib2/g2clib-1.2.1/ \
>              -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 -lgrib2c -ljasper
-lpng -lz \
>              -lvx_data2d_nc_pinterp \
>              -lvx_data2d \
>              -lvx_nc_util \
>              -lvx_grid \
>              -lvx_config \
>              -lvx_cal \
>              -lvx_util \
>              -lvx_math \
>              -lvx_color \
>              -lvx_log \
>              -lm -lnetcdf_c++ -lnetcdf -lgsl -lgslcblas \
>
> ld: cannot find -lz
> make[4]: *** [ensemble_stat] Error 1
> make[3]: *** [all] Error 2
> make[2]: *** [all] Error 2
> make[1]: *** [all] Error 2
> make: *** [all] Error 2
>
> ===
>
> My path definitions for grib2 are:
>
> GRIB2C_BASE  = /usr/local/grib2
> GRIB2C_INCS  = -I/usr/local/grib2/g2clib-1.2.1/
> GRIB2C_LIBS  = -L/usr/local/grib2/g2clib-1.2.1/
>
> What package is the "z" library?
>
> Thanks,
>
> Charles.
>
> *====================================================*
> Dr. Charles Jones
> Researcher
> Earth Research Institute (ERI)
> University of California, Santa Barbara, CA 93106-3060
>
> phone: (805) 893-5824
> fax:   (805) 893-2578
> email:  <mailto:cjones at icess.ucsb.edu> cjones at eri.ucsb.edu
> URL:   <http://www.icess.ucsb.edu/asr/> http://www.eri.ucsb.edu/asr/
> |=====================================================*
>
>



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


More information about the Met_help mailing list