Compilation on Linux - RConfig.h missing error

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:


root [0] .L hsimple.C+
Info in TUnixSystem::ACLiC: creating shared library /home/tux/Programming/root-6.16.00/tutorials/./
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


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…


That is strange, that line should be #include <ROOT/RConfig.h>. Did you change root’s headers by any chance (i.e. with a sed command)?

Hi Amadio,

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

#include </RConfig.h>


#include <ROOT/RConfig.h>

as you suggested and… it works!! :wink:

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

Thx a lot !