# Unofficial ROOT 6.26.10 package for Ubuntu 22.04

**URL:** <https://root-forum.cern.ch/t/unofficial-root-6-26-10-package-for-ubuntu-22-04/52773>\
**Category:** News\
**Created:** [December 15, 2022, 1:35pm UTC](https://root-forum.cern.ch/t/unofficial-root-6-26-10-package-for-ubuntu-22-04/52773 "2022-12-15T13:35:35Z")\
**Posts on this page:** 18\
**Page:** 1

<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:** [December 15, 2022, 1:35pm UTC](https://root-forum.cern.ch/t/unofficial-root-6-26-10-package-for-ubuntu-22-04/52773/1 "2022-12-15T13:35:35Z")

</div>

I built a ROOT 6.26.10 debian package for Ubuntu 22.04. It can be downloaded from here: [https://cern.ch/amadio/root/root\_6.26.10\_ubuntu22\_amd64.deb](https://cern.ch/amadio/root/root_6.26.10_ubuntu22_amd64.deb). Please note that this is an unofficial package, but should be ok for most people to use. If you are having trouble compiling ROOT, give it a try. After you download it, you can install it with

```auto
$ sudo apt install ./root_6.26_10_ubuntu22_amd64.deb

```

Please let me know in the comments if I should do this also for future releases. Happy hacking with ROOT!

If you are on Ubuntu 22.04 in WSL on Windows, try instead this package: [https://cern.ch/amadio/root/root\_6.26.10\_ubuntu22\_nocxxmodules\_amd64.deb](https://cern.ch/amadio/root/root_6.26.10_ubuntu22_nocxxmodules_amd64.deb). It seems that the `runtime_cxxmodules` feature has some trouble working under WSL.

---

<div class="post-metadata">

**Author:** ![blessed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/blessed/32/32314_2.png) [@blessed](https://root-forum.cern.ch/u/blessed)\
**Post date:** [December 15, 2022, 2:35pm UTC](https://root-forum.cern.ch/t/unofficial-root-6-26-10-package-for-ubuntu-22-04/52773/2 "2022-12-15T14:35:59Z")

</div>

Good Morning dear friends from the ROOT forum

That is the root package (ROOT 6.26.10 ) I downloaded ten days ago and installed it using cmake and make. I guess that means that I installed it from the source, and not the binaries ( I really am very new to Unix, so I am learning a lot and correct me if I am wrong).

I need root to work within my Geant4 code, which uses some root headers. Yesterday, I was able to successfully add a path to the root headers in my CMakefiles.txt, and compile my Geant4 code.

While the cmake ran successfully (or so I think, because clearly it did not do a clean job), I faced compilation issues with make.

As I emailed earlier, I am facing issues with Rtypes.h, which calls some other root headers that call some functions that are not defined in the scope:

_QUOTE_(name) gives me error with the first underscore, and somewhere the right bracket after name is missing, which generates a syntax error.

Also, it is giving me an error that R\_\_likely is not declared in this scope.

These errors have occurred multiple times. Once these are resolved, I can hopefully find other errors, because the screen buffer has overflowed.

**Please note: if you write a code where you need to declare Rtypes.h in this new root version, you ought to be able to see the same errors that I see. That would be the fastest way to proceed, as I do not get back to my office (where I use my UNIX) until Monday.**

---

<div class="post-metadata">

**Author:** ![laurentChevalier](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/8797f3/32.png) [@laurentChevalier](https://root-forum.cern.ch/u/laurentChevalier)\
**Post date:** [December 15, 2022, 4:50pm UTC](https://root-forum.cern.ch/t/unofficial-root-6-26-10-package-for-ubuntu-22-04/52773/3 "2022-12-15T16:50:11Z")

</div>

Guilherme  
1000 thanks  
I am going to test  
laurent

---

<div class="post-metadata">

**Author:** ![blessed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/blessed/32/32314_2.png) [@blessed](https://root-forum.cern.ch/u/blessed)\
**Post date:** [December 15, 2022, 8:16pm UTC](https://root-forum.cern.ch/t/unofficial-root-6-26-10-package-for-ubuntu-22-04/52773/4 "2022-12-15T20:16:43Z")

</div>

A question for you dear friend: ALL the header files in the root/include/ folder have extension .h. There is currently no file with extension .hxx.

Why do you call files in your existing header files, with extension .hxx? That generates another long list of errors

---

<div class="post-metadata">

**Author:** ![zazbone](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/zazbone/32/29303_2.png) [@zazbone](https://root-forum.cern.ch/u/zazbone)\
**Post date:** [December 16, 2022, 10:40am UTC](https://root-forum.cern.ch/t/unofficial-root-6-26-10-package-for-ubuntu-22-04/52773/5 "2022-12-16T10:40:22Z")

</div>

Hi,

First of all, thanks for this package, it’s a much more convenient solution than conda or a binary installation !  
I’ve just tested it on a small personal cmake project, and it seems to work fine. I’m just asking if it works with python ? I’ve tried to import ROOT as usual in script, but it failed. Is it possible to make root accessible for the python system installation of the system ?

Cheers

---

<div class="post-metadata">

**Author:** ![A\_Kumar](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/c67d28/32.png) [@A\_Kumar](https://root-forum.cern.ch/u/A_Kumar)\
**Post date:** [December 16, 2022, 11:33am UTC](https://root-forum.cern.ch/t/unofficial-root-6-26-10-package-for-ubuntu-22-04/52773/6 "2022-12-16T11:33:57Z")

</div>

Dear,  
Thank you for your email, and for sharing this information, It will be highly helpful for researchers.

---

<div class="post-metadata">

**Author:** ![tauon](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/898d66/32.png) [@tauon](https://root-forum.cern.ch/u/tauon)\
**Post date:** [December 16, 2022, 12:01pm UTC](https://root-forum.cern.ch/t/unofficial-root-6-26-10-package-for-ubuntu-22-04/52773/7 "2022-12-16T12:01:20Z")

</div>

Hi @zazbone

it depends on the build flags which @amadio set in his script. I use `-Dpyroot=ON` in my [slackbuild](https://slackbuilds.org/slackbuilds/15.0/academic/root/root.SlackBuild). Also, `PYTHONPATH` might be not set correctly, even if `-Dpyroot` is `ON`.

---

<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:** [December 16, 2022, 12:25pm UTC](https://root-forum.cern.ch/t/unofficial-root-6-26-10-package-for-ubuntu-22-04/52773/8 "2022-12-16T12:25:26Z")

</div>

The package does install python bindings (PyROOT) for python3, make sure that you use that and you should be able to just import ROOT without any problems. Also check your setup for old `source thisroot.sh` from `.bashrc` etc, you could have another ROOT interfering with your environment. Finally, try installing `python-is-python3` as well. Cheers,

---

<div class="post-metadata">

**Author:** ![zazbone](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/zazbone/32/29303_2.png) [@zazbone](https://root-forum.cern.ch/u/zazbone)\
**Post date:** [December 16, 2022, 1:02pm UTC](https://root-forum.cern.ch/t/unofficial-root-6-26-10-package-for-ubuntu-22-04/52773/9 "2022-12-16T13:02:50Z")

</div>

Ok well … my previous root installation was under a conda env. I thought it would not interfere as long as it was disabled, but it is obviously not the case, I removed the env and reboot and pyroot works perfectly 😅  
It also works very well in notebooks. Thanks, I will provide you feedback if i had any others problem.

Thanks.

---

<div class="post-metadata">

**Author:** ![churamani](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/b3f665/32.png) [@churamani](https://root-forum.cern.ch/u/churamani)\
**Post date:** [December 16, 2022, 1:20pm UTC](https://root-forum.cern.ch/t/unofficial-root-6-26-10-package-for-ubuntu-22-04/52773/10 "2022-12-16T13:20:20Z")

</div>

could you pls unsubscribe me from this email list

Thank You,

---

<div class="post-metadata">

**Author:** ![tauon](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/898d66/32.png) [@tauon](https://root-forum.cern.ch/u/tauon)\
**Post date:** [December 16, 2022, 1:43pm UTC](https://root-forum.cern.ch/t/unofficial-root-6-26-10-package-for-ubuntu-22-04/52773/11 "2022-12-16T13:43:41Z")

</div>

@churamani you should click a link at the bottom of the email. It has a form of `https://root-forum.cern.ch/email/unsubscribe/${HASH}`

---

<div class="post-metadata">

**Author:** ![sarthchoudhary](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/sarthchoudhary/32/26105_2.png) [@sarthchoudhary](https://root-forum.cern.ch/u/sarthchoudhary)\
**Post date:** [December 19, 2022, 2:53pm UTC](https://root-forum.cern.ch/t/unofficial-root-6-26-10-package-for-ubuntu-22-04/52773/12 "2022-12-19T14:53:41Z")

</div>

If I may ask, what is the advantage of installing ROOT from sources code rather than the conda package manager.

---

<div class="post-metadata">

**Author:** ![tauon](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/898d66/32.png) [@tauon](https://root-forum.cern.ch/u/tauon)\
**Post date:** [December 19, 2022, 4:08pm UTC](https://root-forum.cern.ch/t/unofficial-root-6-26-10-package-for-ubuntu-22-04/52773/13 "2022-12-19T16:08:25Z")

</div>

You can configure ROOT as you want.

---

<div class="post-metadata">

**Author:** ![luismoralesphysics](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/luismoralesphysics/32/26664_2.png) [@luismoralesphysics](https://root-forum.cern.ch/u/luismoralesphysics)\
**Post date:** [December 19, 2022, 4:47pm UTC](https://root-forum.cern.ch/t/unofficial-root-6-26-10-package-for-ubuntu-22-04/52773/14 "2022-12-19T16:47:06Z")

</div>

If for example you wanted to use SQL server(not mysql)or Other libraries that aren’t installed by default. I have done this at the company(not academic) that I work for. ROOTs root binary is such an amazing tool to visualize and fit data.

Luis Morales

---

<div class="post-metadata">

**Author:** ![blessed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/blessed/32/32314_2.png) [@blessed](https://root-forum.cern.ch/u/blessed)\
**Post date:** [December 19, 2022, 5:08pm UTC](https://root-forum.cern.ch/t/unofficial-root-6-26-10-package-for-ubuntu-22-04/52773/15 "2022-12-19T17:08:32Z")

</div>

Good Morning,

Its Monday and i ran the code again to reproduce the errors with root headers. Some of them are here:  
^ ~~~~~~~~~~~~~~~~  
/home/neera/root/include/TBranch.h:291:4: note: in expansion of macro ‘ClassDef’  
ClassDef(TBranch, 13); // Branch descriptor  
^ ~~~~~~~  
/home/neera/root/include/Rtypes.h:281:67: error: expected primary-expression before ‘)’ token  
::ROOT::Internal::HasConsistentHashMember(_QUOTE_(name)) ||   
^  
/home/neera/root/include/Rtypes.h:300:4: note: in expansion of macro ‘_ClassDefBase_’  
_ClassDefBase_(name,id, virtual\_keyword, overrd)   
^ ~~~~~~~~~~~~~  
/home/neera/root/include/Rtypes.h:330:4: note: in expansion of macro ‘_ClassDefOutline_’  
_ClassDefOutline_(name,id,override)   
^ ~~~~~~~~~~~~~~~~  
/home/neera/root/include/TDirectory.h:299:4: note: in expansion of macro ‘ClassDefOverride’  
ClassDefOverride(TDirectory,5) //Describe directory structure in memory  
^ ~~~~~~~~~~~~~~~  
/home/neera/root/include/Rtypes.h:281:55: error: ‘_QUOTE_’ was not declared in this scope  
::ROOT::Internal::HasConsistentHashMember(_QUOTE_(name)) ||   
^  
/home/neera/root/include/Rtypes.h:300:4: note: in expansion of macro ‘_ClassDefBase_’  
_ClassDefBase_(name,id, virtual\_keyword, overrd)   
^ ~~~~~~~~~~~~~  
/home/neera/root/include/Rtypes.h:330:4: note: in expansion of macro ‘_ClassDefOutline_’  
_ClassDefOutline_(name,id,override)   
^ ~~~~~~~~~~~~~~~~  
/home/neera/root/include/TDirectory.h:299:4: note: in expansion of macro ‘ClassDefOverride’  
ClassDefOverride(TDirectory,5) //Describe directory structure in memory  
^ ~~~~~~~~~~~~~~~  
/home/neera/root/include/TDatime.h: In member function ‘virtual Bool\_t TDatime::CheckTObjectHashConsistency() const’:  
/home/neera/root/include/Rtypes.h:275:11: error: ‘R\_\_likely’ was not declared in this scope  
if (R\_\_likely(recurseBlocker \>= 2)) {   
^  
/home/neera/root/include/Rtypes.h:300:4: note: in expansion of macro ‘_ClassDefBase_’  
_ClassDefBase_(name,id, virtual\_keyword, overrd)   
^ ~~~~~~~~~~~~~  
/home/neera/root/include/Rtypes.h:326:4: note: in expansion of macro ‘_ClassDefOutline_’  
_ClassDefOutline_(name,id,virtual,)   
^ ~~~~~~~~~~~~~~~~  
/home/neera/root/include/TDatime.h:95:4: note: in expansion of macro ‘ClassDef’  
ClassDef(TDatime,1) //Date and time 950130 124559  
^ ~~~~~~~  
/home/neera/root/include/Rtypes.h:281:67: error: expected primary-expression before ‘)’ token  
::ROOT::Internal::HasConsistentHashMember(_QUOTE_(name)) ||   
^  
^ ~~~~~~~  
/home/neera/root/include/TDirectoryFile.h: In member function ‘virtual Bool\_t TDirectoryFile::CheckTObjectHashConsistency() const’:  
/home/neera/root/include/Rtypes.h:275:11: error: ‘R\_\_likely’ was not declared in this scope  
if (R\_\_likely(recurseBlocker \>= 2)) { \

/home/neera/root/include/TUrl.h:98:4: note: in expansion of macro ‘ClassDef’  
ClassDef(TUrl,1) //Represents an URL  
^ ~~~~~~~  
In file included from include/RunAction.hh:42:0,  
from src/RunAction.cc:40:  
/home/neera/root/include/TTree.h: In destructor ‘virtual TTreeFriendLeafIter::~TTreeFriendLeafIter()’:  
/home/neera/root/include/TTree.h:678:29: error: ‘SafeDelete’ was not declared in this scope  
~TTreeFriendLeafIter() { SafeDelete(fLeafIter); SafeDelete(fTreeIter); }  
^ ~~~~~~~~~  
/home/neera/root/include/TTree.h:678:29: note: suggested alternative: ‘kCanDelete’  
~TTreeFriendLeafIter() { SafeDelete(fLeafIter); SafeDelete(fTreeIter); }

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [December 21, 2022, 3:45pm UTC](https://root-forum.cern.ch/t/unofficial-root-6-26-10-package-for-ubuntu-22-04/52773/16 "2022-12-21T15:45:10Z")

</div>

Those errors are only seen in the case you describe. This usually indicates that there is something ‘odd/unexpected’ about the environment (quite often a much older version of ROOT is found and unintentionally used during the compilation). To get the bottom of this, we need to make a few experiment.

First we need to get (one of) the command line that fails. To do, if you use make to build, do:

```auto
make VERBOSE=true |& tee make.log.txt

```

The last line before the first error is the command line we are looking for.

After looking at it (please share it here) for obvious misconfiguration, we can adjust it to switch from compiling to running just the preprocessor. From the preprocessor output, we should be able to get where thing go sour.

---

<div class="post-metadata">

**Author:** ![blessed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/blessed/32/32314_2.png) [@blessed](https://root-forum.cern.ch/u/blessed)\
**Post date:** [December 22, 2022, 7:43pm UTC](https://root-forum.cern.ch/t/unofficial-root-6-26-10-package-for-ubuntu-22-04/52773/17 "2022-12-22T19:43:51Z")

</div>

Thanks. Will be able to check it after Christmas and provide you an update of what I see. I will copy the exact same command line and hopefully, be able to track the compilation.

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [January 5, 2023, 7:44pm UTC](https://root-forum.cern.ch/t/unofficial-root-6-26-10-package-for-ubuntu-22-04/52773/18 "2023-01-05T19:44:19Z")

</div>

Closed on January 5, 2023, 7:44pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
