# Installation error on windows

**URL:** <https://root-forum.cern.ch/t/installation-error-on-windows/50165>\
**Category:** Newbie\
**Created:** [May 28, 2022, 7:27am UTC](https://root-forum.cern.ch/t/installation-error-on-windows/50165 "2022-05-28T07:27:57Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mario\_Baravetto](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mario_baravetto/32/29383_2.png) [@Mario\_Baravetto](https://root-forum.cern.ch/u/Mario_Baravetto)\
**Post date:** [May 28, 2022, 7:27am UTC](https://root-forum.cern.ch/t/installation-error-on-windows/50165/1 "2022-05-28T07:27:57Z")

</div>

I’m trying to install root for windows but i’m having some issues.

when I input “make -j4” it always stops at

[75%] Built target CLING  
[75%] Built target clad  
[75%] Built target LLVMRES  
CMake Error at XROOTD-stamp/XROOTD-download-Release.cmake:49 (message):  
Command failed: 1

‘/usr/bin/cmake’ ‘-Dmake=’ ‘-Dconfig=’ ‘-P’ ‘/home/mario/root-6.26.02/buildroot/builtins/xrootd/XROOTD-prefix/src/XROOTD-stamp/XROOTD-download-Release-impl.cmake’

See also

```
/home/mario/root-6.26.02/buildroot/builtins/xrootd/XROOTD-prefix/src/XROOTD-stamp/XROOTD-download-*.log

```

make[2]: \*\*\* [builtins/xrootd/CMakeFiles/XROOTD.dir/build.make:91: builtins/xrootd/XROOTD-prefix/src/XROOTD-stamp/XROOTD-download] Error 1  
make[1]: \*\*\* [CMakeFiles/Makefile2:8712: builtins/xrootd/CMakeFiles/XROOTD.dir/all] Error 2  
make: \*\*\* [Makefile:152: all] Error 2

Does anybody know how to fix the problem?

_ROOT Version:_ Not Provided  
_Platform:_ Not Provided  
_Compiler:_ Not Provided

* * *

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [May 28, 2022, 7:36am UTC](https://root-forum.cern.ch/t/installation-error-on-windows/50165/2 "2022-05-28T07:36:30Z")

</div>

Take the “head” of the [v6-26-00-patches](https://github.com/root-project/root/tree/v6-26-00-patches) branch (and remember to delete your build directory).

---

<div class="post-metadata">

**Author:** ![Mario\_Baravetto](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mario_baravetto/32/29383_2.png) [@Mario\_Baravetto](https://root-forum.cern.ch/u/Mario_Baravetto)\
**Post date:** [May 28, 2022, 7:50am UTC](https://root-forum.cern.ch/t/installation-error-on-windows/50165/3 "2022-05-28T07:50:10Z")

</div>

Thank you very much, but i’m not very experienced in this: how do i recognize the head of the patches branch and what do i do with it? Also by “delete your build directory” you mean I have to delete the “build root folder” ? Sorry for the basic questions but i never do this kind of stuff

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [May 28, 2022, 7:58am UTC](https://root-forum.cern.ch/t/installation-error-on-windows/50165/4 "2022-05-28T07:58:55Z")

</div>

Try something like this:

```bash
rm -rf root_src root_build root_install
git clone --branch v6-26-00-patches --depth=1 https://github.com/root-project/root.git root_src
mkdir root_build
cd root_build
cmake -Dall="ON" -DCMAKE_INSTALL_PREFIX=../root_install ../root_src
cmake --build . -- install -j4

```

---

<div class="post-metadata">

**Author:** ![Mario\_Baravetto](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mario_baravetto/32/29383_2.png) [@Mario\_Baravetto](https://root-forum.cern.ch/u/Mario_Baravetto)\
**Post date:** [May 28, 2022, 9:42am UTC](https://root-forum.cern.ch/t/installation-error-on-windows/50165/5 "2022-05-28T09:42:45Z")

</div>

It totally worked; thank you very much. One last question then it should be over: on the youtube tutorial i’m watching the guy uses the command:  
. root-6.26.02-install/bin/thisroot.sh  
but on my computer it says that there’s no such directory; where do i find the right directory?

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [May 28, 2022, 9:44am UTC](https://root-forum.cern.ch/t/installation-error-on-windows/50165/6 "2022-05-28T09:44:23Z")

</div>

`source /full/path/to/your/root_install/bin/thisroot.sh`

---

<div class="post-metadata">

**Author:** ![Mario\_Baravetto](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mario_baravetto/32/29383_2.png) [@Mario\_Baravetto](https://root-forum.cern.ch/u/Mario_Baravetto)\
**Post date:** [May 28, 2022, 4:35pm UTC](https://root-forum.cern.ch/t/installation-error-on-windows/50165/7 "2022-05-28T16:35:33Z")

</div>

Nope, it still doesn’t work, the “thisroot.sh” file was put in config so the path is this:  
C:\Users\barav\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu\_79rhkp1fndgsc\LocalState\rootfs\home\mario\root-6.26.02\config\thisroot.sh  
also, do i have to change all the backslashes into normal slashes?

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [May 29, 2022, 7:12am UTC](https://root-forum.cern.ch/t/installation-error-on-windows/50165/8 "2022-05-29T07:12:45Z")

</div>

Looking at the first post, I guess it would be something like:  
`source /home/mario/.../root_install/bin/thisroot.sh`
