# How to download root on windows

**URL:** <https://root-forum.cern.ch/t/how-to-download-root-on-windows/39402>\
**Category:** Newbie\
**Created:** [May 14, 2020, 6:55am UTC](https://root-forum.cern.ch/t/how-to-download-root-on-windows/39402 "2020-05-14T06:55:34Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![esh187](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/esh187/32/24961_2.png) [@esh187](https://root-forum.cern.ch/u/esh187)\
**Post date:** [May 14, 2020, 6:55am UTC](https://root-forum.cern.ch/t/how-to-download-root-on-windows/39402/1 "2020-05-14T06:55:34Z")

</div>

Hi,  
I am total newbie at this and I need to download ROOTCERN on my Windows10 Laptop for a project I’m working on but I have no idea where to start. I have a few questions:

1. Will downloading this require me to format my laptop first?
2. Which version should I download? I have seen a couple of youtube videos but they weren’t very clear.
3. I’ve heard that the installation process is complicated can anyone clarify that please?

Thanks guys

_ROOT Version:_ Release 5.34/36 - 2016-04-05  
_Platform:_ Windows 10

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 14, 2020, 7:05am UTC](https://root-forum.cern.ch/t/how-to-download-root-on-windows/39402/2 "2020-05-14T07:05:58Z")

</div>

> [@esh187](#):
>
> Will downloading this require me to format my laptop first?

No

> [@esh187](#):
>
> Which version should I download? I have seen a couple of youtube videos but they weren’t very clear.

Take the latest one [Release 6.20/04 - 2020-04-01](https://root.cern/content/release-62004)

> [@esh187](#):
>
> I’ve heard that the installation process is complicated can anyone clarify that please?

Well, the problem is that you have to download and install Visual Studio as well, and you might have to build ROOT from source, which could be a bit complicated if you are a beginner with Visual Studio and Windows…

---

<div class="post-metadata">

**Author:** ![esh187](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/esh187/32/24961_2.png) [@esh187](https://root-forum.cern.ch/u/esh187)\
**Post date:** [May 14, 2020, 3:44pm UTC](https://root-forum.cern.ch/t/how-to-download-root-on-windows/39402/3 "2020-05-14T15:44:45Z")

</div>

If possible, can you give me a detailed guide of how to download it?

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 14, 2020, 4:15pm UTC](https://root-forum.cern.ch/t/how-to-download-root-on-windows/39402/4 "2020-05-14T16:15:28Z")

</div>

- First, download and install `Visual Studio Community 2019 Edition` from [https://visualstudio.microsoft.com/](https://visualstudio.microsoft.com/). Select the `Desktop development with C++` option when installing
- Then, download and install any of the `Windows Visual Studio 2019` files from the [Release 6.18/04 page](https://root.cern/content/release-61804). For example [root\_v6.18.04.win32.vc16.exe](https://root.cern/download/root_v6.18.04.win32.vc16.exe), and install it in a location not containing any space in the path.

It should work, even if it might print some warnings when starting ROOT

---

<div class="post-metadata">

**Author:** ![esh187](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/esh187/32/24961_2.png) [@esh187](https://root-forum.cern.ch/u/esh187)\
**Post date:** [May 15, 2020, 11:18am UTC](https://root-forum.cern.ch/t/how-to-download-root-on-windows/39402/5 "2020-05-15T11:18:54Z")

</div>

I have the Proffessional Version of Visual Studio that should work as well right?

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 15, 2020, 11:19am UTC](https://root-forum.cern.ch/t/how-to-download-root-on-windows/39402/6 "2020-05-15T11:19:43Z")

</div>

I hope so!

---

<div class="post-metadata">

**Author:** ![esh187](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/esh187/32/24961_2.png) [@esh187](https://root-forum.cern.ch/u/esh187)\
**Post date:** [May 17, 2020, 6:54am UTC](https://root-forum.cern.ch/t/how-to-download-root-on-windows/39402/7 "2020-05-17T06:54:05Z")

</div>

Could you explain what sort of warnings?

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 17, 2020, 9:48am UTC](https://root-forum.cern.ch/t/how-to-download-root-on-windows/39402/8 "2020-05-17T09:48:09Z")

</div>

Those error messages:

```auto
In file included from input_line_3:38:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\\include\cassert:9:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\assert.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h:142:12: error: redefinition of '_CrtEnableIf<true, _Ty>'
    struct _CrtEnableIf<true, _Ty>
           ^ ~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h:142:12: note: previous definition is here
    struct _CrtEnableIf<true, _Ty>
           ^
In file included from input_line_3:38:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\\include\cassert:9:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\assert.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h:517:16: error: redefinition of '__crt_locale_data_public'
typedef struct __crt_locale_data_public
               ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\crtdefs.h:10:10: note: 'C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h' included multiple times, additional include
      site here
         ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\assert.h:12:10: note: 'C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h' included multiple times, additional include
      site here
         ^
In file included from input_line_3:38:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\\include\cassert:9:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\assert.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h:524:16: error: redefinition of '__crt_locale_pointers'
typedef struct __crt_locale_pointers
               ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\crtdefs.h:10:10: note: 'C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h' included multiple times, additional include
      site here
         ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\assert.h:12:10: note: 'C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h' included multiple times, additional include
      site here
         ^
In file included from input_line_3:38:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\\include\cassert:9:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\assert.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h:532:16: error: redefinition of '_Mbstatet'
typedef struct _Mbstatet
               ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\crtdefs.h:10:10: note: 'C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h' included multiple times, additional include
      site here
         ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\assert.h:12:10: note: 'C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h' included multiple times, additional include
      site here
         ^

```

There is a pending [pull request](https://github.com/root-project/root/pull/5627) solving this issue

---

<div class="post-metadata">

**Author:** ![esh187](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/esh187/32/24961_2.png) [@esh187](https://root-forum.cern.ch/u/esh187)\
**Post date:** [May 17, 2020, 9:59am UTC](https://root-forum.cern.ch/t/how-to-download-root-on-windows/39402/9 "2020-05-17T09:59:23Z")

</div>

I watched a youtube video where it said launching the ROOT from the start menu would be mistake. Is that so?  
If not, what is the right way to launch the application?

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 17, 2020, 10:09am UTC](https://root-forum.cern.ch/t/how-to-download-root-on-windows/39402/10 "2020-05-17T10:09:10Z")

</div>

I would advise to open a `x86 Native Tools Command Prompt for VS 2019`, go to your preferred directory and run from there. And depending the way you installed ROOT, you might have to call `root\bin\thisroot.bat` to properly set-up the environment variables, valid for the current session only. Otherwise, you can set the `ROOTSYS` environment variable and add `%ROOTSYS%\bin` in your `PATH` in your Windows settings, so you won’t have to call `thisroot.bat` every time

---

<div class="post-metadata">

**Author:** ![esh187](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/esh187/32/24961_2.png) [@esh187](https://root-forum.cern.ch/u/esh187)\
**Post date:** [May 17, 2020, 10:25am UTC](https://root-forum.cern.ch/t/how-to-download-root-on-windows/39402/11 "2020-05-17T10:25:34Z")

</div>

What exactly do you mean by how you downloaded ROOT\>  
Also what is the difference between downloading it by .exe method and zip file?

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 17, 2020, 10:33am UTC](https://root-forum.cern.ch/t/how-to-download-root-on-windows/39402/12 "2020-05-17T10:33:04Z")

</div>

> [@esh187](#):
>
> What exactly do you mean by how you downloaded ROOT\>

I said how you _installed_ ROOT. if you download the zip file, you unzip it somewhere and then you have to set the environment yourself, otherwise, the `exe` will install it and set the environment variables. It is like many other packages. The advantage with the zip file is that it is easy to have several versions on the same computer

---

<div class="post-metadata">

**Author:** ![esh187](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/esh187/32/24961_2.png) [@esh187](https://root-forum.cern.ch/u/esh187)\
**Post date:** [May 17, 2020, 10:38am UTC](https://root-forum.cern.ch/t/how-to-download-root-on-windows/39402/13 "2020-05-17T10:38:25Z")

</div>

How do I run it exactly? Could you give me an example of what I would have to do?

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 17, 2020, 10:40am UTC](https://root-forum.cern.ch/t/how-to-download-root-on-windows/39402/14 "2020-05-17T10:40:05Z")

</div>

```auto
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.4.6
** Copyright (c) 2019 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x86'

C:\Users\bellenot>build\release\bin\thisroot.bat

C:\Users\bellenot>root
   ------------------------------------------------------------------
  | Welcome to ROOT 6.21/01 https://root.cern |
  | (c) 1995-2020, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for win32 on May 16 2020, 18:49:06 |
  | From heads/master@v6-19-01-4159-g2bdae46e19 |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
   ------------------------------------------------------------------

root [0]

```

---

<div class="post-metadata">

**Author:** ![esh187](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/esh187/32/24961_2.png) [@esh187](https://root-forum.cern.ch/u/esh187)\
**Post date:** [May 17, 2020, 11:46am UTC](https://root-forum.cern.ch/t/how-to-download-root-on-windows/39402/15 "2020-05-17T11:46:53Z")

</div>

> [@bellenot](#):
>
> [vcvarsall.bat] Environment initialized for: ‘x86’

This is what I need to type out when I start it right?

---

<div class="post-metadata">

**Author:** ![esh187](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/esh187/32/24961_2.png) [@esh187](https://root-forum.cern.ch/u/esh187)\
**Post date:** [May 17, 2020, 11:48am UTC](https://root-forum.cern.ch/t/how-to-download-root-on-windows/39402/16 "2020-05-17T11:48:35Z")

</div>

I don;t understand what I need to write out

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 17, 2020, 11:53am UTC](https://root-forum.cern.ch/t/how-to-download-root-on-windows/39402/17 "2020-05-17T11:53:15Z")

</div>

> [@esh187](#):
>
> This is what I need to type out when I start it right?

No, this is what is printed when starting a `x86 Native Tools Command Prompt for VS 2019`. Why don’t you simply try?

> [@esh187](#):
>
> I don;t understand what I need to write out

Again, it depends how and where you install ROOT…

---

<div class="post-metadata">

**Author:** ![esh187](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/esh187/32/24961_2.png) [@esh187](https://root-forum.cern.ch/u/esh187)\
**Post date:** [May 17, 2020, 11:55am UTC](https://root-forum.cern.ch/t/how-to-download-root-on-windows/39402/18 "2020-05-17T11:55:07Z")

</div>

So what I have done is installed it in a folder in my downloaded folder. Using the exe. one.

---

<div class="post-metadata">

**Author:** ![esh187](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/esh187/32/24961_2.png) [@esh187](https://root-forum.cern.ch/u/esh187)\
**Post date:** [May 17, 2020, 11:56am UTC](https://root-forum.cern.ch/t/how-to-download-root-on-windows/39402/19 "2020-05-17T11:56:46Z")

</div>

I have simply downloaed the exe. file have not done anything else with it. It is in a folder within the Downloads folder on my laptop.

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 17, 2020, 12:04pm UTC](https://root-forum.cern.ch/t/how-to-download-root-on-windows/39402/20 "2020-05-17T12:04:12Z")

</div>

So now you can execute it to install root

[Next page](https://root-forum.cern.ch/t/how-to-download-root-on-windows/39402.md?page=2)
