Installation instructions for lxplus

Asked by Andreas

Hi,

is there a known always-working way of setting up MadAnalysis on lxplus? Ideally, I'd like to be able to have a short set of commands (source X, wget Y, etc) that I can easily pass on to students, colleagues, etc to set up, compile and link MadAnalysis from scratch without them having to think too much.

The reason I ask is that I keep encountering hard-to-diagnose linker errors when trying to link the project on lxplus, even though the nominal dependencies of MadAna are met. The exact problem varies depending on the environment I'm in, and is not entirely reproducible to me, so I'm not sharing more detailed information here for now. Rather than trying to debug for each environment, I'd like to identify one specific way of setting up the environment that always works. For example, I have previously had positive experiences with the LCG views, which allow multiple users to exactly replicate each others environment [1]. At face value, pretty much any recent version of these fulfills the nominal dependencies of MadAnalysis, but end up failing due to linker errors.

Thanks

Andreas

[1] e.g. source /cvmfs/sft.cern.ch/lcg/views/LCG_97/x86_64-centos7-gcc8-opt/setup.sh

http://lcginfo.cern.ch/

Question information

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

Dear Andreas,

I am using LCG_87 and it works straight away. For the newer versions of the compilers, I recommend using
  https://bazaar.launchpad.net/~ma5dev/madanalysis5/v1.9_beta/tarball <https://bazaar.launchpad.net/~ma5dev/madanalysis5/v1.9_beta/tarball>
and let us know if anything goes wrong. This release is not yet fully tested, and consists of the next (python3-compatible) version of the code (to appear in 1-2 month).

Cheers,

Benjamin

> On 23 Mar 2021, at 14:25, Andreas <email address hidden> wrote:
>
> New question #696211 on MadAnalysis 5:
> https://answers.launchpad.net/madanalysis5/+question/696211
>
> Hi,
>
> is there a known always-working way of setting up MadAnalysis on lxplus? Ideally, I'd like to be able to have a short set of commands (source X, wget Y, etc) that I can easily pass on to students, colleagues, etc to set up, compile and link MadAnalysis from scratch without them having to think too much.
>
> The reason I ask is that I keep encountering hard-to-diagnose linker errors when trying to link the project on lxplus, even though the nominal dependencies of MadAna are met. The exact problem varies depending on the environment I'm in, and is not entirely reproducible to me, so I'm not sharing more detailed information here for now. Rather than trying to debug for each environment, I'd like to identify one specific way of setting up the environment that always works. For example, I have previously had positive experiences with the LCG views, which allow multiple users to exactly replicate each others environment [1]. At face value, pretty much any recent version of these fulfills the nominal dependencies of MadAnalysis, but end up failing due to linker errors.
>
> Thanks
>
> Andreas
>
>
>
> [1] e.g. source /cvmfs/sft.cern.ch/lcg/views/LCG_97/x86_64-centos7-gcc8-opt/setup.sh
>
> http://lcginfo.cern.ch/
>
>
>
>
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Revision history for this message
Andreas (balouderbaer) said :
#2

Hi Benjamin,

wonderful, LCG_87 works. In case anyone else encounters this in the
future, here's a setup that seems to just work out of the box:

```
wget https://bazaar.launchpad.net/~ma5dev/madanalysis5/v1.9_beta/tarball
tar xf tarball
mv ~\ma5dev/* .
rmdir ~\ma5dev

cd madanalysis5/v1.9_beta

source /cvmfs/sft.cern.ch/lcg/views/LCG_87/x86_64-centos7-gcc62-opt/setup.sh

echo "exit" > tmp.txt
./bin/ma5 -b -f -s tmp.txt
source ./tools/SampleAnalyzer/setup.sh

```

Thank you!

Andreas

On 24/03/2021 15:25, Benjamin Fuks wrote:
> Your question #696211 on MadAnalysis 5 changed:
> https://answers.launchpad.net/madanalysis5/+question/696211
>
> Status: Open => Answered
>
> Benjamin Fuks proposed the following answer:
> Dear Andreas,
>
> I am using LCG_87 and it works straight away. For the newer versions of the compilers, I recommend using
> https://bazaar.launchpad.net/~ma5dev/madanalysis5/v1.9_beta/tarball <https://bazaar.launchpad.net/~ma5dev/madanalysis5/v1.9_beta/tarball>
> and let us know if anything goes wrong. This release is not yet fully tested, and consists of the next (python3-compatible) version of the code (to appear in 1-2 month).
>
> Cheers,
>
> Benjamin
>
>
>> On 23 Mar 2021, at 14:25, Andreas <email address hidden> wrote:
>>
>> New question #696211 on MadAnalysis 5:
>> https://answers.launchpad.net/madanalysis5/+question/696211
>>
>> Hi,
>>
>> is there a known always-working way of setting up MadAnalysis on lxplus? Ideally, I'd like to be able to have a short set of commands (source X, wget Y, etc) that I can easily pass on to students, colleagues, etc to set up, compile and link MadAnalysis from scratch without them having to think too much.
>>
>> The reason I ask is that I keep encountering hard-to-diagnose linker errors when trying to link the project on lxplus, even though the nominal dependencies of MadAna are met. The exact problem varies depending on the environment I'm in, and is not entirely reproducible to me, so I'm not sharing more detailed information here for now. Rather than trying to debug for each environment, I'd like to identify one specific way of setting up the environment that always works. For example, I have previously had positive experiences with the LCG views, which allow multiple users to exactly replicate each others environment [1]. At face value, pretty much any recent version of these fulfills the nominal dependencies of MadAnalysis, but end up failing due to linker errors.
>>
>> Thanks
>>
>> Andreas
>>
>>
>>
>> [1] e.g. source /cvmfs/sft.cern.ch/lcg/views/LCG_97/x86_64-centos7-gcc8-opt/setup.sh
>>
>> http://lcginfo.cern.ch/
>>
>>
>>
>>
>>
>> --
>> You received this question notification because you are an answer
>> contact for MadAnalysis 5.

