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

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
Which version of zlib do you have installed and could you post more details from the error? – donschoe Jan 4 at 19:23
Ubuntu 12.04 has zlib 1.2.3.4 installed but degrib source code comes with zlib 1.1.4. The compilation error is shown at pastebin.com/SUsb2Gka – altoning Jan 4 at 22:22
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 at 22:57
Confirmed. Just had to make a copy of the system's libz.a into the zlib directory when compiling (make) – altoning Jan 5 at 0:22
1  
Could you add this as an "answer" (below) and mark that as "the answer". Thanks. – BradHards Jan 5 at 0:45

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.