I am trying to install ROOT 6.26.10 on Fedora 37. I have tried to install it via conda, snap, and dnf, but none of these methods have worked, and as far as I can tell there is no binary release available for Fedora 37. I am able to install it by downloading the rpm from koji.fedoraproject[dot]org/koji/buildinfo?buildID=2089931 but it leaves me with a limited installation that I cannot import into Python and in which I can not load the Delphes library, even when I set the relevant PATH variables in my bashrc. When I try to build it from source I get the following error:
CMake Error at cmake/modules/SearchInstalledSoftware.cmake:101 (message):
Could not find nlohmann/json_fwd.hpp, which is required for versions
greater than 3.11. It is installed by default, so your installation is incomplete!
I do have nlohmann installed, I have tried reinstalling it and installing the devel version but I still get the same error. I have tried exporting the path
I’m thinking you maybe have to run pyroot instead of python, or alternatively access the Python environment via JupyROOT with root --notebook; the snap doesn’t integrate with the system environment, it ships its own environment with it that’s separated instead.
– Looking for Python
– Found Python3: /home/karef/.pyenv/versions/3.9-dev/bin/python3.9 (found version “3.9.16”) found components: Interpreter Development NumPy Development.Module Development.Embed
but still it gives the same error as above with respect to nlohmann/json_fwd.hpp.
Using the ROOT rpm that I did manage to install, evaluating
root-config --python-version
gives me 3.11.0. I then try to change to this version with pyenv
pyenv install 3.11.0
pyenv global 3.11.0
and running
python --version
then gives me 3.11.2, not 3.11.0. This might be because my system version is 3.11.2, and pyenv is unable to give 3.11.0 without me first uninstalling the system version, which I would rather not do if it is possible to avoid in order not to break any dependencies. With 3.11.2 I am still unable to import ROOT in Python or to load the Delphes library directly in ROOT.
The snap released failed in the same sense as the rpm release, that I was unable to import ROOT in Python, or import the Delphes library in ROOT. However, I now reinstalled ROOT using snap, added the lines