Installing Pythia8 through Madgraph5

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:

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


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

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

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