Installing Delphes on Mac OS 10.15.7

Asked by David Curtin

(Also asking this on root forum https://root-forum.cern.ch/t/help-installing-delphes-on-mac-os-10-15/45259 but wanted to try here as well.)

Hi,

I’m trying to use Delphes on my Mac OS 10.15.7 installation. Madgraph5 and pythia8 are installed without problems. I then installed root via the mamba package manager (no apparent problems during install), and then tried to install Delphes by running “install Delphes” within the mg5 prompt. This gave me the compilation error described here

https://root-forum.cern.ch/t/installing-rooot-with-conda-delphes/40487/4

I deleted the VERSION file as indicated but this did not fix the problem. I then tried installing root via homebrew (no apparent problems during install) but the ROOTSYS variable does not get updated to the homebrew version, and if I try and do it manually by adding

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

to my .bashrc and running source .bash_profile before trying to make Delphes, that does not change anything either (except that instead of accessing the mambaforge version of root the make script now goes to the homebrew one, but the same problem persists).

(I’m not very knowledgeable on bash issues like compiler linking and setting of environmental variables etc, and I hope I have not jumbled things up too badly by installing two root versions with two package managers.)

Does anyone know how I might successfully install root + delphes in Mac OS 10.15.7? Thanks a lot for your help!!

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier Mattelaer
Solved:
Last query:
Last reply:
Revision history for this message
Best Olivier Mattelaer (olivier-mattelaer) said :
#1

I have a meeting with Delphes author next week.
I might know more at that time. They had a lot of issue with root 6.22
but I think that they have fix it now. Now I do not if they have updated the version that they provide to use for the "install" command. Maybe they need us to change something before doing it....

So my advise would be to install root 6.20 (cern provide pre-compiled version for mac actually so I would advise to use those ones )

Cheers,

Olivier

> On 4 Jun 2021, at 23:15, David Curtin <email address hidden> wrote:
>
> New question #697395 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/697395
>
> (Also asking this on root forum https://root-forum.cern.ch/t/help-installing-delphes-on-mac-os-10-15/45259 but wanted to try here as well.)
>
> Hi,
>
> I’m trying to use Delphes on my Mac OS 10.15.7 installation. Madgraph5 and pythia8 are installed without problems. I then installed root via the mamba package manager (no apparent problems during install), and then tried to install Delphes by running “install Delphes” within the mg5 prompt. This gave me the compilation error described here
>
> https://root-forum.cern.ch/t/installing-rooot-with-conda-delphes/40487/4
>
> I deleted the VERSION file as indicated but this did not fix the problem. I then tried installing root via homebrew (no apparent problems during install) but the ROOTSYS variable does not get updated to the homebrew version, and if I try and do it manually by adding
>
> export ROOTSYS=/usr/local/Cellar/root/6.22.08_2
> export PATH=$ROOTSYS/bin:$PATH
> export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH
> export DYLD_LIBRARY_PATH=$ROOTSYS/lib:$DYLD_LIBRARY_PATH
>
> to my .bashrc and running source .bash_profile before trying to make Delphes, that does not change anything either (except that instead of accessing the mambaforge version of root the make script now goes to the homebrew one, but the same problem persists).
>
> (I’m not very knowledgeable on bash issues like compiler linking and setting of environmental variables etc, and I hope I have not jumbled things up too badly by installing two root versions with two package managers.)
>
> Does anyone know how I might successfully install root + delphes in Mac OS 10.15.7? Thanks a lot for your help!!
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
David Curtin (david-r-curtin) said :
#2

thanks for the tip. I got the cern-supplied root 6.20 pkg, installed it, went to Applications/root_v6.20.08/bin and tried to run thisroot.sh.

I then got what appeared to be a truly unique error:
ERROR: thisroot.sh, thisroot.csh and thisroot.fish should never be used
Look at using "conda activate ENVIRONMENT_NAME"

Google gives exactly one match which has no info of any kind. It's related to the Mamba package manager but I have no idea how. *sob*

Revision history for this message
David Curtin (david-r-curtin) said :
#3

sorry for being such a noob, I hit enter before thinking. I created a conda environment, ran source ./thisroot.sh, and then activated that conda environment when trying to compile Delphes. working on that now. sorry.

Revision history for this message
David Curtin (david-r-curtin) said :
#4

sorry for being such a noob, I hit enter before thinking. I created a conda environment, ran source ./thisroot.sh, and then activated that conda environment when trying to compile Delphes. working on that now. sorry.

Revision history for this message
David Curtin (david-r-curtin) said :
#5

Olivier, thank you. I switched to using root 6.20 as you suggested, and it works!

Revision history for this message
David Curtin (david-r-curtin) said :
#6

Thanks Olivier Mattelaer, that solved my question.