Revision history for this message
Andreas (balouderbaer) said :
#3

Thanks Benjamin Fuks, that solved my question.

Revision history for this message
Benjamin Fuks (fuks) said :
#4

Hi Andreas,

You are welcome! Thanks a lot for your feedback that could be very useful to others.

Cheers,

Benjamin

> On 25 Mar 2021, at 17:30, Andreas <email address hidden> wrote:
>
> Question #696211 on MadAnalysis 5 changed:
> https://answers.launchpad.net/madanalysis5/+question/696211 <https://answers.launchpad.net/madanalysis5/+question/696211>
>
> Status: Answered => Open
>
> Andreas is still having a problem:
> Hi Benjamin,
>
> wonderful, LCG_87 works. In case anyone else encounters this in the
> future, here's a setup that seems to just work out of the box:
>
> ```
> wget https://bazaar.launchpad.net/~ma5dev/madanalysis5/v1.9_beta/tarball <https://bazaar.launchpad.net/~ma5dev/madanalysis5/v1.9_beta/tarball>
> tar xf tarball
> mv ~\ma5dev/* .
> rmdir ~\ma5dev
>
> cd madanalysis5/v1.9_beta
>
> source
> /cvmfs/sft.cern.ch/lcg/views/LCG_87/x86_64-centos7-gcc62-opt/setup.sh <http://sft.cern.ch/lcg/views/LCG_87/x86_64-centos7-gcc62-opt/setup.sh>
>
> echo "exit" > tmp.txt
> ./bin/ma5 -b -f -s tmp.txt
> source ./tools/SampleAnalyzer/setup.sh
>
> ```
>
> Thank you!
>
> Andreas
>
>
> On 24/03/2021 15:25, Benjamin Fuks wrote:
>> Your question #696211 on MadAnalysis 5 changed:
>> https://answers.launchpad.net/madanalysis5/+question/696211 <https://answers.launchpad.net/madanalysis5/+question/696211>
>>
>> Status: Open => Answered
>>
>> Benjamin Fuks proposed the following answer:
>> Dear Andreas,
>>
>> I am using LCG_87 and it works straight away. For the newer versions of the compilers, I recommend using
>> https://bazaar.launchpad.net/~ma5dev/madanalysis5/v1.9_beta/tarball <https://bazaar.launchpad.net/~ma5dev/madanalysis5/v1.9_beta/tarball><https://bazaar.launchpad.net/~ma5dev/madanalysis5/v1.9_beta/tarball <https://bazaar.launchpad.net/~ma5dev/madanalysis5/v1.9_beta/tarball>>
>> and let us know if anything goes wrong. This release is not yet fully tested, and consists of the next (python3-compatible) version of the code (to appear in 1-2 month).
>>
>> Cheers,
>>
>> Benjamin
>>
>>
>>> On 23 Mar 2021, at 14:25, Andreas <email address hidden> wrote:
>>>
>>> New question #696211 on MadAnalysis 5:
>>> https://answers.launchpad.net/madanalysis5/+question/696211
>>>
>>> Hi,
>>>
>>> is there a known always-working way of setting up MadAnalysis on lxplus? Ideally, I'd like to be able to have a short set of commands (source X, wget Y, etc) that I can easily pass on to students, colleagues, etc to set up, compile and link MadAnalysis from scratch without them having to think too much.
>>>
>>> The reason I ask is that I keep encountering hard-to-diagnose linker errors when trying to link the project on lxplus, even though the nominal dependencies of MadAna are met. The exact problem varies depending on the environment I'm in, and is not entirely reproducible to me, so I'm not sharing more detailed information here for now. Rather than trying to debug for each environment, I'd like to identify one specific way of setting up the environment that always works. For example, I have previously had positive experiences with the LCG views, which allow multiple users to exactly replicate each others environment [1]. At face value, pretty much any recent version of these fulfills the nominal dependencies of MadAnalysis, but end up failing due to linker errors.
>>>
>>> Thanks
>>>
>>> Andreas
>>>
>>>
>>>
>>> [1] e.g. source /cvmfs/sft.cern.ch/lcg/views/LCG_97/x86_64-centos7-gcc8-opt/setup.sh
>>>
>>> http://lcginfo.cern.ch/
>>>
>>>
>>>
>>>
>>>
>>> --
>>> You received this question notification because you are an answer
>>> contact for MadAnalysis 5.
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.