Running pythia8 in madgraph nlo mode
Hello,
I am trying to shower nlo events using pythia8 installed inside the madgraph interface. The following error is displayed.
INFO: Events generated
reweight -from_cards
decay_events -from_cards
INFO: Preparing MCatNLO run
INFO: Compiling MCatNLO for PYTHIA8...
USING PYTHIA 8, version >= 8.200
g++ -O -I/home/
-I/home/
-L/home/
-I/home/
/usr/bin/ld: cannot find -lboost_iostreams
collect2: error: ld returned 1 exit status
Makefile:49: recipe for target 'Pythia82' failed
make: *** [Pythia82] Error 1
Pythia8 compilation did not succeed, exiting
Can I please get a solution?
Thanks in advance.
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- 2018-10-31
- Last reply:
- 2018-11-16
Launchpad Janitor (janitor) said : | #1 |
This question was expired because it remained in the 'Open' state without activity for the last 15 days.
Hi
Sorry to look at this only now.
On which os are your running?
As far as i have looked, the problem is related to your OS where boost decide to not create that specific library at install time.
It is probably since you do not need it, but I need to create a VM with your exact OS in order to try to reproduce this and investigate who decide to add that line "-lboost_iostreams" inside the makefile (I'm worry that this is a decision of pythia8 and that I can not do anything about it, except complain to py8 autor)
Cheers,
Olivier
Sayan Dasgupta (sayandg) said : | #3 |
Hi Olivier,
I am working in an Ubuntu machine. Can you please check?
Thank you.
Can you be more specific (which version of Ubuntu)
Olivier
Sayan Dasgupta (sayandg) said : | #5 |
Ubuntu 16.04
On Wed, 31 Oct 2018, 14:42 Olivier Mattelaer, <
<email address hidden>> wrote:
> Your question #674984 on MadGraph5_aMC@NLO changed:
> https:/
>
> Status: Open => Answered
>
> Olivier Mattelaer proposed the following answer:
> Can you be more specific (which version of Ubuntu)
>
> Olivier
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https:/
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https:/
>
> You received this question notification because you asked the question.
>
Thanks,
I'm lucky I have installed such VM recently for a lecture that I'm giving this afternoon.
I do not want to mess with this VM before my lecture, so I will take a look tomorow (or tonight)
vagrant@vagrant:~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.3 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.3 LTS"
VERSION_ID="16.04"
HOME_URL="http://
SUPPORT_URL="http://
BUG_REPORT_URL="http://
VERSION_
UBUNTU_
Cheers,
Olivier
Sayan Dasgupta (sayandg) said : | #7 |
Ok thanks Olivier.
On Wed, 31 Oct 2018, 14:57 Olivier Mattelaer, <
<email address hidden>> wrote:
> Your question #674984 on MadGraph5_aMC@NLO changed:
> https:/
>
> Olivier Mattelaer posted a new comment:
> Thanks,
>
> I'm lucky I have installed such VM recently for a lecture that I'm giving
> this afternoon.
> I do not want to mess with this VM before my lecture, so I will take a
> look tomorow (or tonight)
>
> vagrant@vagrant:~$ cat /etc/os-release
> NAME="Ubuntu"
> VERSION="16.04.3 LTS (Xenial Xerus)"
> ID=ubuntu
> ID_LIKE=debian
> PRETTY_NAME="Ubuntu 16.04.3 LTS"
> VERSION_ID="16.04"
> HOME_URL="http://
> SUPPORT_URL="http://
> BUG_REPORT_URL="http://
> VERSION_
> UBUNTU_
>
> Cheers,
>
> Olivier
>
> --
> You received this question notification because you asked the question.
>
Launchpad Janitor (janitor) said : | #8 |
This question was expired because it remained in the 'Open' state without activity for the last 15 days.
Hi,
Here is a work-around the pythia8 bug. It will be include in 2.6.5 (but if py8 author corrects that bug themself)
Cheers,
Olivier
=== modified file 'madgraph/
--- madgraph/
+++ madgraph/
@@ -5808,15 +5846,21 @@
- for l in libs:
- if l not in extralibs:
- modify_extralibs = True
- extralibs.append(l)
-
+ for l in libs:
+ if l == 'boost_iostreams':
+ #this one is problematic handles it.
+ for L in paths + extrapaths:
+ if misc.glob(
+ break
+ else:
+ continue
+ if l not in extralibs:
+ modify_extralibs = True
+ extralibs.append(l)
# Apply the required modification
if modify_extralibs:
if extralibs:
Mike Hance (mhance) said : | #10 |
Hi All,
I ran across the same issue in 2.6.4, and tried Olivier's fix... his patch didn't quite work for me, but the following block did, just in case others have the same problem:
#3. ensure that those flag are in the shower card
for l in libs:
for L in paths:
Cheers!
-Mike
Hi,
I have confirmed report of 10+ people that my patch was working (not including myself).
I guess that the issue is that patch formatting are not preserve by questions.
(you should have open a bug report since they can handle patch).
My guess is that you put the "else" statement at the wrong indentation.
You can find the correct one on this link:
https:/
Cheers,
Olivier
On 4 Jan 2019, at 20:47, Mike Hance <<email address hidden>
Question #674984 on MadGraph5_aMC@NLO changed:
https:/
Mike Hance posted a new comment:
Hi All,
I ran across the same issue in 2.6.4, and tried Olivier's fix... his
patch didn't quite work for me, but the following block did, just in
case others have the same problem:
#3. ensure that those flag are in the shower card
for l in libs:
for L in paths:
Cheers!
-Mike
--
You received this question notification because you are an answer
contact for MadGraph5_aMC@NLO.
Mike Hance (mhance) said : | #12 |
Hi Olivier,
The patch was indeed difficult to parse in this launchpad thread, and I didn't see a link to an actual diff, so you're probably right that my indentation was wrong. Since I assumed you had this solved in code somewhere, I wasn't intending to open a bug report, just give others some insight into what might still be failing if they had the same problems I did.
Best wishes,
-Mike