Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

closed as off-topic by BradHards, PolyGeo, Curlew, Fezter, MappaGnosis Nov 1 '13 at 13:03

  • This question does not appear to be about geographic information systems (GIS) within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

Which version of zlib do you have installed and could you post more details from the error? – 5chdn 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 – altoning Jan 4 '13 at 22:22
As stated in , 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
Could you add this as an "answer" (below) and mark that as "the answer". Thanks. – BradHards Jan 5 '13 at 0:45
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