install delphes error: environmental variable ROOTSYS not configured

Asked by Shaoqiu Chen

I installed MG5_aMC_v3_5_4 and want to install Delphes through madgraph, when I enter "install Delphes" I get the following error message. I would really appreciate it if anyone can help me fix this error. I plan on doing research on muon collider with madgraph and it hinges on me successfully installing it. Thank you in advance.

Command "install Delphes" interrupted with error:
InvalidCmd : The environment variable ROOTSYS is not configured.
 You can set it by adding the following lines in your .bashrc [.bash_profile for mac]:
 export ROOTSYS=/usr/local/Cellar/root/6.30.06
 export PATH=$PATH:$ROOTSYS/bin
 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
 export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$ROOTSYS/lib
 This will take effect only in a NEW terminal

I have found my .bash_profile pasted the follow segment to the end of the file and saved.

export ROOTSYS=/usr/local/Cellar/root/6.30.06
export PATH=$PATH:$ROOTSYS/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$ROOTSYS/lib

I then opened a new terminal for madgraph and entered "install Delphes," but I got the same errors again. I feel like the periods in the ROOTSYS may cause some error but when I try to change the file name to 6_30_06 on my computer mad-graph would just not recognize where the Root is.

FYI:
1) I am on Mac with 2 GHz Quad-Core Intel Core i5.

2) when I enter "echo $ROOTSYS" on a new terminal, I get
/usr/local/Cellar/root/6.30.06

3) when I enter "gfortran --version" on a new terminal, I get
GNU Fortran (Homebrew GCC 13.2.0) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Question information

Language:
English Edit question
Status:
Open
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Shaoqiu Chen (shaoqiu) said :
#1

FYI, I am on MacOS Sonoma 14.4

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#2

Hi,

I'm not sure if Delphes author do support Delphes on OSX system.
I have never succeed to install it on my mac (but never really try either).

I have just install root on my mac system, and after running
source ..../thisroot.sh
and then move to madgraph and run
install Delphes
then the check of ROOTSYS is working correctly and Delphes try to install (but crash on my system)
So looks like the check (done by MG5aMC) is working, for the rest you will need the support (if any) of the Delphes team.

Cheers,

Olivier

> On 7 May 2024, at 09:30, Shaoqiu Chen <email address hidden> wrote:
>
> New question #812476 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/812476
>
>
> I installed MG5_aMC_v3_5_4 and want to install Delphes through madgraph, when I enter "install Delphes" I get the following error message. I would really appreciate it if anyone can help me fix this error. I plan on doing research on muon collider with madgraph and it hinges on me successfully installing it. Thank you in advance.
>
> Command "install Delphes" interrupted with error:
> InvalidCmd : The environment variable ROOTSYS is not configured.
> You can set it by adding the following lines in your .bashrc [.bash_profile for mac]:
> export ROOTSYS=/usr/local/Cellar/root/6.30.06
> export PATH=$PATH:$ROOTSYS/bin
> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
> export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$ROOTSYS/lib
> This will take effect only in a NEW terminal
>
> I have found my .bash_profile pasted the follow segment to the end of the file and saved.
>
> export ROOTSYS=/usr/local/Cellar/root/6.30.06
> export PATH=$PATH:$ROOTSYS/bin
> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
> export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$ROOTSYS/lib
>
> I then opened a new terminal for madgraph and entered "install Delphes," but I got the same errors again. I feel like the periods in the ROOTSYS may cause some error but when I try to change the file name to 6_30_06 on my computer mad-graph would just not recognize where the Root is.
>
> FYI:
> 1) I am on Mac with 2 GHz Quad-Core Intel Core i5.
>
> 2) when I enter "echo $ROOTSYS" on a new terminal, I get
> /usr/local/Cellar/root/6.30.06
>
> 3) when I enter "gfortran --version" on a new terminal, I get
> GNU Fortran (Homebrew GCC 13.2.0) 13.2.0
> Copyright (C) 2023 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
>
>
>
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Shaoqiu Chen (shaoqiu) said :
#3

Hi Olivier,

Thank you for your quick response. I ran on a separate terminal

(base) stevenqiu@169-231-166-18 6.30.06 % bin/thisroot.sh

and no response is given. I then opened a new madgraph terminal and run "install Delphes" but get the same error as last time.

I don't quite understand how to run "source ..../thisroot.sh". Should I run it in madgraph environment or a separate terminal?

Also, my bash_profile currently looks like this, with the lines added in the end, am I editing it correctly?

# added by Anaconda3 5.3.1 installer
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '/Users/stevenqiu/anaconda3/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
    \eval "$__conda_setup"
else
    if [ -f "/Users/stevenqiu/anaconda3/etc/profile.d/conda.sh" ]; then
# . "/Users/stevenqiu/anaconda3/etc/profile.d/conda.sh" # commented out by conda initialize
        CONDA_CHANGEPS1=false conda activate base
    else
        \export PATH="/Users/stevenqiu/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda init <<<

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/opt/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/opt/anaconda3/etc/profile.d/conda.sh" ]; then
        . "/opt/anaconda3/etc/profile.d/conda.sh"
    else
        export PATH="/opt/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<<

# added by Anaconda3 5.3.1 installer
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '/Applications/anaconda3/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
    \eval "$__conda_setup"
else
    if [ -f "/Applications/anaconda3/etc/profile.d/conda.sh" ]; then
# . "/Applications/anaconda3/etc/profile.d/conda.sh" # commented out by conda initialize
        CONDA_CHANGEPS1=false conda activate base
    else
        \export PATH="/Applications/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda init <<<

export ROOTSYS=/usr/local/Cellar/root/6.30.06
export PATH=$PATH:$ROOTSYS/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$ROOTSYS/lib

Can you help with this problem?

Provide an answer of your own, or ask Shaoqiu Chen for more information if necessary.

To post a message you must log in.