I'm trying to compile degrib on a typical Ubuntu 12.04 LTS Server. However, I get an error "undefined reference to gzopen64" which appears to be common when compiling degrib. Do you have any suggestions?

I see Salda got it working at How to convert GRIB-1 to GRIB-2?. Any suggestions will be much appreciated.

  • Which version of zlib do you have installed and could you post more details from the error? – Afr Jan 4 '13 at 19:23
  • Ubuntu 12.04 has zlib installed but degrib source code comes with zlib 1.1.4. The compilation error is shown at pastebin.com/SUsb2Gka – altoning Jan 4 '13 at 22:22
  • 1
    As stated in nws.noaa.gov/mdl/NDFD_grib2Decoder/compile.php?os=unix , I think the answer is ... cp /usr/lib/x86_64-linux-gnu/libz.a zlib/ ... I'll need to confirm this. – altoning Jan 4 '13 at 22:57
  • 1
    Could you add this as an "answer" (below) and mark that as "the answer". Thanks. – BradHards Jan 5 '13 at 0:45
  • 4
    This question appears to be off-topic because it is about a problem that the user solved, but didn't consider a proper answer (or didn't wish to publish an answer). – BradHards Nov 1 '13 at 9:31

Browse other questions tagged or ask your own question.