Skip to content

finding TUnfold on recent LCG or with micromamba installation

While installing:

CMake Error at cmake/FindTUnfold.cmake:52 (file):                                                                              
  file STRINGS file "/home/connorpa/.micromamba/envs/DAS/include/TUnfold.h"                                                    
  cannot be read.                                                                                                              
Call Stack (most recent call first):                                                                                           
  CMakeLists.txt:26 (find_package)                                                                                             
                                                                                                                               
                                                                                                                               
CMake Error at /home/connorpa/.micromamba/envs/DAS/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:233 (message): 
  Could NOT find TUnfold: Found unsuitable version ".", but required is at                                                     
  least "17.9" (found                                                                                                          
  /home/connorpa/Exercises/DasAnalysisSystem/tools/lib/libTUnfold.so)                                                          
Call Stack (most recent call first):                                                                                           
  /home/connorpa/.micromamba/envs/DAS/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:601 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindTUnfold.cmake:65 (find_package_handle_standard_args)                                                               
  CMakeLists.txt:26 (find_package)                                                                                             
  • With micromamba, the solution is simply to not install RooUnfold (it should be removed from the prerequisites.yml).
  • With recent LCG version, RooUnfold is unfortunately already installed, so this requires a more advanced solution.