# Installing Pythia8 through Madgraph5

**URL:** <https://root-forum.cern.ch/t/installing-pythia8-through-madgraph5/50670>\
**Category:** Newbie\
**Created:** [July 5, 2022, 3:16pm UTC](https://root-forum.cern.ch/t/installing-pythia8-through-madgraph5/50670 "2022-07-05T15:16:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sscoville](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/58f4c7/32.png) [@sscoville](https://root-forum.cern.ch/u/sscoville)\
**Post date:** [July 5, 2022, 3:16pm UTC](https://root-forum.cern.ch/t/installing-pythia8-through-madgraph5/50670/1 "2022-07-05T15:16:14Z")

</div>

I am trying to install pythia8 through madgraph5 from mac Terminal running 12.4 Monterey and Python 3.10.5. When I run `MG5_aMC>install LHPADF6` it then asks `LHAPDF was not found. Do you want to install LHPADF6? (recommended) y/n >[y] [60s to answer]`. When I enter y, it goes through, installs LHPADF6 and then immediately fails and I get:

```auto
configure: error: in `/private/var/folders/75/vsm5ptn932x9bfvvbdw173vm0000gn/T/tmpkwcvgest/hepmc2.06.09':

configure: error: C++ compiler cannot create executables

See `config.log' for more details.

Compile HEPMC

make: *** No targets specified and no makefile found. Stop.

Install HEPMC

make: Nothing to be done for `install'.

Finished HEPMC installation

ln: lib: File exists

> Now aborting installation of tool 'pythia8'.

**Command "install pythia8" interrupted with error:**

**InvalidCmd : Installation of pythia8 failed.**

```

Any help or suggestions are appreciated in getting pythia8 to install

\_ROOT Version: 6.26/04  
\_Platform: macOS

* * *

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [July 5, 2022, 3:25pm UTC](https://root-forum.cern.ch/t/installing-pythia8-through-madgraph5/50670/2 "2022-07-05T15:25:33Z")

</div>

Not sure who can help you with this, since it is not really ROOT related…

---

<div class="post-metadata">

**Author:** ![sscoville](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/58f4c7/32.png) [@sscoville](https://root-forum.cern.ch/u/sscoville)\
**Post date:** [July 5, 2022, 3:28pm UTC](https://root-forum.cern.ch/t/installing-pythia8-through-madgraph5/50670/3 "2022-07-05T15:28:17Z")

</div>

Okay I wasn’t sure if it was related or not, I can remove it

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [July 5, 2022, 3:32pm UTC](https://root-forum.cern.ch/t/installing-pythia8-through-madgraph5/50670/4 "2022-07-05T15:32:16Z")

</div>

Let’s see if someone has an idea on the forum…
