[Met_help] [rt.rap.ucar.edu #65573] History for compilation of g2clib for METv4.1

John Halley Gotway via RT met_help at ucar.edu
Mon Jun 2 14:19:10 MDT 2014


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

Dear John, 
U had suggested to me to go for MEtv4.1 I was trying to build that and I am now stuck at g2clib. 
 
This is the error I have got while installing g2clib. 
bash-3.2$ make
        cc -c -I/oprn/model/WRFLIB/jasper-1.900.1/src/libjasper/include -DUSE_JPEG2000 -DUSE_PNG gridtemplates.c"gridtemplates.h", line 34.9: 1506-260 (S) Octal integer constant 08 is not valid.
"gridtemplates.h", line 35.12: 1506-260 (S) Octal integer constant 08 is not valid.
"gridtemplates.h", line 37.9: 1506-260 (S) Octal integer constant 08 is not valid.
"gridtemplates.h", line 61.26: 1506-260 (S) Octal integer constant 08 is not valid.
"gridtemplates.h", line 5.1: 1506-046 (S) Syntax error.
make: 1254-004 The error code from the last command is 1.


I have just changed the path  in the makefile where JASPER was residing. 
bash-3.2$ ls -l /oprn/model/WRFLIB/jasper-1.900.1/src/libjasper/include
total 96
-rw-r--r--    1 model    staff         17493 Apr 17 2009  Makefile
-rw-rw-r--    1 model    staff          2996 Jan 20 2007  Makefile.am
-rw-rw-r--    1 model    staff         17612 Jan 20 2007  Makefile.in
drwxrwxrwx    2 model    staff          4096 Apr 17 2009  jasper
bash-3.2$

 
Can u pls suggest???????????????
geeta
 		 	   		  

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

Subject: Re: [rt.rap.ucar.edu #65573] compilation of g2clib for METv4.1
From: John Halley Gotway
Time: Wed Feb 26 11:25:36 2014

Geeta,

The GRIB2 C-library is required if compiling GRIB2 support.  If you
don't plan to use GRIB2 files in MET, you could disable it's
compilation by setting "WITH_GRIB2 = 0" in user_defs.mk.

If you would like to compile GRIB2 support, you'll need to compile the
GRIB2C library.  However, that library depends on 3 other libraries,
jasper, libpng, and zlib.  If those are not already on your
system, you'll need to download/compile them first.  Links to them can
be found on this page:
    http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2/


Once you compile the 3 dependent libraries, compiling the GRIB2C
library is pretty easy:

   # Get the GRIB2C library
   wget http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2/g2clib-1.4.0.tar

   # Untar it
   tar -xvf g2clib-1.4.0.tar
   cd g2clib-1.4.0

   # Open up and edit the "makefile"
   # Set INC =-I/path/for/include/files
   # Please make sure to include all idirectories where include files
   #     can be found (jasper/*.h and png.h pngconf.h zconf.h zlib.h)

   # Compile it
   make

Thanks,
John


On 02/26/2014 12:17 AM, Geeta Geeta via RT wrote:
>
> Wed Feb 26 00:17:42 2014: Request 65573 was acted upon.
> Transaction: Ticket created by geeta124 at hotmail.com
>         Queue: met_help
>       Subject: compilation of g2clib for METv4.1
>         Owner: Nobody
>    Requestors: geeta124 at hotmail.com
>        Status: new
>   Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=65573 >
>
>
> Dear John,
> U had suggested to me to go for MEtv4.1 I was trying to build that
and I am now stuck at g2clib.
>
> This is the error I have got while installing g2clib.
> bash-3.2$ make
>          cc -c -I/oprn/model/WRFLIB/jasper-
1.900.1/src/libjasper/include -DUSE_JPEG2000 -DUSE_PNG
gridtemplates.c"gridtemplates.h", line 34.9: 1506-260 (S) Octal
integer constant 08 is not valid.
> "gridtemplates.h", line 35.12: 1506-260 (S) Octal integer constant
08 is not valid.
> "gridtemplates.h", line 37.9: 1506-260 (S) Octal integer constant 08
is not valid.
> "gridtemplates.h", line 61.26: 1506-260 (S) Octal integer constant
08 is not valid.
> "gridtemplates.h", line 5.1: 1506-046 (S) Syntax error.
> make: 1254-004 The error code from the last command is 1.
>
>
> I have just changed the path  in the makefile where JASPER was
residing.
> bash-3.2$ ls -l /oprn/model/WRFLIB/jasper-
1.900.1/src/libjasper/include
> total 96
> -rw-r--r--    1 model    staff         17493 Apr 17 2009  Makefile
> -rw-rw-r--    1 model    staff          2996 Jan 20 2007
Makefile.am
> -rw-rw-r--    1 model    staff         17612 Jan 20 2007
Makefile.in
> drwxrwxrwx    2 model    staff          4096 Apr 17 2009  jasper
> bash-3.2$
>
>
> Can u pls suggest???????????????
> geeta
>
>

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


More information about the Met_help mailing list