# Installation problems on Windows 10

**URL:** <https://root-forum.cern.ch/t/installation-problems-on-windows-10/33880>\
**Category:** Newbie\
**Created:** [May 3, 2019, 12:13am UTC](https://root-forum.cern.ch/t/installation-problems-on-windows-10/33880 "2019-05-03T00:13:04Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jabberspocky](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jabberspocky/32/18526_2.png) [@Jabberspocky](https://root-forum.cern.ch/u/Jabberspocky)\
**Post date:** [May 3, 2019, 12:13am UTC](https://root-forum.cern.ch/t/installation-problems-on-windows-10/33880/1 "2019-05-03T00:13:04Z")

</div>

I installed Visual Studio 2019 from [https://visualstudio.microsoft.com/downloads/](https://visualstudio.microsoft.com/downloads/) . I didn’t add any workloads.  
I installed root\_v6.16.00.win32.vc15.exe from [https://root.cern.ch/content/release-61600](https://root.cern.ch/content/release-61600) . My computer runs windows 64, but there wasn’t a 64-bit option on the downloads page.  
It tried to start root using the Virtual Studio command prompt by typing root, and I get this error.

```auto
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>root
RegOpenKeyEx(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\$VERSION\InstallationFolder): returned 2: The system cannot find the file specified.
RegOpenKeyEx(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots\KitsRoot10): returned 2: The system cannot find the file specified.
input_line_1:1:10: fatal error: 'new' file not found
#include <new>
         ^ ~~~~
Assertion failed: OldBuilder->DeferredDeclsToEmit.empty() && "Should have emitted all decls deferred to emit.", file C:\build\ws\BUILDTYPE\Release\LABEL\windows10\root\interpreter\llvm\src\tools\clang\lib\CodeGen\ModuleBuilder.cpp, line 139

```

---

<div class="post-metadata">

**Author:** ![Jabberspocky](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jabberspocky/32/18526_2.png) [@Jabberspocky](https://root-forum.cern.ch/u/Jabberspocky)\
**Post date:** [May 3, 2019, 4:34pm UTC](https://root-forum.cern.ch/t/installation-problems-on-windows-10/33880/2 "2019-05-03T16:34:17Z")

</div>

I don’t know anything about Linux, but would it be easier to install Linux and use it for Root?

---

<div class="post-metadata">

**Author:** ![Jabberspocky](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jabberspocky/32/18526_2.png) [@Jabberspocky](https://root-forum.cern.ch/u/Jabberspocky)\
**Post date:** [May 3, 2019, 5:37pm UTC](https://root-forum.cern.ch/t/installation-problems-on-windows-10/33880/3 "2019-05-03T17:37:16Z")

</div>

I reinstalled everything, using Visual Studio 2017 this time.  
I found instructions for downloading older versions of Visual Studio here: [https://help.yoyogames.com/hc/en-us/articles/115005904868-How-to-download-Visual-Studio-versions-older-than-2017](https://help.yoyogames.com/hc/en-us/articles/115005904868-How-to-download-Visual-Studio-versions-older-than-2017)  
However, I get the same error message.

---

<div class="post-metadata">

**Author:** ![assosiation](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/assosiation/32/34837_2.png) [@assosiation](https://root-forum.cern.ch/u/assosiation)\
**Post date:** [May 4, 2019, 3:28am UTC](https://root-forum.cern.ch/t/installation-problems-on-windows-10/33880/4 "2019-05-04T03:28:37Z")

</div>

## To ROOT developers - PLEASE disable the ACCERT in the release version?? this is pointless!

RegOpenKeyEx(HKEY\_LOCAL\_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows$VERSION\InstallationFolder): returned 2: The system cannot find the file specified.  
RegOpenKeyEx(HKEY\_LOCAL\_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots\KitsRoot10): returned 2: The system cannot find the file specified.  
input\_line\_1:1:10: fatal error: ‘new’ file not found  
#include   
^ ~~~~  
Assertion failed: OldBuilder-\>DeferredDeclsToEmit.empty() && “Should have emitted all decls deferred to emit.”, file C:\build\ws\BUILDTYPE\Release\LABEL\windows10\root\interpreter\llvm\src\tools\clang\lib\CodeGen\ModuleBuilder.cpp, line 139

---

<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 6, 2019, 7:27am UTC](https://root-forum.cern.ch/t/installation-problems-on-windows-10/33880/5 "2019-05-06T07:27:12Z")

</div>

Hi,

You could try to build ROOT from source, taking the master branch (see [Building ROOT](https://root.cern.ch/building-root)) with Visual Studio 2019

Cheers, Bertrand

---

<div class="post-metadata">

**Author:** ![Jabberspocky](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jabberspocky/32/18526_2.png) [@Jabberspocky](https://root-forum.cern.ch/u/Jabberspocky)\
**Post date:** [May 6, 2019, 4:31pm UTC](https://root-forum.cern.ch/t/installation-problems-on-windows-10/33880/6 "2019-05-06T16:31:50Z")

</div>

I’m sorry, but I don’t know how to use those instructions for building ROOT on UNIX systems with my Windows computer.  
I downloaded an Ubuntu app, and I can barely follow the instructions in the system they’re written for.

---

<div class="post-metadata">

**Author:** ![Jabberspocky](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jabberspocky/32/18526_2.png) [@Jabberspocky](https://root-forum.cern.ch/u/Jabberspocky)\
**Post date:** [May 7, 2019, 12:04am UTC](https://root-forum.cern.ch/t/installation-problems-on-windows-10/33880/7 "2019-05-07T00:04:47Z")

</div>

I’ve managed to get ROOT working using an Ubuntu subsystem. I’ll include the links to the resources I used below, in case anyone else needs them.

I’m not sure exactly how important it is, but it seems that, if you’re watching a tutorial, you should use the exact same version of everything as they do.

First, I downloaded Ubuntu 18.04 from the Microsoft store:

> **[Get Ubuntu 18.04 LTS - Microsoft Store](https://www.microsoft.com/en-us/p/ubuntu-1804-lts/9n9tngvndl3q?activetab=pivot:overviewtab)**
>
> Download this app from Microsoft Store for Windows 10. See screenshots, read the latest customer reviews, and compare ratings for Ubuntu 18.04 LTS.

Throughout the process of installation, I followed this tutorial:

For basic instructions on using the Ubuntu terminal:  
[https://help.ubuntu.com/community/UsingTheTerminal](https://help.ubuntu.com/community/UsingTheTerminal)

When I got a “13: Permission denied” error while installing prerequisites:

> <https://askubuntu.com/questions/223484/permission-denied-are-you-root>

How to access Windows folders from the Ubuntu terminal:

> <https://superuser.com/questions/1066261/how-to-access-windows-folders-from-bash-on-ubuntu-on-windows>

When I got an error starting ROOT:

> **[How to Run Graphical Linux Desktop Applications from Windows 10’s Bash Shell](https://www.howtogeek.com/261575/how-to-run-graphical-linux-desktop-applications-from-windows-10s-bash-shell/)**
>
> Windows 10’s Bash shell doesn’t officially support graphical Linux desktop applications. Microsoft says this feature is designed only for developers who want to run Linux terminal utilities. But the underlying “Windows Subsystem for Linux” is more...

---

<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 7, 2019, 1:21pm UTC](https://root-forum.cern.ch/t/installation-problems-on-windows-10/33880/8 "2019-05-07T13:21:40Z")

</div>

It looks like you don’t have any Windows 10 SDK. When you installed Visual Studio 2019, you should have checked the “ **Desktop development with C++** ”, including the Windows 10 SDK (the latest one and the version **10.0.17134.0** for compatibility reasons)

---

<div class="post-metadata">

**Author:** ![Jabberspocky](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jabberspocky/32/18526_2.png) [@Jabberspocky](https://root-forum.cern.ch/u/Jabberspocky)\
**Post date:** [May 8, 2019, 4:59pm UTC](https://root-forum.cern.ch/t/installation-problems-on-windows-10/33880/10 "2019-05-08T16:59:28Z")

</div>

It seems like Desktop development with C++ should be in the build prerequisites then.

---

<div class="post-metadata">

**Author:** ![Jabberspocky](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jabberspocky/32/18526_2.png) [@Jabberspocky](https://root-forum.cern.ch/u/Jabberspocky)\
**Post date:** [June 25, 2019, 9:13pm UTC](https://root-forum.cern.ch/t/installation-problems-on-windows-10/33880/11 "2019-06-25T21:13:53Z")

</div>

In case anybody still cares, I just reinstalled ROOT with a newer version, and it turns out that the YouTube tutorial still works. You don’t have to use the same version as them.

---

<div class="post-metadata">

**Author:** ![hetong](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/e56c9b/32.png) [@hetong](https://root-forum.cern.ch/u/hetong)\
**Post date:** [January 9, 2020, 3:10pm UTC](https://root-forum.cern.ch/t/installation-problems-on-windows-10/33880/13 "2020-01-09T15:10:53Z")

</div>

So It’s not good to use root6.18 in vs2019？ I have the same problem
