gnudatalanguage / gdl

GDL - GNU Data Language
GNU General Public License v2.0
276 stars 61 forks source link

GDL 1.04 on Ubuntu 24.04: HDF5 functions not available #1871

Closed liamgumley closed 1 month ago

liamgumley commented 2 months ago

I'm running GDL 1.04 on Ubuntu 24.04, installed from the package available at https://packages.ubuntu.com/search?keywords=gnudatalanguage

The HDF5 library is not available as shown below:

GDL - GNU Data Language, Version 1.0.4

GDL> $ls data GATMO_j01_d20240807_t0929096_e0936053_b34817_c20240807093848329385_cspp_dev.h5 SATMS_j01_d20240807_t0929096_e0936053_b34817_c20240807093848313260_cspp_dev.h5 NPR-MIRS-SND_v11r8_n19_s202408071410410_e202408071418304_c202408071432510.nc GDL> file = 'data/GATMO_j01_d20240807_t0929096_e0936053_b34817_c20240807093848329385_cspp_dev.h5' GDL> file_id = h5f_open(file) % Ambiguous: Variable is undefined: H5F_OPEN or: Function not found: H5F_OPEN % Execution halted at: $MAIN$
GDL> exit

Do I need to install HDF5 separately with apt-get? What am I missing here?

slayoo commented 2 months ago

Thank you for reporting, @liamgumley!

It seems that despite depending on libhdf5-dev (https://salsa.debian.org/debian-astro-team/gnudatalanguage/-/blob/master/debian/control?ref_type=heads#L18), Debian package does not build HDF5 support in GDL (https://salsa.debian.org/debian-astro-team/gnudatalanguage/-/blob/master/debian/rules?ref_type=heads#L27)

@olebole, is it something related to this: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=915207

  • Temporarily disable HDF-5 support. Closes: #915207
alaingdl commented 2 months ago

The bad new : yes, it seems that this package is compile without HDF5. (I have the same situation with the older package on U2404 but never use this one). You can check calling GDL_STATUS in GDL

The good new : you can compile by yourself GDL in few minutes using the script in scripts/build_gdl.sh within HD5 support. But you need to add packages during the fist step (being sudo)

Any feedback on HDF5 is welcome !

liamgumley commented 2 months ago

Thanks for the update.

I switched to installing the Fedora package in a Podman container. HDF5 is supported.

From: Alain @.> Date: Wednesday, August 7, 2024 at 12:21 PM To: gnudatalanguage/gdl @.> Cc: Liam Gumley @.>, Mention @.> Subject: Re: [gnudatalanguage/gdl] GDL 1.04 on Ubuntu 24.04: HDF5 functions not available (Issue #1871)

The bad new : yes, it seems that this package is compile without HDF5. (I have the same situation with the older package on U2404 but never use this one). You can check calling GDL_STATUS in GDL

The good new : you can compile by yourself GDL in few minutes using the script in scripts/build_gdl.sh within HD5 support. But you need to add packages during the fist step (being sudo)

Any feedback on HDF5 is welcome !

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/gnudatalanguage/gdl/issues/1871*issuecomment-2273958545__;Iw!!Mak6IKo!LUQAfcGC0MdJCCkMQnQxWAl865_qG9IHIFRCO_7MpZUtmAt7pLZfElkWETSWPdGA1BMGoEg0lmuIJ8ePrFonSAf_FijOars$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ACUJWMK3JLSPOOUKAOR7O4DZQJJRRAVCNFSM6AAAAABMEYQCA2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZTHE2TQNJUGU__;!!Mak6IKo!LUQAfcGC0MdJCCkMQnQxWAl865_qG9IHIFRCO_7MpZUtmAt7pLZfElkWETSWPdGA1BMGoEg0lmuIJ8ePrFonSAf_4rrCdHI$. You are receiving this because you were mentioned.Message ID: @.***>

olebole commented 2 months ago

HDF5 support in Debian got disabled in 2018 as a consequence of debian#915207. However, after this I forgot to re-enable it later, sorry. I'll investigate this and upload a new version.

slayoo commented 2 months ago

Thanks @olebole !

olebole commented 2 months ago

I now uploaded version 1.0.6 with HDF5 support to Debian unstable.

liamgumley commented 2 months ago

Thanks.

From: Ole Streicher @.> Date: Thursday, August 8, 2024 at 10:03 AM To: gnudatalanguage/gdl @.> Cc: Liam Gumley @.>, Mention @.> Subject: Re: [gnudatalanguage/gdl] GDL 1.04 on Ubuntu 24.04: HDF5 functions not available (Issue #1871)

I now uploaded version 1.0.6 with HDF5 support to Debian unstable.

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/gnudatalanguage/gdl/issues/1871*issuecomment-2276052116__;Iw!!Mak6IKo!PrWLU0iBNgqGhD-o41Bn1QkPvlmA34RJ7a177ySbf9BRJzIEXZ9qeU4FQaEBZ2F29WpsSuBc2WFxj8ZW9njIRiYQyx-E6U0$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ACUJWMLDMMECF54PPETVZIDZQOCDHAVCNFSM6AAAAABMEYQCA2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZWGA2TEMJRGY__;!!Mak6IKo!PrWLU0iBNgqGhD-o41Bn1QkPvlmA34RJ7a177ySbf9BRJzIEXZ9qeU4FQaEBZ2F29WpsSuBc2WFxj8ZW9njIRiYQKU0mFzA$. You are receiving this because you were mentioned.Message ID: @.***>