error when running a .lhe file

Asked by Liliana

Hi whenever I open MadAnalysis5 I get this error:

MA5-ERROR: impossible to execute the commands: /usr/bin/root-config --libdir --incdir --version

and when I import a .lhe file and do some plots and submit I get an error saying that is impossible to compile the project, the compilation.log file it says this:

make: /home/lilianaqz/Desktop/madanalysis5/tools/SampleAnalyzer/ExternalSymLink/Bin/root-config: Command not found
g++ -Wall -O3 -fPIC -I/home/lilianaqz/Desktop/madanalysis5/tools/ -I./ -o Main/main.o -c Main/main.cpp
In file included from ./SampleAnalyzer/User/Analyzer/user.h:5,
                 from ./SampleAnalyzer/User/Analyzer/analysisList.h:2,
                 from Main/main.cpp:12:
/home/lilianaqz/Desktop/madanalysis5/tools/SampleAnalyzer/Interfaces/root/RootMainHeaders.h:30:10: fatal error: TROOT.h: No such file or directory
   30 | #include <TROOT.h>
      | ^~~~~~~~~
compilation terminated.
make: *** [Makefile:101: Main/main.o] Error 1

I have ROOT downloaded and this line in the bashrc:

source /home/lilianaqz/Desktop/root-6.22.06/config/thisroot.sh

I dont know what the problem is and havent found any similar posts about this.

thanks in advance :)

Question information

Language:
English Edit question
Status:
Expired
For:
MadAnalysis 5 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Benjamin Fuks (fuks) said :
#1

Hi Liliana,

Can you please run the code in debug mode (./bin/m5 -d) and send us the relevant part of what is printed to the screen. If you don't know what to copy exactly, please just provide the full screen output and we will deal with it.

Regards,

Benjamin

> On 16 Feb 2021, at 24:01 , Liliana <email address hidden> wrote:
>
> New question #695559 on MadAnalysis 5:
> https://answers.launchpad.net/madanalysis5/+question/695559
>
> Hi whenever I open MadAnalysis5 I get this error:
>
> MA5-ERROR: impossible to execute the commands: /usr/bin/root-config --libdir --incdir --version
>
> and when I import a .lhe file and do some plots and submit I get an error saying that is impossible to compile the project, the compilation.log file it says this:
>
> make: /home/lilianaqz/Desktop/madanalysis5/tools/SampleAnalyzer/ExternalSymLink/Bin/root-config: Command not found
> g++ -Wall -O3 -fPIC -I/home/lilianaqz/Desktop/madanalysis5/tools/ -I./ -o Main/main.o -c Main/main.cpp
> In file included from ./SampleAnalyzer/User/Analyzer/user.h:5,
> from ./SampleAnalyzer/User/Analyzer/analysisList.h:2,
> from Main/main.cpp:12:
> /home/lilianaqz/Desktop/madanalysis5/tools/SampleAnalyzer/Interfaces/root/RootMainHeaders.h:30:10: fatal error: TROOT.h: No such file or directory
> 30 | #include <TROOT.h>
> | ^~~~~~~~~
> compilation terminated.
> make: *** [Makefile:101: Main/main.o] Error 1
>
> I have ROOT downloaded and this line in the bashrc:
>
> source /home/lilianaqz/Desktop/root-6.22.06/config/thisroot.sh
>
> I dont know what the problem is and havent found any similar posts about this.
>
> thanks in advance :)
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Revision history for this message
Liliana (liliana24) said :
#2

Hi, sorry for the late response I never got the notification, I did that and when I run ./bin/ma5 -d the only error that appears is:

MA5: - FastJet [OK]
MA5-DEBUG: ------------------------------------------------------
MA5-DEBUG: Detect package root
MA5-DEBUG: Is there a veto? ...
MA5-DEBUG: no user veto
MA5-DEBUG: Detection of the package in the location specified by the user ...
MA5-DEBUG: Detection of the package in the "tools" folder ...
MA5-DEBUG: Detecting root-config in the tools folder ...
MA5-DEBUG: Try to detect automatically the package ...
MA5-DEBUG: which: /snap/bin/root-config [is it a link? True]
MA5-DEBUG: -> /usr/bin/snap
MA5-DEBUG: which-all:
MA5-DEBUG: - /snap/bin/root-config
MA5-DEBUG: Extract more informations related to the package ...
MA5-DEBUG: Trying to get library and header paths ...
MA5-ERROR: impossible to execute the commands: /usr/bin/root-config --libdir --incdir --version
MA5-DEBUG: Saving informations ...
MA5: - Root [OK]

then I imported a .lhe file and plotted a mass (plot M(ta+ ta-)) and got this error:

MA5: Writing the list of datasets...
MA5: Writing the command line history...
MA5: Creating Makefiles...
MA5: Compiling 'SampleAnalyzer'...
MA5-ERROR: impossible to compile the project. For more details, see the log file:
MA5-ERROR: /home/lilianaqz/Desktop/madanalysis5/ANALYSIS_0/Build/Log/compilation.log
MA5-ERROR: job submission aborted.
ma5>

and when I open the log file it says:

MA5: Writing the list of datasets...
MA5: Writing the command line history...
MA5: Creating Makefiles...
MA5: Compiling 'SampleAnalyzer'...
MA5-ERROR: impossible to compile the project. For more details, see the log file:
MA5-ERROR: /home/lilianaqz/Desktop/madanalysis5/ANALYSIS_0/Build/Log/compilation.log
MA5-ERROR: job submission aborted.
ma5>

thanks again for the fast answer and for your time.

Liliana.

Revision history for this message
Jack Y. Araz (jackaraz) said :
#3

Hi Liliana

A quick solution is to deactivate ROOT (I believe you are not using at the moment). this can be done by setting line

# root_veto = 0 # 0=No, 1=Yes

to

root_veto = 1

in 'madanalysis/input/installation_options.dat'. Madanalysis will compile again and won't include root in the compilation.

This issue might be due to the version clash could you send include the file in "/home/lilianaqz/Desktop/madanalysis5/ANALYSIS_0/Build/Log/compilation.log" this will tell us more about the error.

Cheers
Jack

Revision history for this message
Launchpad Janitor (janitor) said :
#4

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.