# Installation of a software dependent on root

**URL:** <https://root-forum.cern.ch/t/installation-of-a-software-dependent-on-root/46111>\
**Category:** General Chat\
**Tags:** installation\
**Created:** [August 1, 2021, 5:25am UTC](https://root-forum.cern.ch/t/installation-of-a-software-dependent-on-root/46111 "2021-08-01T05:25:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![niharika](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/n/e79b87/32.png) [@niharika](https://root-forum.cern.ch/u/niharika)\
**Post date:** [August 1, 2021, 5:25am UTC](https://root-forum.cern.ch/t/installation-of-a-software-dependent-on-root/46111/1 "2021-08-01T05:25:55Z")

</div>

Dear Experts,

I am trying to install a software (GammaCombo) locally in my computer. I have all the prerequisites needed to install this software. The “cmake” command works fine, but while doing “make install”, I am getting a very long error message and the installation fails. The screenshot is attached.

The error starts at:

 ![Screenshot from 2021-08-01 10-54-02](https://root-forum.cern.ch/uploads/default/original/3X/e/c/ec3d7a95f42f7cde4e433c7c068431331ecee374.png)

and ends at:

 ![Screenshot from 2021-08-01 10-54-13](https://root-forum.cern.ch/uploads/default/original/3X/9/3/93f8df5fece25829de9a7adf84abac7331434a30.png)

I would be grateful if anyone can help me to solve this issue.

Thanks in advance!

Regards,  
Niharika

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [August 1, 2021, 8:46am UTC](https://root-forum.cern.ch/t/installation-of-a-software-dependent-on-root/46111/2 "2021-08-01T08:46:53Z")

</div>

I guess there is a mismatch in the C++ language standard used by different libraries (i.e. GammaCombo and ROOT).

You need to make sure that the same “`-std=...`” C++ compiler flag is used when building all your software.

One of the first flags in the output of “`root-config --cflags`” is " `-std=...`" (and this tells you what C++ language standard your ROOT binaries were built with).

Looking at your first screenshot, I can see “HAS\_CPP17 - Success”. This may suggest that the GammaCombo is using “`-std=c++17`”.

You have two options then.

1. You can build ROOT using: `cmake -DCMAKE_CXX_STANDARD=17 ...`

2. You can build GammaCombo using the same standard as your existing ROOT is using. E.g., if ROOT is using “`c++=14`”, you could try to build GammaCombo using: `cmake -DCMAKE_CXX_STANDARD=14 ...`

---

<div class="post-metadata">

**Author:** ![niharika](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/n/e79b87/32.png) [@niharika](https://root-forum.cern.ch/u/niharika)\
**Post date:** [August 1, 2021, 9:45am UTC](https://root-forum.cern.ch/t/installation-of-a-software-dependent-on-root/46111/3 "2021-08-01T09:45:37Z")

</div>

Thank you very much.

I tried the second one and it worked.
