Unfortunately, I let the original thread reach its deadline…
In the meantime, I tested this:
- I tried to set absolute paths everywhere in my macro.
- I tried the last version of ROOT, 6.26/04 (installed with brew)
Again, it works fine when I execute the macro from the directory where it is, but I still get the same error when I try to execute it from another directory:
root  .x scripts/PKS2155_macro.C RooFit v3.60 -- Developed by Wouter Verkerke and David Kirkby Copyright (C) 2000-2013 NIKHEF, University of California & Stanford University All rights reserved, please read http://roofit.sourceforge.net/license.txt libLIVlihoodClasses dictionary payload:5:10: remark: could not acquire lock file for module 'LIVlihoodClasses': failed to create unique file /usr/local/Cellar/root/6.26.04/lib/root/LIVlihoodClasses.pcm.lock-8fead47d: Permission denied [-Rmodule-build] #include "/Users/bolmont/ownCloud/Boulot/LIV HMV/SOFT/YAML_config_file/LIVlib/inc/Data.h" ^ libLIVlihoodClasses dictionary payload:5:10: remark: building module 'LIVlihoodClasses' as '/usr/local/Cellar/root/6.26.04/lib/root/LIVlihoodClasses.pcm' [-Rmodule-build] error: unable to open output file '/usr/local/Cellar/root/6.26.04/lib/root/LIVlihoodClasses.pcm': 'Permission denied' libLIVlihoodClasses dictionary payload:5:10: remark: finished building module 'LIVlihoodClasses' [-Rmodule-build] libLIVlihoodClasses dictionary payload:5:10: fatal error: could not build module 'LIVlihoodClasses' #include "/Users/bolmont/ownCloud/Boulot/LIV HMV/SOFT/YAML_config_file/LIVlib/inc/Data.h" ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in <TInterpreter::AutoParse>: Error parsing payload code for class SimRunnerMinuitFromFile with content: #line 1 "libLIVlihoodClasses dictionary payload" ............
I’m still trying to find a workaround, but any help would be really appreciated!
_ROOT Version: 6.26/04
_Platform: Mac OS X 11.6.5
_Compiler: AppleClang 126.96.36.19900029