Interactive root (6.28, x86_64-el9-gcc11-opt) cannot find modules

ROOT Version: 6.28
Platform: x86_64 el9
Compiler: gcc11


Dear All,

I am trying to use root version 6.28.04 from lcg on a machine with RH9 

(kernel 5.14, gcc11). Then the interactive root command produces several screens
of output saying that it cannot load many modules.

Namely, I am defining root as follows:

export ROOTSYS=/cvmfs/sft.cern.ch/lcg/releases/ROOT/6.28.04-740f6/x86_64-el9-gcc11-opt
source ${ROOTSYS}/bin/thisroot.sh
The first few lines of the error messages produced at the attempt to use the interactive root are given below (the full output has >200 lines)

Am I doing something stupid? (most probably yes). Please, could someone explain 

how to do it right?

Many thanks in advance,
        Yuri

##-------------------------------------------------------------------------------------------------------

root
<<< cling interactive line includer >>>: fatal error: module file ‘/build/jenkins/workspace/lcg_release_pipeline/build/projects/ROOT-6.28.04/src/ROOT-6.28.04-build/lib/Vc.pcm’ not found: module file not found
<<< cling interactive line includer >>>: note: imported by module ‘MathCore’ in ‘/cvmfs/sft.cern.ch/lcg/releases/ROOT/6.28.04-740f6/x86_64-el9-gcc11-opt/lib/MathCore.pcm’
Failed to load module MathCore
Failed to load module Hist
Failed to load module ROOTBrowsable
Failed to load module Unfold

Welcome to the ROOT Forum!
I’m not familiar with ROOT from cvmfs , maybe @Danilo or @jblomer can help
Or maybe this post can help: 'TUnfold.h' file not found - #7 by jonas

[bellenot@lxplus932 ~]$ source /cvmfs/sft.cern.ch/lcg/views/LCG_105/x86_64-el9-gcc11-opt/setup.csh
[bellenot@lxplus932 ~]$ root
   ------------------------------------------------------------------
  | Welcome to ROOT 6.30/02                        https://root.cern |
  | (c) 1995-2023, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for linuxx8664gcc on Dec 20 2023, 19:16:00                 |
  | From heads/master@tags/v6-30-02                                  |
  | With g++ (GCC) 11.3.0                                            |
  | Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q'  |
   ------------------------------------------------------------------

root [0]

Using the setup script from cvmfs (instead of ROOT’s thisroot), as @bellenot suggested, should do the trick. Guessing from the attempt with thisroot.sh, it seems to be a bash environment, so

source /cvmfs/sft.cern.ch/lcg/views/LCG_105/x86_64-el9-gcc11-opt/setup.sh

(instead of setup.csh) is applicable. The LCG setup script takes care not only of the ROOT environment (ROOTSYS etc.) but also of the environment of all the dependencies of ROOT, e.g. the compiler.

1 Like

Dear Bertrand, dear Jacob,

this works, many thanks for your help!

Cheers,
Yuri

1 Like