Cmake error trying to build root


_ROOT Version: root_v6.16.00
Platform: ubuntu 18.04.2 LTS
Compiler:


Hello, I’m quite new in Ubuntu and I encounter this problem trying to build root:
menios@menios:~/rootbuild$ cmake …/root-6.16.00/
– The C compiler identification is GNU 7.3.0
– The CXX compiler identification is GNU 7.3.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
– Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version “1.2.11”)
– Looking for Freetype
– Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so (found version “2.8.1”)
– 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
– 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.34”)
– Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
– Building AfterImage library included in ROOT itself
– Looking for GSL
– FindGSL: gsl-config not found.
– 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.6 (found version “3.6.7”)
CMake Error at /usr/share/cmake-3.10/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.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.10/Modules/FindPythonLibs.cmake:262 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
cmake/modules/SearchInstalledSoftware.cmake:9 (_find_package)
cmake/modules/SearchInstalledSoftware.cmake:467 (find_package)
CMakeLists.txt:150 (include)

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

Do you know what’s the problem and how to overcome it?
Thank you,
Aristomenis

You will have to install the phon libraries that match your python version.

Even simpler, download ROOT binaries for your platform.

Cheers, Axel

1 Like

After all, this didn’t work either, and I tried an older version, and suddenly it worked! But I kindly thank you for your interest :slight_smile:

Please report here what problems you met when trying to use the ROOT 6.16/00 binary release (for Ubuntu 18 gcc7.3).

1 Like

When I was trying to do the configuration I was getting in the end:
– Configuring incomplete, errors occurred!
See also “/home/menios/rootbuild/CMakeFiles/CMakeOutput.log”.
See also “/home/menios/rootbuild/CMakeFiles/CMakeError.log”.

*Sorry for my delay.

Please install development packages for Python. That’s what the inital error was about. If you still have problems, please post the whole error output, as the message above is not sufficient. Cheers,

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