# Occuring errors while trying to build ROOT from source

**URL:** <https://root-forum.cern.ch/t/occuring-errors-while-trying-to-build-root-from-source/34577>\
**Category:** Newbie\
**Created:** [June 13, 2019, 2:59pm UTC](https://root-forum.cern.ch/t/occuring-errors-while-trying-to-build-root-from-source/34577 "2019-06-13T14:59:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LKaufmann](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/258eb7/32.png) [@LKaufmann](https://root-forum.cern.ch/u/LKaufmann)\
**Post date:** [June 13, 2019, 2:59pm UTC](https://root-forum.cern.ch/t/occuring-errors-while-trying-to-build-root-from-source/34577/1 "2019-06-13T14:59:18Z")

</div>

Hello!

I was trying to build ROOT from source. While making the cmake command, some errors occured:

– The C compiler identification is GNU 7.4.0  
– The CXX compiler identification is GNU 7.4.0  
– Check for working C compiler: /usr/bin/cc  
– Check for working C compiler: /usr/bin/cc – 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: /usr/bin/c++  
– Check for working CXX compiler: /usr/bin/c++ – works  
– Detecting CXX compiler ABI info  
– Detecting CXX compiler ABI info - done  
– Detecting CXX compile features  
– Detecting CXX compile features - done  
– Found Git: /usr/bin/git (found version “2.17.1”)  
– ROOT default compression algorithm: zlib  
– Found GCC. Major version 7, minor version 7  
– Performing Test HAS\_CXX11  
– Performing Test HAS\_CXX11 - Success  
– Looking for pthread.h  
– Looking for pthread.h - found  
– Looking for pthread\_create  
– Looking for pthread\_create - not found  
– Looking for pthread\_create in pthreads  
– Looking for pthread\_create in pthreads - not found  
– Looking for pthread\_create in pthread  
– Looking for pthread\_create in pthread - found  
– Found Threads: TRUE  
– Found a 64bit system  
– Found GNU compiler collection  
– Performing Test GLIBCXX\_USE\_CXX11\_ABI  
– Performing Test GLIBCXX\_USE\_CXX11\_ABI - Success  
– ROOT Platform: linux  
– ROOT Architecture: linuxx8664gcc  
– Build Type: RelWithDebInfo  
– Compiler Flags: -Wno-implicit-fallthrough -Wno-noexcept-type -pipe -m64 -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread -std=c++11  
– 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  
– Building pcre version 8.37 included in ROOT itself  
– Looking for LZMA  
– LZMA not found. Switching on builtin\_lzma option  
– Building LZMA version 5.2.1 included in ROOT itself  
– 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  
– Looking for X11  
CMake Error at /usr/share/cmake-3.10/Modules/FindX11.cmake:429 (message):  
Could not find X11  
Call Stack (most recent call first):  
cmake/modules/SearchInstalledSoftware.cmake:9 (\_find\_package)  
cmake/modules/SearchInstalledSoftware.cmake:271 (find\_package)  
CMakeLists.txt:150 (include)

– Configuring incomplete, errors occurred!  
See also “/home/lmk/Downloads/root-6.16.00/obj/CMakeFiles/CMakeOutput.log”.  
See also “/home/lmk/Downloads/root-6.16.00/obj/CMakeFiles/CMakeError.log”.

I am very new to ROOT and I dont really know how to fix this, so help is very much appreciated!  
Thank you!

---

<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:** [June 14, 2019, 6:21am UTC](https://root-forum.cern.ch/t/occuring-errors-while-trying-to-build-root-from-source/34577/2 "2019-06-14T06:21:36Z")

</div>

This probably means that you are missing some dependencies for X11.

---

<div class="post-metadata">

**Author:** ![pamputt](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pamputt/32/12526_2.png) [@pamputt](https://root-forum.cern.ch/u/pamputt)\
**Post date:** [June 14, 2019, 6:59am UTC](https://root-forum.cern.ch/t/occuring-errors-while-trying-to-build-root-from-source/34577/3 "2019-06-14T06:59:48Z")

</div>

To find which dependencies, look at [here](https://root.cern.ch/build-prerequisites).
