# ROOT installation on Windows 7

**URL:** <https://root-forum.cern.ch/t/root-installation-on-windows-7/32453>\
**Category:** Newbie\
**Created:** [January 25, 2019, 5:53pm UTC](https://root-forum.cern.ch/t/root-installation-on-windows-7/32453 "2019-01-25T17:53:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Relativity](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/r/d78d45/32.png) [@Relativity](https://root-forum.cern.ch/u/Relativity)\
**Post date:** [January 25, 2019, 5:53pm UTC](https://root-forum.cern.ch/t/root-installation-on-windows-7/32453/1 "2019-01-25T17:53:06Z")

</div>

I want to use ROOT on Windows 7.  
So I downloaded the last release of Version 5 in form of source, not binary.  
I downloaded and installed Microsoft Visual Studio 2017 Version 15.9; I downloaded and installed CMake 3.13.3.  
I did not set any PATH variable.  
I ran CMake first to configure and then to generate.  
Then I opened the command prompt and I entered the following command:

cmake --build . --target install

and I got some errors that I am not up to understand.  
I ran the Windows batch file thisroot.bat by clicking on it twice in Windows Explorer.

Now if I try to call root from the Visual Studio command prompt the system answers that it can not find any “root”.  
There is the build-directory/bin/root.sln file: if I call it then Visual Studio 2017 is opened.  
But in no case do I manage to start the ROOT interactive application.

It is clear that I have not understood how ROOT has to be installed. I am sure that I did completely wrong steps.  
But on the other hand I did not find much material to read on the installation on Windows.  
So I need that somebody explicitly tells me what I have to do.

I have Windows 7 Professional with 64 bits.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![oshadura](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/oshadura/32/14460_2.png) [@oshadura](https://root-forum.cern.ch/u/oshadura)\
**Post date:** [January 26, 2019, 12:59pm UTC](https://root-forum.cern.ch/t/root-installation-on-windows-7/32453/2 "2019-01-26T12:59:54Z")

</div>

@bellenot, can you help here please?

---

<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:** [January 26, 2019, 10:07pm UTC](https://root-forum.cern.ch/t/root-installation-on-windows-7/32453/3 "2019-01-26T22:07:58Z")

</div>

H,

ROOT 5 can be built only with a verson of Visual Studio up to 2013. Visual Studio 2017 is for ROOT 6. Why don’t you simply donwload a binary?

Cheers, Bertrand

---

<div class="post-metadata">

**Author:** ![Relativity](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/r/d78d45/32.png) [@Relativity](https://root-forum.cern.ch/u/Relativity)\
**Post date:** [February 1, 2019, 8:39am UTC](https://root-forum.cern.ch/t/root-installation-on-windows-7/32453/4 "2019-02-01T08:39:31Z")

</div>

Bertrand,  
I downloaded and installed root\_v5.34.38.win32.vc12.exe and now root perfectly works.  
I still have two problems:

1. On Microsoft’s website Visual Studio 2013 and Visual Studio 2012 are not available. But I understand that this doesn’t depend on you.
2. I don’t have the file slits.C, which is mentioned in the Root Guide for Beginners.

Thank you anyway for your decisive help and thanks also to oshadura.

---

<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:** [February 1, 2019, 9:02am UTC](https://root-forum.cern.ch/t/root-installation-on-windows-7/32453/5 "2019-02-01T09:02:08Z")

</div>

> [@Relativity](#):
>
> On Microsoft’s website Visual Studio 2013 and Visual Studio 2012 are not available. But I understand that this doesn’t depend on you.

Did you try: [Download Older Visual Studio Software](https://visualstudio.microsoft.com/vs/older-downloads/)?

> [@Relativity](#):
>
> I don’t have the file slits.C, which is mentioned in the Root Guide for Beginners.

I know, it is not part of the version 5 of ROOT, but you could simply copy the code and paste it in a file… Anyway, here it is: [slits.C](https://root-forum.cern.ch/uploads/default/original/3X/6/3/63c9f26f734447b84eb33c868a316be5970fbf1b.C) (1018 Bytes)

Cheers, Bertrand.

---

<div class="post-metadata">

**Author:** ![Relativity](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/r/d78d45/32.png) [@Relativity](https://root-forum.cern.ch/u/Relativity)\
**Post date:** [February 1, 2019, 9:32am UTC](https://root-forum.cern.ch/t/root-installation-on-windows-7/32453/6 "2019-02-01T09:32:02Z")

</div>

Bertrand,  
I went to the Visual Studio website page you have indicated. But when I pick ‘2013’ and then log in I am told that there are no downloads available for me.

Thanks a lot for slits.C.

---

<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:** [February 1, 2019, 9:37am UTC](https://root-forum.cern.ch/t/root-installation-on-windows-7/32453/7 "2019-02-01T09:37:55Z")

</div>

You’re right, sorry then, there is nothing I can do… The only other solution would be to [download ROOT 6.16/00](https://root.cern.ch/content/release-61600) and install [Visual Studio 2017 v15.7.6](https://docs.microsoft.com/en-us/visualstudio/productinfo/installing-an-earlier-release-of-vs2017)

> [@Relativity](#):
>
> Thanks a lot for slits.C.

You’re very welcome
