# Root Installation on WSL Ubuntu

**URL:** <https://root-forum.cern.ch/t/root-installation-on-wsl-ubuntu/42634>\
**Category:** ROOT\
**Created:** [December 7, 2020, 9:44pm UTC](https://root-forum.cern.ch/t/root-installation-on-wsl-ubuntu/42634 "2020-12-07T21:44:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![SerenaDiPede](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/serenadipede/32/24225_2.png) [@SerenaDiPede](https://root-forum.cern.ch/u/SerenaDiPede)\
**Post date:** [December 7, 2020, 9:44pm UTC](https://root-forum.cern.ch/t/root-installation-on-wsl-ubuntu/42634/1 "2020-12-07T21:44:28Z")

</div>

Hello everybody,  
I have a Windows 10 operating system and I am trying to install the ROOT version v6-22-00 on the Windows Subsystem for Linux with Ubuntu version 20.04.1 LTS.  
I did these steps:

- update of Windows
- update and upgrade of Ubuntu
- installation of all the required dependencies unless the package “openssl-dev” and “libqt4-dev” because it did not work
- cmake -DCMAKE\_INSTALL\_PREFIX= 
- cmake --build . --target install

Everything went fine up to the 85% when it was “Generating G\_\_Ged.cxx, …/…/lib/Ged.pcm” and I got this error message:

```auto
<<< cling interactive line includer >>>: fatal error: module file '/home/serena/lib/MultiProc.pcm' is out of date and needs to be rebuilt: could not read module signature
<<< cling interactive line includer >>>: note: imported by module 'TreePlayer' in '/home/serena/lib/TreePlayer.pcm'
Error: Module 'TreePlayer.pcm' failed to load.
Error: Error loading the default header files.
make[2]: *** [gui/ged/CMakeFiles/G __Ged.dir/build.make:127: gui/ged/G__ Ged.cxx] Error 1
make[1]: *** [CMakeFiles/Makefile2:25139: gui/ged/CMakeFiles/G__Ged.dir/all] Error 2
make: *** [Makefile:152: all] Error 2

```

I am trying to google the problem but I did not get any answer or solution…  
Does anyone have an idea of what can be the problem and maybe how to fix it?

Thank you very much in advance!

Serena

---

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [December 8, 2020, 4:40am UTC](https://root-forum.cern.ch/t/root-installation-on-wsl-ubuntu/42634/2 "2020-12-08T04:40:22Z")

</div>

Unless you have a specific reason for compiling ROOT, you don’t need to do it; just download and use the precompiled binary for Ubuntu 20.04 in your case (keep the dependencies you already installed).

---

<div class="post-metadata">

**Author:** ![SerenaDiPede](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/serenadipede/32/24225_2.png) [@SerenaDiPede](https://root-forum.cern.ch/u/SerenaDiPede)\
**Post date:** [December 8, 2020, 7:19am UTC](https://root-forum.cern.ch/t/root-installation-on-wsl-ubuntu/42634/3 "2020-12-08T07:19:25Z")

</div>

Thank you for the answer.

In this case, do I need to remove what it has built up to 85% before use the precompiled binary ?

---

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [December 8, 2020, 7:52am UTC](https://root-forum.cern.ch/t/root-installation-on-wsl-ubuntu/42634/4 "2020-12-08T07:52:00Z")

</div>

Not necessarily, it depends on where you were putting everything, but I suggest to remove that to avoid any future confusions. If you were copying and compiling all in your home, e.g. under /home/serena/root, you can just delete that folder (“root”) with everything inside it (of course making sure you don’t have in there anything else you want to keep). If you were compiling for the system (somewhere in /bin or /lib?), then I suppose the makefile should provide some clean-up option.

---

<div class="post-metadata">

**Author:** ![SerenaDiPede](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/serenadipede/32/24225_2.png) [@SerenaDiPede](https://root-forum.cern.ch/u/SerenaDiPede)\
**Post date:** [December 8, 2020, 8:27am UTC](https://root-forum.cern.ch/t/root-installation-on-wsl-ubuntu/42634/5 "2020-12-08T08:27:06Z")

</div>

I removed them and installed the precompiled version which now works! Thank you 🙂

Just another question: I tried to draw a simple function as in the “Get Started” Guide:

TF1 f1(“f1”,“sin(x)/x”,0.,10.);  
f1.Draw()

then it says

“Info in TCanvas::MakeDefCanvas: created default TCanvas with name c1”

but it does not display the Canvas. Do you know by chance if this can is due to a missing library or dependecy?

---

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [December 8, 2020, 8:50am UTC](https://root-forum.cern.ch/t/root-installation-on-wsl-ubuntu/42634/6 "2020-12-08T08:50:31Z")

</div>

WSL does not have a graphics server. You need to install (and keep running) an X server like Xming or [VcXsrv](https://sourceforge.net/projects/vcxsrv/), and add this line at the end of your ~/.bashrc

```auto
export DISPLAY=localhost:0

```

---

<div class="post-metadata">

**Author:** ![SerenaDiPede](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/serenadipede/32/24225_2.png) [@SerenaDiPede](https://root-forum.cern.ch/u/SerenaDiPede)\
**Post date:** [December 8, 2020, 9:57am UTC](https://root-forum.cern.ch/t/root-installation-on-wsl-ubuntu/42634/7 "2020-12-08T09:57:02Z")

</div>

I installed VcXsrv and now it works!  
Thank you very much for the help 🙂

---

<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:** [December 22, 2020, 10:07am UTC](https://root-forum.cern.ch/t/root-installation-on-wsl-ubuntu/42634/8 "2020-12-22T10:07:19Z")

</div>

Closed on December 22, 2020, 10:07am UTC

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