# CODA hdf4 configure

**URL:** https://forum.atmospherictoolbox.org/t/coda-hdf4-configure/301
**Category:** CODA
**Created:** [March 29, 2021, 8:07pm UTC](https://forum.atmospherictoolbox.org/t/coda-hdf4-configure/301 "2021-03-29T20:07:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![tcsummers3](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/t/b5e925/32.png) [@tcsummers3](https://forum.atmospherictoolbox.org/u/tcsummers3)
#### Post date: [March 29, 2021, 8:07pm UTC](https://forum.atmospherictoolbox.org/t/coda-hdf4-configure/301/1 "2021-03-29T20:07:00Z")

</div>

Hello,

I have been trying to install coda onto a linux machine with hdf4 capability. I have HDF 4.2.15. The following link is the resulting configure.log file:

[configure.log](https://univalaska-my.sharepoint.com/:u:/g/personal/tcsummers3_alaska_edu/ES66vkAm-AlPuKVSQD9yqhIBIxfqeWipVqU738XUyLweFg?e=trPkUD)

Upon configuring, I the following error:

> ERROR: HDF4 libraries and/or header files are not found.  
> Try setting the HDF4\_LIB and HDF4\_INCLUDE environment variables to the  
> location of your HDF4 library and include files.

The command I am using is:

> ./configure --prefix=/home/tcsummers3/Documents/coda-2.21.2 --with-hdf4 HDF4\_LIB=/home/tcsummers3/Documents/hdf-4.2.15/lib/ HDF4\_INCLUDE=/home/tcsummers3/Documents/hdf-4.2.15/include/

Thanks for the help,  
Tyler

---

<div class="post-metadata">

### Author: ![sander.niemeijer](https://forum.atmospherictoolbox.org/user_avatar/forum.atmospherictoolbox.org/sander.niemeijer/32/5_2.png) [@sander.niemeijer](https://forum.atmospherictoolbox.org/u/sander.niemeijer)
#### Post date: [March 29, 2021, 8:26pm UTC](https://forum.atmospherictoolbox.org/t/coda-hdf4-configure/301/2 "2021-03-29T20:26:37Z")

</div>

Based on the configure.log I see two problems:

- you have build HDF4 with szip support, but szip cannot be found by CODA
- you seem to be missing the libhdf library (.a or .so) inside /home/tcsummers3/Documents/hdf-4.2.15/lib/

Note that trying to build against a static library version of HDF4 (which you seem to be doing) can be quite problematic due to the dependencies that HDF4 itself has (which you then have to make sure to make available as well). You are strongly advised to use a version of HDF4 from your OS package manager and use shared libraries for HDF4.

---

<div class="post-metadata">

### Author: ![tcsummers3](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/t/b5e925/32.png) [@tcsummers3](https://forum.atmospherictoolbox.org/u/tcsummers3)
#### Post date: [March 29, 2021, 8:34pm UTC](https://forum.atmospherictoolbox.org/t/coda-hdf4-configure/301/3 "2021-03-29T20:34:43Z")

</div>

I see, thank you for the quick reply.
