Root installation Ubuntu 18.04


Please read tips for efficient and successful posting and posting code

ROOT Version: 6
Platform: Ubuntu 18.04
Compiler:


Hi to all, i’m tryng to install root on my laptop but there are some errors that i don’t know hot to resolve

cmake …/root-6.18.04 -Dall=ON
– The C compiler identification is GNU 9.2.1
– The CXX compiler identification is GNU 9.2.1
– 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.20.1”)
– ROOT default compression algorithm: zlib
CMake Deprecation Warning at cmake/modules/RootBuildOptions.cmake:358 (message):

Option ‘memstat’ is deprecated and will be removed in the next release
of ROOT. Please contact root-dev@cern.ch should you still need it.
Call Stack (most recent call first):
CMakeLists.txt:109 (include)

CMake Deprecation Warning at cmake/modules/RootBuildOptions.cmake:358 (message):

Option ‘vmc’ is deprecated and will be removed in the next release of
ROOT. Please contact root-dev@cern.ch should you still need it.
Call Stack (most recent call first):
CMakeLists.txt:109 (include)

– Looking for a Fortran compiler
– Looking for a Fortran compiler - NOTFOUND
– Found GCC. Major version 9, minor version 2
– 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: -std=c++11 -Wno-implicit-fallthrough -Wno-noexcept-type -pipe -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread
– Looking for ZLib
– Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version “1.2.11”)
– Looking for Unuran
– Could NOT find Unuran (missing: UNURAN_LIBRARY UNURAN_INCLUDE_DIR)
– Unuran not found. Switching on builtin_unuran option
– Looking for Freetype
– Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so (found version “2.9.1”)
– 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
– LZMA not found. Switching on builtin_lzma option
– Building LZMA version 5.2.4 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
– Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
– Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
– Looking for gethostbyname
– Looking for gethostbyname - found
– Looking for connect
– Looking for connect - found
– Looking for remove
– Looking for remove - found
– Looking for shmat
– Looking for shmat - found
– Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
– X11_INCLUDE_DIR: /usr/include
– X11_LIBRARIES: /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
– X11_Xpm_INCLUDE_PATH: /usr/include
– X11_Xpm_LIB: /usr/lib/x86_64-linux-gnu/libXpm.so
– X11_Xft_INCLUDE_PATH: /usr/include
– X11_Xft_LIB: /usr/lib/x86_64-linux-gnu/libXft.so
– X11_Xext_INCLUDE_PATH:
– X11_Xext_LIB: /usr/lib/x86_64-linux-gnu/libXext.so
– Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR)
– Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR)
– Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version “1.6.37”)
– Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
– Building AfterImage library included in ROOT itself
– Looking for GSL
– Found PkgConfig: /usr/bin/pkg-config (found version “0.29.1”)
– 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_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 python
– Found PythonInterp: /usr/bin/python3.7 (found version “3.7.5”)
CMake Error at /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
Call Stack (most recent call first):
/usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.13/Modules/FindPythonLibs.cmake:309 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
cmake/modules/SearchInstalledSoftware.cmake:9 (_find_package)
cmake/modules/SearchInstalledSoftware.cmake:441 (find_package)
CMakeLists.txt:159 (include)

– Configuring incomplete, errors occurred!
See also “/home/rafik/MyPrograms/root/CMakeFiles/CMakeOutput.log”.
See also “/home/rafik/MyPrograms/root/CMakeFiles/CMakeError.log”.

After those messages i had installed python-dev but i still don’t work. Someone knows how to resolve the problem?

Maybe you need “python3-dev” (should install “python3.7-dev”).

I do it but the error occours again with this message:

cmake …/root-6.18.04
– ROOT default compression algorithm: zlib
CMake Deprecation Warning at cmake/modules/RootBuildOptions.cmake:358 (message):

Option ‘memstat’ is deprecated and will be removed in the next release
of ROOT. Please contact root-dev@cern.ch should you still need it.
Call Stack (most recent call first):
CMakeLists.txt:109 (include)

CMake Deprecation Warning at cmake/modules/RootBuildOptions.cmake:358 (message):

Option ‘vmc’ is deprecated and will be removed in the next release of
ROOT. Please contact root-dev@cern.ch should you still need it.
Call Stack (most recent call first):
CMakeLists.txt:109 (include)

