# Compilation on Linux - RConfig.h missing error

**URL:** <https://root-forum.cern.ch/t/compilation-on-linux-rconfig-h-missing-error/34370>\
**Category:** Newbie\
**Created:** [June 1, 2019, 2:09pm UTC](https://root-forum.cern.ch/t/compilation-on-linux-rconfig-h-missing-error/34370 "2019-06-01T14:09:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![quentinduc33](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/quentinduc33/32/31867_2.png) [@quentinduc33](https://root-forum.cern.ch/u/quentinduc33)\
**Post date:** [June 1, 2019, 2:09pm UTC](https://root-forum.cern.ch/t/compilation-on-linux-rconfig-h-missing-error/34370/1 "2019-06-01T14:09:51Z")

</div>

Hi there,

I got an UBUNTU 16.04 LTS distribution. I installed ROOT on it.  
When I am running an example ( **.x hsimple.C** for example) : no problem, it’s working.

But when I try to compile ( **.L hsimple.C+** ) here is what I get from the console:

> Blockquote

root [0] .L hsimple.C+  
Info in TUnixSystem::ACLiC: creating shared library /home/tux/Programming/root-6.16.00/tutorials/./hsimple\_C.so  
In file included from input\_line\_3:1:  
/home/tux/Programming/root-6.16.00/rootbuild/include/RtypesCore.h:23:10: fatal error: ‘/RConfig.h’ file not found  
#include \</RConfig.h\>  
^ ~~~~~~~~~~~

\*\*\* Break \*\*\* segmentation violation

> Blockquote

What is even stranger is that I can find myself the RConfig.h file which is located in /include

Any guess ?

Thx a lot for your support…

Quentin

---

<div class="post-metadata">

**Author:** ![amadio](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/amadio/32/12562_2.png) [@amadio](https://root-forum.cern.ch/u/amadio)\
**Post date:** [June 1, 2019, 6:46pm UTC](https://root-forum.cern.ch/t/compilation-on-linux-rconfig-h-missing-error/34370/2 "2019-06-01T18:46:19Z")

</div>

That is strange, that line should be [`#include <ROOT/RConfig.h>`](https://github.com/root-project/root/blob/v6-16-00-patches/core/base/inc/RtypesCore.h#L23). Did you change root’s headers by any chance (i.e. with a `sed` command)?

---

<div class="post-metadata">

**Author:** ![quentinduc33](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/quentinduc33/32/31867_2.png) [@quentinduc33](https://root-forum.cern.ch/u/quentinduc33)\
**Post date:** [June 3, 2019, 4:12pm UTC](https://root-forum.cern.ch/t/compilation-on-linux-rconfig-h-missing-error/34370/3 "2019-06-03T16:12:51Z")

</div>

Hi Amadio,

In the “RtypesCore.h” file, I just replaced

#include \</RConfig.h\>

by

#include \<ROOT/RConfig.h\>

as you suggested and… it works!! 😉

Still don’t understand why this .h file did not contain the “ROOT” part but whatever…this is strange indeed…

Thx a lot !
