# Root installation problem using windows subsystem method

**URL:** <https://root-forum.cern.ch/t/root-installation-problem-using-windows-subsystem-method/48258>\
**Category:** ROOT\
**Tags:** installation, root\
**Created:** [January 4, 2022, 1:34pm UTC](https://root-forum.cern.ch/t/root-installation-problem-using-windows-subsystem-method/48258 "2022-01-04T13:34:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gerasimos\_Pefanis](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/gerasimos_pefanis/32/28360_2.png) [@Gerasimos\_Pefanis](https://root-forum.cern.ch/u/Gerasimos_Pefanis)\
**Post date:** [January 4, 2022, 1:34pm UTC](https://root-forum.cern.ch/t/root-installation-problem-using-windows-subsystem-method/48258/1 "2022-01-04T13:34:20Z")

</div>

Hello .  
I am having a problem installing root using ubuntu subsystem on windows 11.  
The current problem →

[72%] Building CXX object interpreter/llvm/src/tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaDecl.cpp.o  
[72%] Building CXX object interpreter/cling/lib/Utils/CMakeFiles/obj.clingUtils.dir/Output.cpp.o  
[72%] Building CXX object interpreter/cling/lib/Utils/CMakeFiles/obj.clingUtils.dir/Paths.cpp.o  
[72%] Building CXX object interpreter/llvm/src/tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaDeclAttr.cpp.o  
[72%] Building CXX object interpreter/cling/lib/Utils/CMakeFiles/obj.clingUtils.dir/PlatformPosix.cpp.o  
[72%] Building CXX object interpreter/cling/lib/Utils/CMakeFiles/obj.clingUtils.dir/PlatformWin.cpp.o  
[72%] Building CXX object interpreter/llvm/src/tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaDeclCXX.cpp.o  
[72%] Building CXX object interpreter/cling/lib/Utils/CMakeFiles/obj.clingUtils.dir/SourceNormalization.cpp.o  
[72%] Building CXX object interpreter/cling/lib/Utils/CMakeFiles/obj.clingUtils.dir/UTF8.cpp.o  
[72%] Building CXX object interpreter/cling/lib/Utils/CMakeFiles/obj.clingUtils.dir/Validation.cpp.o  
[72%] Built target obj.clingUtils  
[72%] Building CXX object interpreter/llvm/src/tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaDeclObjC.cpp.o

c++: fatal error: Killed signal terminated program cc1plus  
compilation terminated.  
make[2]: \*\*\* [interpreter/llvm/src/tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/build.make:336: interpreter/llvm/src/tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaDeclAttr.cpp.o] Error 1  
make[2]: \*\*\* Deleting file ‘interpreter/llvm/src/tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaDeclAttr.cpp.o’  
make[2]: \*\*\* Waiting for unfinished jobs…  
Scanning dependencies of target clingMetaProcessor  
[72%] Linking CXX static library …/…/…/…/lib/libclingMetaProcessor.a  
[72%] Built target clingMetaProcessor  
Scanning dependencies of target clingUtils  
[72%] Linking CXX static library …/…/…/…/lib/libclingUtils.a  
[72%] Built target clingUtils  
make[1]: \*\*\* [CMakeFiles/Makefile2:18447: interpreter/llvm/src/tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/all] Error 2  
make: \*\*\* [Makefile:152: all] Error 2

PS : the same problem occure’s with version 6.24.06  
ROOT Version: 6.24.02  
Platform: Windows using ubuntu subsystem (wsl)

---

<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:** [January 4, 2022, 1:43pm UTC](https://root-forum.cern.ch/t/root-installation-problem-using-windows-subsystem-method/48258/2 "2022-01-04T13:43:36Z")

</div>

Do you really need to compile it? If not, it’s easier to use a precompiled version (listed under “binary distributions”), just make sure it’s the one for your Ubuntu (20, 18,…).

---

<div class="post-metadata">

**Author:** ![Gerasimos\_Pefanis](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/gerasimos_pefanis/32/28360_2.png) [@Gerasimos\_Pefanis](https://root-forum.cern.ch/u/Gerasimos_Pefanis)\
**Post date:** [January 4, 2022, 1:55pm UTC](https://root-forum.cern.ch/t/root-installation-problem-using-windows-subsystem-method/48258/3 "2022-01-04T13:55:15Z")

</div>

so you are telling me that i should get a binary option and not a source instead ? all I did is to follow a tutorial on how to do it , so any help would be appreciated

---

<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:** [January 4, 2022, 2:15pm UTC](https://root-forum.cern.ch/t/root-installation-problem-using-windows-subsystem-method/48258/4 "2022-01-04T14:15:41Z")

</div>

Assuming you have WSL1:

> [@Complete ROOT Installation Instructions for WSL (Ubuntu 18.04 on Windows 10)](https://root-forum.cern.ch/t/complete-root-installation-instructions-for-wsl-ubuntu-18-04-on-windows-10/35148):
>
> From @olifre : Install WSL ( [https://aka.ms/install](https://aka.ms/install) ) and then Ubuntu 18.04 from the Windows Store. The first step is not needed anymore for most recent Windows 10 versions, I think. Start the freshly installed Ubuntu Bash shell and install the dependencies and some build tools: sudo apt update && sudo apt dist-upgrade sudo apt install build-essential libtbb-dev libtiff5 x11-apps git Now there’s no graphics, since WSL does not ship any X server. You can fix that e.g. by installing [Xming](https://sourceforge.net/projects/xming/) and…

If you don’t know how to use wget (for step 4), click on Download at the top of this page, then click on the latest ROOT release and download the (compressed) Binary version for your Ubuntu; then just unpack it to some folder and add this line

```auto
source /path/to/root/bin/thisroot.sh

```

at the end of your .bashrc file (of course, using your correct path to that file), as per the instructions. And do not forget that the X server (Xming or [VcXsrv](https://sourceforge.net/projects/vcxsrv/) ) _must_ be running every time you want to use graphics in ROOT or any graphical thing in that Ubuntu.  
By the way, in step 3, the “export…” line should also be added to .bashrc, so you don’t have to type it every time.

---

<div class="post-metadata">

**Author:** ![Gerasimos\_Pefanis](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/gerasimos_pefanis/32/28360_2.png) [@Gerasimos\_Pefanis](https://root-forum.cern.ch/u/Gerasimos_Pefanis)\
**Post date:** [January 4, 2022, 2:23pm UTC](https://root-forum.cern.ch/t/root-installation-problem-using-windows-subsystem-method/48258/5 "2022-01-04T14:23:05Z")

</div>

I will try it and I will let you know the results.  
Thank you for your help and your time!

---

<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 18, 2022, 2:23pm UTC](https://root-forum.cern.ch/t/root-installation-problem-using-windows-subsystem-method/48258/6 "2022-01-18T14:23:51Z")

</div>

Closed on January 18, 2022, 2:23pm UTC

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