Open nsjarvis opened 2 months ago
Also adding some old news here for the knowledgebase. We have python3.11, it arrived with alma9. Root does not like it.
mkdir -p root-6.24.04/build_dir
cd root-6.24.04/build_dir ; cmake3 .. -DCMAKE_INSTALL_PREFIX=.. -Dgdml=ON -Droofit=ON -Dmysql=OFF -Ddavix=OFF -Dbuiltin_tbb=ON -DCMAKE_CXX_STANDARD=11
-- The C compiler identification is GNU 11.4.1
-- The CXX compiler identification is GNU 11.4.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.43.5")
-- Looking for Python
-- Could NOT find Python3 (missing: Python3_INCLUDE_DIRS Python3_LIBRARIES Development NumPy Development.Module Development.Embed) (found version "3.11.7")
-- Could NOT find Python2 (missing: Python2_EXECUTABLE Python2_INCLUDE_DIRS Python2_LIBRARIES Python2_NumPy_INCLUDE_DIRS Interpreter Development NumPy Development.Module Development.Embed)
Reason given by package:
Interpreter: Wrong major version for the interpreter "/bin/python"
CMake Warning at cmake/modules/SearchRootCoreDeps.cmake:222 (message):
No supported Python 2 or 3 development packages were found; PyROOT will not
be built.
Call Stack (most recent call first):
CMakeLists.txt:129 (include)
This is after disabling 3.11
-- Looking for Python
-- Could NOT find Python3 (missing: Python3_INCLUDE_DIRS Python3_LIBRARIES Development NumPy Development.Module Development.Embed) (found v
ersion "3.9.18")
-- Could NOT find Python2 (missing: Python2_EXECUTABLE Python2_INCLUDE_DIRS Python2_LIBRARIES Python2_NumPy_INCLUDE_DIRS Interpreter Develo
pment NumPy Development.Module Development.Embed)
Reason given by package:
Interpreter: Wrong major version for the interpreter "/bin/python"
CMake Warning at cmake/modules/SearchRootCoreDeps.cmake:222 (message):
No supported Python 2 or 3 development packages were found; PyROOT will not
be built.
Call Stack (most recent call first):
CMakeLists.txt:129 (include)
Update August 19
I made another attempt at this. This is what I did:
./gluex_prereqs_almalinux_9.sh: line 22: /gluex_install/gluex_prereqs_postprocessor.sh: No such file or directory
gluex_install/gluex_install.sh -t aug18
Could NOT find Python (missing: Python_EXECUTABLE Python_INCLUDE_DIRS
Python_LIBRARIES Interpreter Development Development.Module
Development.Embed)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake/Modules/FindPython.cmake:622 (find_package_handle_standard_args)
CMakeLists.txt:13 (find_package)
The log file is too big to attach here. It is in /w/halld-scshelf2101/njarvis/alma9/aug18_install_log.txt
For some reason, the necessary packages (e.g. python-devel) were installed for python3.9 but ROOT is trying to use python3.11. I make these additional 2 steps to compile the full stack with the correct dependencies for python3.9 on gluon02:
In build_scripts, force root to use python3.9 which is linked to the default /usr/bin/python
:
diff --git a/Makefile_root_6_inc b/Makefile_root_6_inc
index 287ff70..582c2cd 100644
--- a/Makefile_root_6_inc
+++ b/Makefile_root_6_inc
@@ -70,7 +70,7 @@ $(ROOTDIR)/.clone_done:
$(ROOTDIR)/.cmake_done: $(SOURCE_TARGET)
mkdir -p $(BUILD_DIR)
- cd $(BUILD_DIR) ; $(CMAKE) .. -DCMAKE_INSTALL_PREFIX=.. $(CMAKE_VERBOSE_OPTION) -Dgdml=ON -Droofit=ON -Dmysql=OFF -Ddavix=OFF -Dbuiltin_tbb=ON -DCMAKE_CXX_STANDARD=11
+ cd $(BUILD_DIR) ; $(CMAKE) .. -DCMAKE_INSTALL_PREFIX=.. $(CMAKE_VERBOSE_OPTION) -Dgdml=ON -Droofit=ON -Dmysql=OFF -Ddavix=OFF -Dbuiltin_tbb=ON -DCMAKE_CXX_STANDARD=11 -DPYTHON_EXECUTABLE=/usr/bin/python
date > $@
13c13
< find_package(Python REQUIRED COMPONENTS Interpreter Development)
---
> find_package(Python 3.9 EXACT COMPONENTS Interpreter Development)
I don't know why the prerequisite packages were not installed for python3.11 instead.
This is a bit weird as it was ok with the older version set 5.15.0
install_log_5_19_0.txt