-- ROOT default compression algorithm: zlib
-- PyROOT will be built for version 3.9.13
-- Looking for ZLib
-- Looking for Freetype
CMake Warning (dev) at /home/XXXXX /software/cmake/cmake-3.24.1/install/share/cmake-3.24/Modules/ExternalProject.cmake:3071 (message):
...
...
Call Stack (most recent call first):
/home/XXXXX /software/cmake/cmake-3.24.1/install/share/cmake-3.24/Modules/ExternalProject.cmake:4167 (_ep_add_download_command)
builtins/pcre/CMakeLists.txt:37 (ExternalProject_Add)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Looking for LZMA
-- Looking for X11
CMake Error at cmake/modules/SearchInstalledSoftware.cmake:357 (message):
libXpm and Xpm headers must be installed.
Call Stack (most recent call first):
CMakeLists.txt:245 (include)
-- Configuring incomplete, errors occurred!
I got error
libXpm and Xpm headers must be installed.
So most likely this is not a ROOT problem but an issue with your environment.
You should make sure that you can get this simple CMake example to work (create a directory, put this snippet in CMakeLists.txt and run cmake .).
cmake_minimum_required(VERSION 3.5)
project(test)
find_package(X11 REQUIRED)
# All these need to be true for ROOT to compile
message(STATUS ${X11_FOUND})
message(STATUS ${X11_Xpm_FOUND})
message(STATUS ${X11_Xft_FOUND})
message(STATUS ${X11_Xext_FOUND})
In general we strongly advise against such an environment where you install system packages outside the system to circumvent the need to sudo.
Have you asked your server administrator to install the required dependencies for building ROOT? Especially if you are in a particle physics institute, I’m sure they will have no problem installing the dependencies of ROOT with with system package manager. That would save everyone a lot of headache.