Install ROOT v6-20-04

Hello ROOTers,

I tryed to install ROOT v6-20-04 with this official guide but doesn’t work:

## Building
Clone the repo

    $ git clone https://github.com/root-project/root.git

    $ cd root

    $ git checkout -b v6-20-04 v6-20-04 (return in the folder previus cd root)
    
Make a directory for building

    $ mkdir build
    $ cd build
    
Run cmake and make

    $ cmake -Dall=ON -Dfortran=ON ../root
    $ make -j8

Setup and run ROOT

    $ source bin/thisroot.sh
    $ mousepad ~/.bashrc  (add this line) 
       
        source /home/.../bin/thisroot.sh 
        alias root='root -l'

    $ root

I installed this dependence https://root.cern.ch/build-prerequisites but after cmake i received this error:

-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.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.25.1") 
-- Looking for python
-- Preferring Python version 3
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
  Could NOT find Python (missing: Python_EXECUTABLE Python_LIBRARIES
  Python_INCLUDE_DIRS Interpreter Development)
Call Stack (most recent call first):
  /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.16/Modules/FindPython.cmake:347 (find_package_handle_standard_args)
  cmake/modules/SearchRootCoreDeps.cmake:70 (find_package)
  CMakeLists.txt:120 (include)


-- Configuring incomplete, errors occurred!
See also "/home/samuele/Scrivania/ROOT/CMakeFiles/CMakeOutput.log".

Is not the first time that i use this guide, always work… Can someone help me please? I need to use ROOT for my thesis.

_ROOT Version: v6-20-04
_Platform: Xubuntu 20.04
_Compiler: gcc version 9.3.0

Hi,
it seems python-dev not installed.

Installing python-dev it works, thanks a lot!

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