# installation of openmc in macosx el capitain

**URL:** <https://openmc.discourse.group/t/installation-of-openmc-in-macosx-el-capitain/219>\
**Category:** User Support\
**Created:** [June 20, 2016, 2:26am UTC](https://openmc.discourse.group/t/installation-of-openmc-in-macosx-el-capitain/219 "2016-06-20T02:26:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Otman](https://avatars.discourse-cdn.com/v4/letter/o/7c8e57/32.png) [@Otman](https://openmc.discourse.group/u/Otman)\
**Post date:** [June 20, 2016, 2:26am UTC](https://openmc.discourse.group/t/installation-of-openmc-in-macosx-el-capitain/219/1 "2016-06-20T02:26:51Z")

</div>

Hi,  
I have this error when I start the installation of the code openmc in my mac:

Make Error at CMakeLists.txt:74 (message):

Could not find HDF5

– Configuring incomplete, errors occurred!

See also “/Users/otman/Nuclear/openmc/build/CMakeFiles/CMakeOutput.log”.

---

<div class="post-metadata">

**Author:** ![Tarek\_El\_Bardouni1](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@Tarek\_El\_Bardouni1](https://openmc.discourse.group/u/Tarek_El_Bardouni1)\
**Post date:** [June 20, 2016, 11:58pm UTC](https://openmc.discourse.group/t/installation-of-openmc-in-macosx-el-capitain/219/2 "2016-06-20T23:58:42Z")

</div>

Salam Jay

You have here a script that helps you to install HDF5:

#!/bin/bash

export FC=gfortran-4.9

wget ftp://ftp.hdfgroup.org/HDF5/current/src/hdf5-\*.tar.gz

tar -xzvf hdf5-\*.tar.gz

cd hdf5-\*; ./configure --prefix=/opt/hdf5 --enable-fortran --enable-fortran2003

make

sudo make install

It will be installed in /opt/hdf5. Before compiling OpenMC you need to export this directory to environment variables:

export HDF5\_ROOT=/opt/hdf5

Tarek

---

<div class="post-metadata">

**Author:** ![Otman](https://avatars.discourse-cdn.com/v4/letter/o/7c8e57/32.png) [@Otman](https://openmc.discourse.group/u/Otman)\
**Post date:** [June 21, 2016, 2:50am UTC](https://openmc.discourse.group/t/installation-of-openmc-in-macosx-el-capitain/219/3 "2016-06-21T02:50:33Z")

</div>

Thank you Sir.

---

<div class="post-metadata">

**Author:** ![Amani\_Chaniour](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@Amani\_Chaniour](https://openmc.discourse.group/u/Amani_Chaniour)\
**Post date:** [November 8, 2016, 7:32pm UTC](https://openmc.discourse.group/t/installation-of-openmc-in-macosx-el-capitain/219/4 "2016-11-08T19:32:25Z")

</div>

Hi Otman,

Did it eventually work on your mac? I still have the same problem even after trying the script given by Tarek.

Amani
