# Error with HDF5 when installing into Anaconda environment from source

**URL:** <https://openmc.discourse.group/t/error-with-hdf5-when-installing-into-anaconda-environment-from-source/1572>\
**Category:** User Support\
**Created:** [November 29, 2021, 11:09am UTC](https://openmc.discourse.group/t/error-with-hdf5-when-installing-into-anaconda-environment-from-source/1572 "2021-11-29T11:09:23Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![gridley](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/gridley/32/1064_2.png) [@gridley](https://openmc.discourse.group/u/gridley)\
**Post date:** [December 7, 2021, 3:47pm UTC](https://openmc.discourse.group/t/error-with-hdf5-when-installing-into-anaconda-environment-from-source/1572/6 "2021-12-07T15:47:03Z")

</div>

Yes, you’ll certainly have to resolve this issue with not being able to compile a minimal HDF5 program before compiling OpenMC. But that is obvious.

This may help you out:

> [@CMake Error(could not find HDF5)](https://openmc.discourse.group/t/cmake-error-could-not-find-hdf5/850):
>
> Hi all, I recompiled OpenMC today and met the following error. -- The C compiler identification is GNU 9.3.0 -- The CXX compiler identification is GNU 9.3.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ --…

IMO it’s better to just not use conda if you don’t have a need to install multiple versions of stuff to the same system, although that is **not** a commonly held sentiment. If you’re on macbook, I would brew install hdf5 and the other dependencies.

If this continues to give you trouble, you may want to consider installing OpenMC using docker.

---

_[View the full topic](https://openmc.discourse.group/t/error-with-hdf5-when-installing-into-anaconda-environment-from-source/1572)._
