ROOT won't build on WSL Ubuntu 24.04

Hi, I am downloading the most recent stable version of ROOT via git, and get the following error during the cmake stage:

aregjan@radiocarbon:~/git/root_build$ cmake -DCMAKE_INSTALL_PREFIX=../root_install ../root_src
CMake Deprecation Warning at CMakeLists.txt:36 (cmake_policy):
  The OLD behavior for policy CMP0116 will be removed from a future version
  of CMake.

 [blah blah]
-- Looking for XROOTD
CMake Warning at cmake/modules/SearchInstalledSoftware.cmake:18 (_find_package):
  By not providing "FindXRootD.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "XRootD", but
  CMake did not find one.

  Could not find a package configuration file provided by "XRootD" with any
  of the following names:

    XRootDConfig.cmake
    xrootd-config.cmake

  Add the installation prefix of "XRootD" to CMAKE_PREFIX_PATH or set
  "XRootD_DIR" to a directory containing one of the above files.  If "XRootD"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  cmake/modules/SearchInstalledSoftware.cmake:900 (find_package)
  CMakeLists.txt:298 (include)


-- XROOTD not found, enabling 'builtin_xrootd' option
CMake Error at /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY
  OPENSSL_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.28/Modules/FindOpenSSL.cmake:668 (find_package_handle_standard_args)
  cmake/modules/SearchInstalledSoftware.cmake:18 (_find_package)
  builtins/xrootd/CMakeLists.txt:9 (find_package)


-- Configuring incomplete, errors occurred!
aregjan@radiocarbon:~/git/root_build$ which openssl
/usr/bin/openssl

When I search for openssl, it’s clearly in my path, as seen above.

Among other things, it can’t find python3 – even though it’s clearly in my path. It’s as if cmake is not able to find packages which are clearly there…

Have any of you seen anything similar?

p.s. for whatever it’s worth , I recently did an upgrade on WSL Ubuntu, from 22.04 to 24.04


ROOT Version: latest stable (12/11/2024)
Platform: Ubuntu 24.04.1 LTS, on Windows 11 WSL
Compiler: Not Provided / irrelevant


If you’re not doing anything special, you don’t have to compile it, just download and use the pre-compiled binary for Ubuntu 24.04.

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