# Installation problems root

**URL:** <https://root-forum.cern.ch/t/installation-problems-root/39334>\
**Category:** ROOT\
**Created:** [May 9, 2020, 1:38pm UTC](https://root-forum.cern.ch/t/installation-problems-root/39334 "2020-05-09T13:38:55Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![faca87](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/b19c9b/32.png) [@faca87](https://root-forum.cern.ch/u/faca87)\
**Post date:** [May 9, 2020, 1:38pm UTC](https://root-forum.cern.ch/t/installation-problems-root/39334/1 "2020-05-09T13:38:55Z")

</div>

Hello, I’d to format the computer…I installaed again VS2019  
the I instalaled again Root but when I open it, I get errors

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/e/3/e3be32e5b348d1250f7923793f3ca076cdf101ef.png)  
then it crashes…  
@bellenot maybe you know the reason?

* * *

_Please read [tips for efficient and successful posting](https://root-forum.cern.ch/t/tips-for-efficient-and-successful-posting/28292) and [posting code](https://root-forum.cern.ch/t/posting-code-read-this-first/28293)_

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

* * *

---

<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 9, 2020, 2:24pm UTC](https://root-forum.cern.ch/t/installation-problems-root/39334/2 "2020-05-09T14:24:37Z")

</div>

Yes, this is a known issue. You have to build ROOT from source…

---

<div class="post-metadata">

**Author:** ![faca87](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/b19c9b/32.png) [@faca87](https://root-forum.cern.ch/u/faca87)\
**Post date:** [May 9, 2020, 2:58pm UTC](https://root-forum.cern.ch/t/installation-problems-root/39334/3 "2020-05-09T14:58:41Z")

</div>

Hi @bellenot thank you…but I can’t understand the reason…before to format the computer I installed Root without problems…What is the problem now? Visual studio installation problems or what?

Moreover…how can I install from source?  
Thank you

---

<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 9, 2020, 3:05pm UTC](https://root-forum.cern.ch/t/installation-problems-root/39334/4 "2020-05-09T15:05:33Z")

</div>

You probably installed a different version of Visual Studio (the latest), while with your old setup you had an older one. And to build from source, see for example [this thread](https://root-forum.cern.ch/t/run-root-6-19-02-on-windows-10/38529/14)

---

<div class="post-metadata">

**Author:** ![faca87](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/b19c9b/32.png) [@faca87](https://root-forum.cern.ch/u/faca87)\
**Post date:** [May 9, 2020, 3:14pm UTC](https://root-forum.cern.ch/t/installation-problems-root/39334/5 "2020-05-09T15:14:39Z")

</div>

Thank you @bellenot I got VS2019 [here](https://visualstudio.microsoft.com/it/thank-you-downloading-visual-studio/?sku=Community&rel=16#) …I think it’s the latest one because I downloade it yesterday! Will you fix the problem in next Root release?  
Thank you

---

<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 9, 2020, 3:15pm UTC](https://root-forum.cern.ch/t/installation-problems-root/39334/6 "2020-05-09T15:15:10Z")

</div>

> [@faca87](#):
>
> Will you fix the problem in next Root release?

Unfortunately not

---

<div class="post-metadata">

**Author:** ![faca87](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/b19c9b/32.png) [@faca87](https://root-forum.cern.ch/u/faca87)\
**Post date:** [May 9, 2020, 4:31pm UTC](https://root-forum.cern.ch/t/installation-problems-root/39334/7 "2020-05-09T16:31:33Z")

</div>

Thank you @bellenot anyway, I’m trying to install from source…but I get this erro

```auto
C:\Program Files\root-6.20.04-build>cmake -G "Visual Studio 16 2019" -A Win32 -Thost=x64 -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_CXX_STANDARD=14 "C:\Program Files\root-6.20.04"
-- The C compiler identification is MSVC 19.25.28614.0
-- The CXX compiler identification is MSVC 19.25.28614.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x86/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x86/cl.exe - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x86/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x86/cl.exe - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find Git (missing: GIT_EXECUTABLE)
-- Looking for python
-- Preferring Python version 3
CMake Error at C:/Program Files/CMake/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
  Could NOT find Python (missing: Python_EXECUTABLE Python_LIBRARIES
  Python_INCLUDE_DIRS Interpreter Development)
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
  C:/Program Files/CMake/share/cmake-3.17/Modules/FindPython.cmake:356 (find_package_handle_standard_args)
  cmake/modules/SearchRootCoreDeps.cmake:70 (find_package)
  CMakeLists.txt:120 (include)

-- Configuring incomplete, errors occurred!
See also "C:/Program Files/root-6.20.04-build/CMakeFiles/CMakeOutput.log".

C:\Program Files\root-6.20.04-build>

```

---

<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 9, 2020, 4:33pm UTC](https://root-forum.cern.ch/t/installation-problems-root/39334/8 "2020-05-09T16:33:05Z")

</div>

Please install Python

---

<div class="post-metadata">

**Author:** ![faca87](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/b19c9b/32.png) [@faca87](https://root-forum.cern.ch/u/faca87)\
**Post date:** [May 9, 2020, 5:03pm UTC](https://root-forum.cern.ch/t/installation-problems-root/39334/9 "2020-05-09T17:03:54Z")

</div>

Thank you @bellenot. I installed python ([This one)](https://www.python.org/ftp/python/3.8.2/python-3.8.2-amd64.exe)

but I still gett errors

```auto

```

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

C:\Windows\System32>cd C:\root-6.20.04-build

C:\root-6.20.04-build>cmake -G "Visual Studio 16 2019" -A Win32 -Thost=x64 -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_CXX_STANDARD=14 "C:\root-6.20.04"
-- The C compiler identification is MSVC 19.25.28614.0
-- The CXX compiler identification is MSVC 19.25.28614.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x86/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x86/cl.exe - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x86/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x86/cl.exe - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find Git (missing: GIT_EXECUTABLE)
-- Looking for python
-- Preferring Python version 3
-- Found Python: C:/Users/faust/AppData/Local/Programs/Python/Python38/python.exe (found version "3.8.2") found components: Interpreter Development
-- ROOT default compression algorithm: zlib
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Performing Test GLIBCXX_USE_CXX11_ABI
-- Performing Test GLIBCXX_USE_CXX11_ABI - Failed
-- ROOT Platform: win32
-- ROOT Architecture: win32
-- Build Type: (flags = '')
-- Compiler Flags: -nologo -IC:/root-6.20.04/build/win -FIw32pragma.h -FIsehmap.h -Zc:__cplusplus -MD -GR -EHsc- -W3 -wd4141 -wd4291 -wd4244 -wd4049 -D_WIN32 -D_XKEYCHECK_H -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -DNOMINMAX -D_CRT_SECURE_NO_WARNINGS
-- Looking for ZLib
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- Zlib not found. Switching on builtin_zlib option
-- Looking for Freetype
-- Could NOT find Freetype (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS)
-- FreeType not found. Switching on builtin_freetype option
-- Building freetype version 2.6.1 included in ROOT itself
-- Looking for PCRE
-- Could NOT find PCRE (missing: PCRE_INCLUDE_DIR PCRE_PCRE_LIBRARY)
-- PCRE not found. Switching on builtin_pcre option
-- Looking for LZMA
-- Could NOT find LibLZMA (missing: LIBLZMA_LIBRARY LIBLZMA_INCLUDE_DIR LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET)
-- LZMA not found. Switching on builtin_lzma option
-- Building LZMA version 5.2.4 included in ROOT itself
-- Looking for ZSTD
-- Could NOT find ZSTD (missing: ZSTD_LIBRARIES ZSTD_INCLUDE_DIR ZSTD_VERSION)
-- ZSTD not found. Switching on builtin_zstd option
-- Performing Test C_FLAG_MP
-- Performing Test C_FLAG_MP - Success
-- Performing Test CXX_FLAG_MP
-- Performing Test CXX_FLAG_MP - Success
-- Performing Test C_FLAG_D_UNICODE
-- Performing Test C_FLAG_D_UNICODE - Success
-- Performing Test CXX_FLAG_D_UNICODE
-- Performing Test CXX_FLAG_D_UNICODE - Success
-- Performing Test C_FLAG_DUNICODE
-- Performing Test C_FLAG_DUNICODE - Success
-- Performing Test CXX_FLAG_DUNICODE
-- Performing Test CXX_FLAG_DUNICODE - Success
-- Looking for xxHash
-- Could NOT find xxHash (missing: xxHash_LIBRARY xxHash_INCLUDE_DIR)
-- xxHash not found. Switching on builtin_xxhash option
-- Looking for LZ4
-- Could NOT find LZ4 (missing: LZ4_LIBRARY LZ4_INCLUDE_DIR)
-- LZ4 not found. Switching on builtin_lz4 option
-- Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR)
-- Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR)
-- Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
-- Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
-- Looking for AfterImage
-- Could NOT find AfterImage (missing: AFTERIMAGE_INCLUDE_DIR AFTERIMAGE_LIBRARIES)
-- AfterImage not found. Switching on builtin_afterimage option
-- Looking for GSL
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Could NOT find GSL: Found unsuitable version "", but required is at least "1.10" (found GSL_INCLUDE_DIR-NOTFOUND)
-- GSL not found. Set variable GSL_ROOT_DIR to point to your GSL installation
-- Alternatively, you can also enable the option 'builtin_gsl' to build the GSL libraries internally'
-- For the time being switching OFF 'mathmore' option
-- Looking for OpenGL
-- Found OpenGL: opengl32
-- Looking for GLEW
-- Could NOT find GLEW (missing: GLEW_INCLUDE_DIRS GLEW_LIBRARIES)
-- GLEW not found. Switching on builtin_glew option
-- Looking for gl2ps
CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
  The package name passed to `find_package_handle_standard_args` (GL2PS) does
  not match the name of the calling package (gl2ps). This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/modules/Findgl2ps.cmake:27 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  cmake/modules/SearchInstalledSoftware.cmake:15 (_find_package)
  cmake/modules/SearchInstalledSoftware.cmake:541 (find_Package)
  CMakeLists.txt:168 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Could NOT find GL2PS (missing: GL2PS_LIBRARY GL2PS_INCLUDE_DIR)
-- gl2ps not found. Switching on builtin_gl2ps option
-- Looking for LibXml2
-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR)
-- LibXml2 not found. Switching off xml option
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR)
-- Switching OFF 'ssl' option.
-- Looking for MySQL
CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
  The package name passed to `find_package_handle_standard_args` (MYSQL) does
  not match the name of the calling package (MySQL). This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/modules/FindMySQL.cmake:65 (find_package_handle_standard_args)
  cmake/modules/SearchInstalledSoftware.cmake:15 (_find_package)
  cmake/modules/SearchInstalledSoftware.cmake:607 (find_package)
  CMakeLists.txt:168 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Could NOT find MYSQL (missing: MYSQL_INCLUDE_DIR MYSQL_LIBRARIES)
-- MySQL not found. Switching off mysql option
-- Looking for Oracle
-- Oracle not found.
-- Oracle: You can specify includes: -DORACLE_PATH_INCLUDES=/usr/include/oracle/10.2.0.3/client
-- currently found includes:
-- Oracle: You can specify libs: -DORACLE_PATH_LIB=/usr/lib/oracle/10.2.0.3/client/lib
-- currently found libs: ORACLE_LIBRARY_OCCI-NOTFOUND;ORACLE_LIBRARY_CLNTSH-NOTFOUND;ORACLE_LIBRARY_LNNZ-NOTFOUND
-- Oracle not found. Switching off oracle option
-- Looking for PostgreSQL
-- Could NOT find PostgreSQL (missing: PostgreSQL_LIBRARY PostgreSQL_INCLUDE_DIR)
-- PostgreSQL not found. Switching off pgsql option
-- Looking for SQLite
-- Could NOT find Sqlite (missing: SQLITE_INCLUDE_DIR SQLITE_LIBRARIES)
-- SQLite not found. Switching off sqlite option
-- Looking for Pythia6
-- Pythia6 not found. Switching off pythia6 option
-- Looking for Pythia8
-- Could NOT find Pythia8 (missing: PYTHIA8_INCLUDE_DIR PYTHIA8_LIBRARY)
-- Pythia8 not found. Switching off pythia8 option
-- Looking for FFTW3
-- FFTW3 not found. Set [environment] variable FFTW_DIR to point to your FFTW3 installation
-- Alternatively, you can also enable the option 'builtin_fftw3' to build FFTW3 internally'
-- For the time being switching OFF 'fftw3' option
-- Looking for CFITSIO
-- Could NOT find CFITSIO (missing: CFITSIO_LIBRARY CFITSIO_INCLUDE_DIR)
-- CFITSIO not found. You can enable the option 'builtin_cfitsio' to build the library internally'
-- For the time being switching off 'fitsio' option
-- Looking for XROOTD
-- XROOTD not found. Set environment variable XRDSYS to point to your XROOTD installation
-- Alternatively, you can also enable the option 'builtin_xrootd' to build XROOTD internally
-- For the time being switching OFF 'xrootd' option
-- Could NOT find GFAL (missing: GFAL_INCLUDE_DIR SRM_IFCE_INCLUDE_DIR GFAL_LIBRARY)
-- GFAL library not found. Set variable GFAL_DIR to point to your gfal installation
                      and the variable SRM_IFCE_DIR to the srm_ifce installation
-- For the time being switching OFF 'gfal' option
-- Could NOT find FTGL (missing: FTGL_INCLUDE_DIR FTGL_LIBRARY)
-- ftgl library not found. Set variable FTGL_ROOT_DIR to point to your installation
-- For the time being switching ON 'builtin_ftgl' option
-- Cannot select cudnn without selecting cuda or tmva-gpu. Option is ignored
-- Performing Test ROOT_HAVE_CXX_ATOMICS_WITHOUT_LIB
-- Performing Test ROOT_HAVE_CXX_ATOMICS_WITHOUT_LIB - Success
-- Building LLVM in 'Release' mode.
-- The ASM compiler identification is MSVC
-- Found assembler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x86/cl.exe
-- Looking for backtrace
-- Looking for backtrace - not found
-- Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)
-- Native target architecture is X86
-- Threads disabled.
-- Doxygen disabled.
-- Go bindings disabled.
-- LLVM host triple: i686-pc-win32
-- LLVM default target triple: i686-pc-win32
-- Found PythonInterp: C:/Users/faust/AppData/Local/Programs/Python/Python38/python.exe (found version "3.8.2")
-- Constructing LLVMBuild project information
-- LLVMHello ignored -- Loadable modules not supported on this platform.
-- Targeting X86
-- Targeting NVPTX
-- Clang version: 5.0.0
-- PrintFunctionNames ignored -- Loadable modules not supported on this platform.
-- AnnotateFunctions ignored -- Loadable modules not supported on this platform.
-- BugpointPasses ignored -- Loadable modules not supported on this platform.
-- Cling version (from VERSION file): ROOT_0.7~dev
CMake Error at C:/Program Files/CMake/share/cmake-3.17/Modules/ExternalProject.cmake:2454 (message):
  error: could not find git for clone of clad
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.17/Modules/ExternalProject.cmake:3267 (_ep_add_download_command)
  interpreter/cling/tools/plugins/clad/CMakeLists.txt:29 (ExternalProject_Add)

-- Configuring incomplete, errors occurred!
See also "C:/root-6.20.04-build/CMakeFiles/CMakeOutput.log".
See also "C:/root-6.20.04-build/CMakeFiles/CMakeError.log".
````Preformatted text`

`````

[CMakeError.txt](https://root-forum.cern.ch/uploads/short-url/hkHk5Cy3ZUl4rYOZzFCUWHqW4S6.txt) (68.7 KB) [CMakeOutput.txt](https://root-forum.cern.ch/uploads/short-url/gzSnqC01EBb0jgOArbuyNAlwk93.txt) (42.8 KB)

---

<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 9, 2020, 7:09pm UTC](https://root-forum.cern.ch/t/installation-problems-root/39334/10 "2020-05-09T19:09:21Z")

</div>

If you read carefully the error message, you can read:

```auto
CMake Error at C:/Program Files/CMake/share/cmake-3.17/Modules/ExternalProject.cmake:2454 (message):
  error: could not find git for clone of clad

```

So you can maybe try to install git for Windows…

---

<div class="post-metadata">

**Author:** ![faca87](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/b19c9b/32.png) [@faca87](https://root-forum.cern.ch/u/faca87)\
**Post date:** [May 10, 2020, 8:35am UTC](https://root-forum.cern.ch/t/installation-problems-root/39334/11 "2020-05-10T08:35:37Z")

</div>

Thank you @bellenot  
Maybe I installed ROOT, because I had no errors (but I had 87 waminngs) as you can see by the log  
[log.txt](https://root-forum.cern.ch/uploads/short-url/bafXqq3K9HYyzPObuQ4H4UDNaCu.txt) (597.7 KB)

But in the start menu I don’t see ROOT (When I installed it by binary file, I had ROOT in the stard menu).  
Maybe it’s normal, because I also use Geant4 and I don’t have it in the start menu…but how should I run ROOT now?  
Thank you

---

<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 10, 2020, 3:41pm UTC](https://root-forum.cern.ch/t/installation-problems-root/39334/12 "2020-05-10T15:41:43Z")

</div>

> [@faca87](#):
>
> but how should I run ROOT now?

First call `thisroot.bat`:

```auto
C:\root-6.20.04-build\bin\thisroot.bat

```

then, from a Visual Studio command prompt, simply type `root`. or `root -l`

---

<div class="post-metadata">

**Author:** ![faca87](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/b19c9b/32.png) [@faca87](https://root-forum.cern.ch/u/faca87)\
**Post date:** [May 10, 2020, 4:20pm UTC](https://root-forum.cern.ch/t/installation-problems-root/39334/13 "2020-05-10T16:20:31Z")

</div>

Thank you @bellenot it worked but I’ve 2 last question please.

1. I tried to run a old macro…it works but it cant’ produce pdf plots (it pruduce png plots, but not pdf ones)

```auto
ERROR in TPDF::Open: Cannot open file:C:/corona.pdf
It looks like a problem in TPDF...

```

1. I created a bat file to pass the commands

```auto
cd C:\root-6.20.04-build\bin
thisroot.bat
root -l

```

but it looks like working just until

```auto
cd C:\root-6.20.04-build\bin
thisroot.bat

```

It doesn’t open root (the root -l command) do you know the reason?

---

<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 10, 2020, 6:18pm UTC](https://root-forum.cern.ch/t/installation-problems-root/39334/14 "2020-05-10T18:18:41Z")

</div>

> [@faca87](#):
>
> I tried to run a old macro…it works but it cant’ produce pdf plots (it pruduce png plots, but not pdf ones)

Weird, it should work, try to not save in the root (`C:\`) directory.

And here is how your batch script should look like:

```auto
@echo off
call C:\root-6.20.04-build\bin\thisroot.bat
root -l

```

---

<div class="post-metadata">

**Author:** ![faca87](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/b19c9b/32.png) [@faca87](https://root-forum.cern.ch/u/faca87)\
**Post date:** [May 10, 2020, 6:44pm UTC](https://root-forum.cern.ch/t/installation-problems-root/39334/15 "2020-05-10T18:44:55Z")

</div>

> [@bellenot](#):
>
> Weird, it should work, try to not save in the root ( `C:\` ) directory.

Oh yes! you are right I didn’t think that in C:/ we need permission!

> [@bellenot](#):
>
> ```auto
> @echo off
> call C:\root-6.20.04-build\bin\thisroot.bat
> root -l
> 
> ```

I tried it but it says that the input line is so long…is there other solution? Anyway, that’s no a big problem, so don’t worry about that!

---

<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 10, 2020, 6:53pm UTC](https://root-forum.cern.ch/t/installation-problems-root/39334/16 "2020-05-10T18:53:30Z")

</div>

> [@faca87](#):
>
> I tried it but it says that the input line is so long…

This should work, it works just fine for me. How do you call it?

---

<div class="post-metadata">

**Author:** ![faca87](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/b19c9b/32.png) [@faca87](https://root-forum.cern.ch/u/faca87)\
**Post date:** [May 10, 2020, 6:56pm UTC](https://root-forum.cern.ch/t/installation-problems-root/39334/17 "2020-05-10T18:56:59Z")

</div>

I just write `root.bat`

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\> root.bat

---

<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 10, 2020, 7:01pm UTC](https://root-forum.cern.ch/t/installation-problems-root/39334/18 "2020-05-10T19:01:10Z")

</div>

Try to start from your home directory (`cd %USERPROFILE%`)

---

<div class="post-metadata">

**Author:** ![faca87](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/b19c9b/32.png) [@faca87](https://root-forum.cern.ch/u/faca87)\
**Post date:** [May 11, 2020, 6:24pm UTC](https://root-forum.cern.ch/t/installation-problems-root/39334/19 "2020-05-11T18:24:27Z")

</div>

Hi @bellenot, I get the same error…but really don’t worry…I will write 2 times root…it isn’t a problem!

---

<div class="post-metadata">

**Author:** ![faca87](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/b19c9b/32.png) [@faca87](https://root-forum.cern.ch/u/faca87)\
**Post date:** [May 15, 2020, 4:46pm UTC](https://root-forum.cern.ch/t/installation-problems-root/39334/20 "2020-05-15T16:46:14Z")

</div>

Hi @bellenot sorry, but I was trying to use this macro (it worked in the past by using the ROOT installed by binary file)

[caloeff.cpp](https://root-forum.cern.ch/uploads/short-url/bUhLhHnndfyArv2duYSyYz31HcG.cpp) (230.5 KB)

but you see when I run it, nothing is happening

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/d/9/d960a1322e8d9fe8773ae90aa85cb34e790ab096.png)

this is the root file

[si-500596.root](https://root-forum.cern.ch/uploads/short-url/5qSdYA6aE3XSmqBn2frMEjCI1oT.root) (1.4 MB)

And it isn’t the only one…for example this running this macro

[calocal.cpp](https://root-forum.cern.ch/uploads/short-url/sc50uMxFH0eCeOwV7Hm85PDd6cd.cpp) (70.7 KB)

I get the same problem

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/7/8/783ff9ca8d2f8845a64a60061dfbbc6f014a3ef1.png)

[here the root file](https://we.tl/t-GM19068BcC)

but I used these macros in the past

Do you understand the reason?

[Next page](https://root-forum.cern.ch/t/installation-problems-root/39334.md?page=2)
