# Compiling with ROOT (issue specific to lxplus default root installation)

**URL:** <https://root-forum.cern.ch/t/compiling-with-root-issue-specific-to-lxplus-default-root-installation/64943>\
**Category:** Newbie\
**Created:** [July 13, 2026, 11:14am UTC](https://root-forum.cern.ch/t/compiling-with-root-issue-specific-to-lxplus-default-root-installation/64943 "2026-07-13T11:14:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lost\_soul\_519](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/lost_soul_519/32/30431_2.png) [@lost\_soul\_519](https://root-forum.cern.ch/u/lost_soul_519)\
**Post date:** [July 13, 2026, 11:14am UTC](https://root-forum.cern.ch/t/compiling-with-root-issue-specific-to-lxplus-default-root-installation/64943/1 "2026-07-13T11:14:46Z")

</div>

Hi all,

Quick question on some issues with compiling ROOT programs.  
Consider the simple `test.cxx`.

```auto
#include <ROOT/RDataFrame.hxx>
#include <iostream>
int main()
{
	auto rdf = ROOT::RDataFrame(10);
	auto df = rdf.Define("x", "rdfentry_");

	auto n = rdf.Count();
	std::cout << "Entries :" << n.GetValue() << std::endl;
}

```

I previously used to be able to compile this as

```auto
g++ -g -Wall -Wextra -Wpedantic -o "test" "test.cxx" $(root-config --cflags --libs)

```

Currently on `lxplus` (using default installation of root) trying to do the same gives me an error.

```auto
g++ -g -Wall -Wextra -Wpedantic -o "test" "test.cxx" $(root-config --cflags --libs)
In file included from /usr/include/root/ROOT/RDF/RInterface.hxx:15,
                 from /usr/include/root/ROOT/RDataFrame.hxx:20,
                 from test.cxx:1:
/usr/include/root/ROOT/RDF/ActionHelpers.hxx:37:10: fatal error: ROOT/RHist.hxx: No such file or directory
   37 | #include <ROOT/RHist.hxx>
      | ^ ~~~~~~~~~~~~~~~
compilation terminated.

```

My local installation seems to have the same root version and works without any issues there?  
And sourcing from `/cvmfs/sft.cern.ch/lcg/app/releases/ROOT/6.40.02/x86_64-almalinux9.8-gcc115-opt/bin/thisroot.sh` seems to fix it as well?

Just wanted to check default installation of `root` on `lxplus` is now broken? Or am I just missing some flags during my compilation? Or something else?  
Thank you.

* * *

_ROOT Version:_ 6.40.02  
_Platform:_ linuxx8664gcc  
_Compiler:_ g++ (GCC) 11.5.0 20240719 (Red Hat 11.5.0-14) std201703

* * *

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [July 13, 2026, 12:58pm UTC](https://root-forum.cern.ch/t/compiling-with-root-issue-specific-to-lxplus-default-root-installation/64943/2 "2026-07-13T12:58:30Z")

</div>

Hi, thanks for reporting, we are looking into it.

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [July 13, 2026, 1:16pm UTC](https://root-forum.cern.ch/t/compiling-with-root-issue-specific-to-lxplus-default-root-installation/64943/3 "2026-07-13T13:16:22Z")

</div>

A ticket has just been open in the LXPLUS Service portal. We’ll keep you informed.
