Fail to compile root 6 because of x11 not found

I’ve installed X11, but there’s still a problem at compile time, and what could be the cause of that?

(base) liyang@liyang-Inspiron-3542:~/root6$ cmake …/root
CMake Error at CMakeLists.txt:32 (string):
string sub-command REPLACE requires at least four arguments.

– ROOT default compression algorithm: zlib
– Found GCC. Major version 7, minor version 3
– Found a 64bit system
– Found GNU compiler collection
– ROOT Platform: linux
– ROOT Architecture: linuxx8664gcc
– Build Type: RelWithDebInfo
– Compiler Flags: -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -std=c++11 -Wno-implicit-fallthrough -Wno-noexcept-type -pipe -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread
– Building freetype version 2.6.1 included in ROOT itself
– Building LZMA version 5.2.4 included in ROOT itself
– 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:246 (find_package)
CMakeLists.txt:155 (include)

– Configuring incomplete, errors occurred!
See also “/home/liyang/root6/CMakeFiles/CMakeOutput.log”.
See also “/home/liyang/root6/CMakeFiles/CMakeError.log”.

ROOT Version: latest
Platform: ubuntu
_Compiler:_gcc 7.3


Have you installed the development packages for x11? Otherwise, you can compile without X11 support with -Dx11=OFF -Dxft=OFF. Here you can find a list of packages to install to enable most things in ROOT.

I installed everything according to the following page, but there was still the following problem

https://root.cern/build-prerequisites

(base) liyang@liyang-Inspiron-3542:~/root6$ cmake -Dx11=OFF -Dxft=OFF …/root
CMake Error at CMakeLists.txt:32 (string):
string sub-command REPLACE requires at least four arguments.

– ROOT default compression algorithm: zlib
– Found GCC. Major version 7, minor version 3
– Found a 64bit system
– Found GNU compiler collection
– ROOT Platform: linux
– ROOT Architecture: linuxx8664gcc
– Build Type: RelWithDebInfo
– Compiler Flags: -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -std=c++11 -Wno-implicit-fallthrough -Wno-noexcept-type -pipe -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread
– Building freetype version 2.6.1 included in ROOT itself
– Building LZMA version 5.2.4 included in ROOT itself
– Building AfterImage library included in ROOT itself
– Looking for GSL
– Looking for python
– Looking for LibXml2
– Looking for MySQL
– Looking for Pythia8
– Looking for BLAS for optional parts of TMVA
– A library with BLAS API not found. Please specify library location.
– Using GSL CBLAS for optional parts of TMVA
– Looking for Numpy
– Enabled support for: astiff builtin_afterimage builtin_clang builtin_freetype builtin_ftgl builtin_glew builtin_llvm builtin_lz4 builtin_lzma builtin_pcre builtin_tbb builtin_vdt builtin_xxhash builtin_zlib clad cling exceptions explicitlink gdml http imt mathmore mysql pch pythia8 python roofit shared ssl thread tmva tmva-cpu tmva-pymva vdt xml
– 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
– Targeting X86
– Clang version: 5.0.0
– Cling version (from VERSION file): ROOT_0.6~dev
– Cling will look for C++ headers in ‘/home/liyang/opt/miniconda3/bin/…/lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/…/…/…/…/x86_64-conda_cos6-linux-gnu/include/c++/7.3.0:/home/liyang/opt/miniconda3/bin/…/lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/…/…/…/…/x86_64-conda_cos6-linux-gnu/include/c++/7.3.0/x86_64-conda_cos6-linux-gnu:/home/liyang/opt/miniconda3/bin/…/lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/…/…/…/…/x86_64-conda_cos6-linux-gnu/include/c++/7.3.0/backward’ at runtime.
– And if not found, will invoke: '/home/liyang/opt/miniconda3/bin/x86_64-conda_cos6-linux-gnu-c++ ’ for them.
Recording the git revision now
– 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
– Configuring incomplete, errors occurred!
See also “/home/liyang/root6/CMakeFiles/CMakeOutput.log”.
See also “/home/liyang/root6/CMakeFiles/CMakeError.log”.

Sorry, you must have hit ROOT-10024. Please just export PYTHONPATH and try again. Alternatively, unset the ROOTSYS environment variable before building ROOT.

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