cnvgrib gribmaster and other issues with converting grib2 to 1
Nils Dorband
dorband at GOOGLEMAIL.COM
Wed Jul 22 03:03:30 EDT 2009
Hi,
>
> 1) I tried compiling cnvgrib new version from
> http://www.nco.ncep.noaa.gov/pmb/codegs/GRIB2/, which gives me error.
>
> "gfortran -o cnvgrib gds2gdt.o pds2pdt.o pds2pdtens.o cnvgrib.o cnv12.o
> cnv22.o cnv21.o gdt2gds.o makepds.o putgbexn.o makepdsens.o setbit.o
> -L/usr/lib64/g2lib-1.1.9 -lg2 -L/usr/lib64/w3lib-1.7 -lw3
> -L/usr/lib64/jasper-1.900.1/src/libjasper/.libs -ljasper -lpng -lz
> /usr/bin/ld: skipping incompatible /usr/lib64/g2lib-1.1.9/libg2.a when
> searching for -lg2
> /usr/bin/ld: skipping incompatible
> /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../lib64/libg2.a when
> searching for -lg2
> /usr/bin/ld: skipping incompatible /usr/lib/../lib64/libg2.a when searching
> for -lg2
> /usr/bin/ld: skipping incompatible /usr/lib64/libg2.a when searching for
> -lg2
> /usr/bin/ld: skipping incompatible /usr/lib64/libg2.a when searching for
> -lg2
> /usr/bin/ld: cannot find -lg2
> collect2: ld returned 1 exit status
> make: *** [cnvgrib] Error 1"
>
>
I was able to resolve this incompatibility by changing
DEFS=-DLINUX
to
DEFS=-DLINUX -D__64BIT__
in the Makefile of g2lib.
Cheers,
Nils
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090722/390ae592/attachment.html
More information about the gradsusr
mailing list