# Tutorials make me confused: compile OpenMC with libmesh and DAGMC

**URL:** https://openmc.discourse.group/t/tutorials-make-me-confused-compile-openmc-with-libmesh-and-dagmc/1579
**Category:** User Support
**Created:** [December 1, 2021, 4:26pm UTC](https://openmc.discourse.group/t/tutorials-make-me-confused-compile-openmc-with-libmesh-and-dagmc/1579 "2021-12-01T16:26:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lz152](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/lz152/32/1547_2.png) [@lz152](https://openmc.discourse.group/u/lz152)
#### Post date: [December 1, 2021, 4:26pm UTC](https://openmc.discourse.group/t/tutorials-make-me-confused-compile-openmc-with-libmesh-and-dagmc/1579/1 "2021-12-01T16:26:18Z")

</div>

Hi! the openmc family,

I was confused when compiled the openmc with libmesh compiled done and dagmc compiled done. I try to follow the tutorial to compiled the openmc, it occured some unknown ERRORs when compiled openmc with MPI.  
I have difficulties to understand the underlying logic and implementation of Cmake.  
I also confused with the required libraries and optional libraries after compiling libmesh and dagmc successfully.  
Could you give me some instructions，tips to get out？  
I’d appreciate any information you could give me.

ZhuangLi

---

<div class="post-metadata">

### Author: ![Shimwell](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/shimwell/32/3876_2.png) [@Shimwell](https://openmc.discourse.group/u/Shimwell)
#### Post date: [December 2, 2021, 2:32pm UTC](https://openmc.discourse.group/t/tutorials-make-me-confused-compile-openmc-with-libmesh-and-dagmc/1579/2 "2021-12-02T14:32:26Z")

</div>

Hi lz152

We happen to be working on adding libmesh to the docker image. There is an [open PR](https://github.com/openmc-dev/openmc/pull/1887) for this feature and if I was better at git submodules then I think it would be done.

In the mean time perhaps this docker file is useful

[openmc-1/Dockerfile at adding\_libmesh\_to\_docker · shimwell/openmc-1 (github.com)](https://github.com/shimwell/openmc-1/blob/adding_libmesh_to_docker/Dockerfile)

---

<div class="post-metadata">

### Author: ![lz152](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/lz152/32/1547_2.png) [@lz152](https://openmc.discourse.group/u/lz152)
#### Post date: [December 5, 2021, 1:15pm UTC](https://openmc.discourse.group/t/tutorials-make-me-confused-compile-openmc-with-libmesh-and-dagmc/1579/3 "2021-12-05T13:15:59Z")

</div>

hallo，Shimwell,  
Thank you for your reply.  
I would try to do that

lz152