– Found GCC. Major version 9, minor version 2
– Found a 64bit system
– Found GNU compiler collection
– ROOT Platform: linux
– ROOT Architecture: linuxx8664gcc
– Build Type: RelWithDebInfo
– Compiler Flags: -std=c++11 -Wno-implicit-fallthrough -Wno-noexcept-type -pipe -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread
– Looking for ZLib
– Looking for Freetype
– Building LZMA version 5.2.4 included in ROOT itself
– Looking for X11
– Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR)
– Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR)
– Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
– Building AfterImage library included in ROOT itself
– Looking for python
CMake Error at cmake/modules/SearchInstalledSoftware.cmake:444 (message):
Version mismatch between Python interpreter (3.7.5) and libraries (2.7.17).

ROOT cannot work with this configuration. Please specify only
PYTHON_EXECUTABLE to CMake with an absolute path to ensure matching
versions are found.
Call Stack (most recent call first):
CMakeLists.txt:159 (include)

– Configuring incomplete, errors occurred!
See also “/home/rafik/MyPrograms/root/CMakeFiles/CMakeOutput.log”.
See also “/home/rafik/MyPrograms/root/CMakeFiles/CMakeError.log”.
root@rafik-X580VN:/home/rafik/MyPrograms/root# apt install python3.7-dev
Lettura elenco dei pacchetti… Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato… Fatto
python3.7-dev è già alla versione più recente (3.7.5-2~19.10).
0 aggiornati, 0 installati, 0 da rimuovere e 176 non aggiornati.
root@rafik-X580VN:/home/rafik/MyPrograms/root# cmake …/root-6.18.04
– ROOT default compression algorithm: zlib
CMake Deprecation Warning at cmake/modules/RootBuildOptions.cmake:358 (message):

Option ‘memstat’ is deprecated and will be removed in the next release
of ROOT. Please contact root-dev@cern.ch should you still need it.
Call Stack (most recent call first):
CMakeLists.txt:109 (include)

CMake Deprecation Warning at cmake/modules/RootBuildOptions.cmake:358 (message):

Option ‘vmc’ is deprecated and will be removed in the next release of
ROOT. Please contact root-dev@cern.ch should you still need it.
Call Stack (most recent call first):
CMakeLists.txt:109 (include)

– Found GCC. Major version 9, minor version 2
– Found a 64bit system
– Found GNU compiler collection
– ROOT Platform: linux
– ROOT Architecture: linuxx8664gcc
– Build Type: RelWithDebInfo
– Compiler Flags: -std=c++11 -Wno-implicit-fallthrough -Wno-noexcept-type -pipe -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread
– Looking for ZLib
– Looking for Freetype
– Building LZMA version 5.2.4 included in ROOT itself
– Looking for X11
– Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR)
– Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR)
– Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
– Building AfterImage library included in ROOT itself
– Looking for python
CMake Error at cmake/modules/SearchInstalledSoftware.cmake:444 (message):
Version mismatch between Python interpreter (3.7.5) and libraries (2.7.17).

ROOT cannot work with this configuration. Please specify only
PYTHON_EXECUTABLE to CMake with an absolute path to ensure matching
versions are found.
Call Stack (most recent call first):
CMakeLists.txt:159 (include)

– Configuring incomplete, errors occurred!
See also “/home/rafik/MyPrograms/root/CMakeFiles/CMakeOutput.log”.
See also “/home/rafik/MyPrograms/root/CMakeFiles/CMakeError.log”.

Yeah i read them i have to define the Url of the librari but i don’t know what is because the only one folder about python3.7 is empty

dpkg --list "*python*dev*"  > dpkg.out.txt
which python3
python3 --version

it occours another error

CMake Error at cmake/modules/SearchInstalledSoftware.cmake:1335 (enable_language):
  No CMAKE_CUDA_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CUDACXX" or the CMake cache entry CMAKE_CUDA_COMPILER to the full
  path to the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
  CMakeLists.txt:159 (include)


-- Configuring incomplete, errors occurred!
See also "/home/rafik/MyPrograms/root/CMakeFiles/CMakeOutput.log".
See also "/home/rafik/MyPrograms/root/CMakeFiles/CMakeError.log".

Try with -Dcuda=OFF -Dtmva-gpu=OFF

Now it works thank you very much

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