# Root executable not found after a successful \`make install\`, \`root-config\` is found anyway

**URL:** <https://root-forum.cern.ch/t/root-executable-not-found-after-a-successful-make-install-root-config-is-found-anyway/39499>\
**Category:** ROOT\
**Tags:** cmake\
**Created:** [May 19, 2020, 9:12pm UTC](https://root-forum.cern.ch/t/root-executable-not-found-after-a-successful-make-install-root-config-is-found-anyway/39499 "2020-05-19T21:12:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Javier\_Galan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/javier_galan/32/29662_2.png) [@Javier\_Galan](https://root-forum.cern.ch/u/Javier_Galan)\
**Post date:** [May 19, 2020, 9:12pm UTC](https://root-forum.cern.ch/t/root-executable-not-found-after-a-successful-make-install-root-config-is-found-anyway/39499/1 "2020-05-19T21:12:53Z")

</div>

I have pulled root from Git, compiled on 6.20/04 using cmake from the build directory.

Everything seemed to work fine, I have even `root-config` command accessible.

```auto
source /path/to/install/thisroot.sh
root-config --version

```

gives `6.20/04`.

However no `root` executable is found. I had to disable X11, I have previously compiled and installed root on other systems with this version. The difference now is that I am disabling X11.

My bin directory looks like this

 ![Screenshot 2020-05-19 at 23.08.00](https://root-forum.cern.ch/uploads/default/original/3X/c/6/c6b1fb2df5b45d1b5f57ec03e7b45516c5680069.png)

No trace of the usual `root` executable in Linux.

> **output from cmake**
>
> /git/root/build$ cmake -Dx11=OFF -Dxft=OFF …/  
> – Looking for python  
> – Preferring Python version 2  
> – ROOT default compression algorithm: zlib  
> – Found GCC. Major version 6, minor version 3  
> – Found a 64bit system  
> – Found GNU compiler collection  
> – ROOT Platform: linux  
> – ROOT Architecture: linuxx8664gcc  
> – Build Type: Release (flags = ‘-O3 -DNDEBUG’)  
> – Compiler Flags: -O3 -DNDEBUG -std=c++11 -pipe -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread  
> – Looking for ZLib  
> – Building freetype version 2.6.1 included in ROOT itself  
> – Building LZMA version 5.2.4 included in ROOT itself  
> – Cannot select cudnn without selecting cuda or tmva-gpu. Option is ignored  
> – Building LLVM in ‘Release’ mode.  
> – Native target architecture is X86  
> – Threads disabled.  
> – Doxygen disabled.  
> – Go bindings disabled.  
> – LLVM host triple: x86\_64-unknown-linux-gnu  
> – LLVM default target triple: x86\_64-unknown-linux-gnu  
> – Building with -fPIC  
> – Constructing LLVMBuild project information  
> – Linker detection: GNU ld  
> – SysLibs: rt;dl;-lpthread;/usr/lib/x86\_64-linux-gnu/libz.so  
> – Targeting X86  
> – Targeting NVPTX  
> – Clang version: 5.0.0  
> – Cling version (from VERSION file): ROOT\_0.7~dev  
> – Cling will look for C++ headers in ‘/usr/include/c++/6:/usr/include/x86\_64-linux-gnu/c++/6:/usr/include/c++/6/backward’ at runtime.  
> – And then fallback to: ‘x86\_64-linux-gnu-g+±6’  
> – Use SSL API VERSION 1.1 for civetweb  
> – Performing Test found\_stdstringview  
> – Performing Test found\_stdstringview - Failed  
> – Performing Test found\_stdexpstringview  
> – Performing Test found\_stdexpstringview - Failed  
> – Performing Test found\_stdapply  
> – Performing Test found\_stdapply - Failed  
> – Performing Test found\_stdinvoke  
> – Performing Test found\_stdinvoke - Failed  
> – Performing Test found\_stdindexsequence  
> – Performing Test found\_stdindexsequence - Failed  
> bash: warning: setlocale: LC\_ALL: cannot change locale (en\_US.UTF-8)  
> – Enabled support for: builtin\_clang builtin\_freetype builtin\_llvm builtin\_lz4 builtin\_lzma builtin\_pcre builtin\_tbb builtin\_vdt builtin\_xxhash builtin\_zstd clad dataframe exceptions gdml http imt mlp pyroot roofit runtime\_cxxmodules shared ssl tmva tmva-pymva spectrum vdt  
> – Configuring done  
> – Generating done  
> – Build files have been written to: /home/jgalan/git/root/build
> 
> ```auto
> 
> ```

---

<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 19, 2020, 9:14pm UTC](https://root-forum.cern.ch/t/root-executable-not-found-after-a-successful-make-install-root-config-is-found-anyway/39499/2 "2020-05-19T21:14:56Z")

</div>

Use “`root.exe`”.

---

<div class="post-metadata">

**Author:** ![Javier\_Galan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/javier_galan/32/29662_2.png) [@Javier\_Galan](https://root-forum.cern.ch/u/Javier_Galan)\
**Post date:** [May 19, 2020, 9:18pm UTC](https://root-forum.cern.ch/t/root-executable-not-found-after-a-successful-make-install-root-config-is-found-anyway/39499/3 "2020-05-19T21:18:03Z")

</div>

Ok, I see that works. But why the standard `root` executable disappeared from my installation?

---

<div class="post-metadata">

**Author:** ![amadio](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/amadio/32/12562_2.png) [@amadio](https://root-forum.cern.ch/u/amadio)\
**Post date:** [May 20, 2020, 7:08am UTC](https://root-forum.cern.ch/t/root-executable-not-found-after-a-successful-make-install-root-config-is-found-anyway/39499/4 "2020-05-20T07:08:42Z")

</div>

`root` is just a wrapper around `root.exe` and is only available when X11 is enabled. It handles some environment variables, the splash screen, etc. Just use root.exe, as suggested by @Wile_E_Coyote.

---

<div class="post-metadata">

**Author:** ![Javier\_Galan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/javier_galan/32/29662_2.png) [@Javier\_Galan](https://root-forum.cern.ch/u/Javier_Galan)\
**Post date:** [May 20, 2020, 7:24am UTC](https://root-forum.cern.ch/t/root-executable-not-found-after-a-successful-make-install-root-config-is-found-anyway/39499/5 "2020-05-20T07:24:42Z")

</div>

Ok, thanks, I had to do a `ln -s root.exe root` at my local installation bin to work around other scripts directly using the wrapper.

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [June 3, 2020, 7:37am UTC](https://root-forum.cern.ch/t/root-executable-not-found-after-a-successful-make-install-root-config-is-found-anyway/39499/6 "2020-06-03T07:37:55Z")

</div>

Closed on June 3, 2020, 7:37am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
