# Build ROOT with customized cling dir

**URL:** <https://root-forum.cern.ch/t/build-root-with-customized-cling-dir/36064>\
**Category:** Newbie\
**Tags:** build\
**Created:** [September 18, 2019, 4:00am UTC](https://root-forum.cern.ch/t/build-root-with-customized-cling-dir/36064 "2019-09-18T04:00:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcdlee](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mcdlee/32/19822_2.png) [@mcdlee](https://root-forum.cern.ch/u/mcdlee)\
**Post date:** [September 18, 2019, 4:00am UTC](https://root-forum.cern.ch/t/build-root-with-customized-cling-dir/36064/1 "2019-09-18T04:00:43Z")

</div>

I would like to install ROOT 6.14/06 on a Red Hat Enterprise Linux 7.3 x86\_64.

But I met the problem of cling similar with [this one](https://root-forum.cern.ch/t/remove-cling-warning/22090).

I’m not the admin, so I build cling at my home directory according to [the document](https://root.cern.ch/cling-build-instructions) smoothly.

However, I have no idea about how to define the customized cling directory when I build ROOT. I can’t find the option about cling dir in the ccmake GUI.

---

<div class="post-metadata">

**Author:** ![oshadura](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/oshadura/32/14460_2.png) [@oshadura](https://root-forum.cern.ch/u/oshadura)\
**Post date:** [September 18, 2019, 8:50am UTC](https://root-forum.cern.ch/t/build-root-with-customized-cling-dir/36064/2 "2019-09-18T08:50:23Z")

</div>

Hi,

I would like to ask you if your end goal to install ROOT? Correct?

If yes, then I recommend you to delete conflicting installation of cling and build ROOT from scratch (since cling will be build as a part of ROOT in this case with correct flags and etc.).

---

<div class="post-metadata">

**Author:** ![mcdlee](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mcdlee/32/19822_2.png) [@mcdlee](https://root-forum.cern.ch/u/mcdlee)\
**Post date:** [September 18, 2019, 8:55am UTC](https://root-forum.cern.ch/t/build-root-with-customized-cling-dir/36064/3 "2019-09-18T08:55:32Z")

</div>

Thanks for reply.

There is a limit that I can’t delete the conflicting cling because I am not the admin. I’ve installed a new cling according to [this document](https://root.cern.ch/cling-build-instructions). It will be great if I can build ROOT with given cling directory.

---

<div class="post-metadata">

**Author:** ![oshadura](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/oshadura/32/14460_2.png) [@oshadura](https://root-forum.cern.ch/u/oshadura)\
**Post date:** [September 18, 2019, 10:36am UTC](https://root-forum.cern.ch/t/build-root-with-customized-cling-dir/36064/4 "2019-09-18T10:36:21Z")

</div>

@mcdlee, sadly we don’t have option when you can provide external cling to build ROOT. I will open Jira issue to implement such option.

---

<div class="post-metadata">

**Author:** ![oshadura](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/oshadura/32/14460_2.png) [@oshadura](https://root-forum.cern.ch/u/oshadura)\
**Post date:** [September 18, 2019, 10:40am UTC](https://root-forum.cern.ch/t/build-root-with-customized-cling-dir/36064/5 "2019-09-18T10:40:36Z")

</div>

I opened JIRA issue: [https://sft.its.cern.ch/jira/browse/ROOT-10325](https://sft.its.cern.ch/jira/browse/ROOT-10325)

---

<div class="post-metadata">

**Author:** ![mcdlee](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mcdlee/32/19822_2.png) [@mcdlee](https://root-forum.cern.ch/u/mcdlee)\
**Post date:** [September 21, 2019, 1:38am UTC](https://root-forum.cern.ch/t/build-root-with-customized-cling-dir/36064/6 "2019-09-21T01:38:44Z")

</div>

Thanks a lot. I am looking forward the results.  
😃

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [September 23, 2019, 9:02am UTC](https://root-forum.cern.ch/t/build-root-with-customized-cling-dir/36064/7 "2019-09-23T09:02:42Z")

</div>

No wait - I believe we are not solving the actual problem here.

If I understand correctly you get a warning about “Possible C++ standard library mismatch”?

In that case your compiler was upgraded but ROOT wasn’t. What does `which g++` say for you, at a terminal, and what does `which root` say?

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [September 30, 2019, 9:33am UTC](https://root-forum.cern.ch/t/build-root-with-customized-cling-dir/36064/8 "2019-09-30T09:33:02Z")

</div>

@mcdlee could you reply, please?
