# Building Root 6.22.06 from source Ubuntu 20.04

**URL:** <https://root-forum.cern.ch/t/building-root-6-22-06-from-source-ubuntu-20-04/42798>\
**Category:** Newbie\
**Created:** [December 18, 2020, 5:13pm UTC](https://root-forum.cern.ch/t/building-root-6-22-06-from-source-ubuntu-20-04/42798 "2020-12-18T17:13:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![henrysp](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/3da27b/32.png) [@henrysp](https://root-forum.cern.ch/u/henrysp)\
**Post date:** [December 18, 2020, 5:13pm UTC](https://root-forum.cern.ch/t/building-root-6-22-06-from-source-ubuntu-20-04/42798/1 "2020-12-18T17:13:45Z")

</div>

Hello,  
I am trying to create ROOT from the source in Order to use Pyroot.  
While running cmake – build . --target install i get the following error:

> [90%] Building CXX object tmva/tmva/CMakeFiles/TMVA.dir/src/NeuralNet.cxx.o  
> In file included from /home/henry/root/root\_src/tree/tree/inc/TTree.h:36,  
> from /home/henry/root/root\_src/tmva/tmva/inc/TMVA/DataSet.h:47,  
> from /home/henry/root/root\_src/tmva/tmva/inc/TMVA/MethodBase.h:54,  
> from /home/henry/root/root\_src/tmva/tmva/inc/TMVA/NeuralNet.icc:15,  
> from /home/henry/root/root\_src/tmva/tmva/inc/TMVA/NeuralNet.h:1312,  
> from /home/henry/root/root\_src/tmva/tmva/src/NeuralNet.cxx:3:  
> /home/henry/root/root\_src/core/meta/inc/TClass.h:326:88: error: ‘TDictionary::EMemberSelection’ has not been declared  
> 326 | Members(std::atomic\<TListOfDataMembers\*\> &data, TDictionary::EMemberSelection selection, bool load);  
> | ^ ~~~~~~~~~~~~~~~
> 
> make[2]: \*\*\* [tmva/tmva/CMakeFiles/TMVA.dir/build.make:1083: tmva/tmva/CMakeFiles/TMVA.dir/src/NeuralNet.cxx.o] Fehler 1  
> make[1]: \*\*\* [CMakeFiles/Makefile2:26220: tmva/tmva/CMakeFiles/TMVA.dir/all] Fehler 2  
> make: \*\*\* [Makefile:171: all] Fehler 2

Has anyone an Idea how i can fix this?  
And would it be possible to use a prebuild version of ROOT in order to use Pyroot?

Thank you for your answers and your help.  
Henry

\_ROOT Version: 6.22.06  
_Platform:_ Ubuntu  
_Compiler:_ Not Provided

* * *

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [December 18, 2020, 5:16pm UTC](https://root-forum.cern.ch/t/building-root-6-22-06-from-source-ubuntu-20-04/42798/2 "2020-12-18T17:16:45Z")

</div>

Hi,  
I don’t know about the error (maybe @moneta or @Axel can tell what’s wrong) but you absolutely don’t have to build from source, see [https://root.cern/install](https://root.cern/install) for a few installation options. I would recommend to install ROOT as a conda package.

Cheers,  
Enrico

---

<div class="post-metadata">

**Author:** ![henrysp](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/3da27b/32.png) [@henrysp](https://root-forum.cern.ch/u/henrysp)\
**Post date:** [December 18, 2020, 5:50pm UTC](https://root-forum.cern.ch/t/building-root-6-22-06-from-source-ubuntu-20-04/42798/3 "2020-12-18T17:50:51Z")

</div>

Thank you very much for your fast reply.  
I’ll try the conda installation tomorrow and will reply again.  
I wish you a nice evening!  
Henry

---

<div class="post-metadata">

**Author:** ![henrysp](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/3da27b/32.png) [@henrysp](https://root-forum.cern.ch/u/henrysp)\
**Post date:** [December 19, 2020, 4:14pm UTC](https://root-forum.cern.ch/t/building-root-6-22-06-from-source-ubuntu-20-04/42798/4 "2020-12-19T16:14:14Z")

</div>

I’ve installed root using the conda package as you’ve recommended. My only problem now is that it seems like I’ve not the needed knowledge to use the PyROOT version of ROOT in PyCharm.  
I tried adding /…/lib/ROOT to the project Structur :

> ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!

Still looking for a way to fix this, would appreciate any kind of help.

Henry

---

<div class="post-metadata">

**Author:** ![henrysp](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/3da27b/32.png) [@henrysp](https://root-forum.cern.ch/u/henrysp)\
**Post date:** [December 19, 2020, 4:48pm UTC](https://root-forum.cern.ch/t/building-root-6-22-06-from-source-ubuntu-20-04/42798/5 "2020-12-19T16:48:28Z")

</div>

Hoping I’m not the only one who has a hard time with all this I’ll just post the solution.  
Maybe someone is happy about it.

> **[How to setup PyCharm with an anaconda virtual environment already created](https://medium.com/infinity-aka-aseem/how-to-setup-pycharm-with-an-anaconda-virtual-environment-already-created-fb927bacbe61)**
>
> I recently had to add an anaconda environment to already created conda environment and faced some issue. Thought I will explain this so…

Have a nice Day and stay healthy,  
Henry
