# Can't link ROOT and PYTHIA

**URL:** <https://root-forum.cern.ch/t/cant-link-root-and-pythia/53149>\
**Category:** Newbie\
**Tags:** root\
**Created:** [January 18, 2023, 2:12am UTC](https://root-forum.cern.ch/t/cant-link-root-and-pythia/53149 "2023-01-18T02:12:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DonPanfilo](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/7feea3/32.png) [@DonPanfilo](https://root-forum.cern.ch/u/DonPanfilo)\
**Post date:** [January 18, 2023, 2:12am UTC](https://root-forum.cern.ch/t/cant-link-root-and-pythia/53149/1 "2023-01-18T02:12:42Z")

</div>

_ROOT Version:_ 6.26/06  
_Platform:_ MacOs Monterrey v.12.6  
Pythia version: 8.308

* * *

Hello everyone!

I am having some problems while linking ROOT and PYTHIA. I have tried using

```auto
./configure --enable-shared --with-root=`root-config --prefix`

```

but the following is displayed

```auto
Running PYTHIA configuration script. Now is Tue Jan 17 16:54:35 CST 2023
WARNING: Ignoring invalid option "--enable-shared".
WARNING: CXX not set, using g++.
WARNING: Disabling ROOT - header TROOT.h missing.
WARNING: Disabling ROOT - library Core missing.
---------------------------------------------------------------------
| PYTHIA Configuration Summary |
---------------------------------------------------------------------
  Architecture = DARWIN
  C++ compiler CXX = g++
  C++ flags CXX_COMMON = -O2 -std=c++11 -pedantic -W -Wall -Wshadow -fPIC -pthread
  C++ shared flag CXX_SHARED = -dynamiclib
  Further options = 

The following optional external packages will be used:

```

In my case, `root-config --prefix` gives me `/usr/local/Cellar/root/6.26.06_2`

I installed ROOT via brew but I don’t have PYTHIA in my features. When typing

```auto
root-config --has-pythia8 

```

it gives me no.

Does anyone have a clue of what can I do? Any help will be appreciated

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [January 18, 2023, 9:02am UTC](https://root-forum.cern.ch/t/cant-link-root-and-pythia/53149/2 "2023-01-18T09:02:45Z")

</div>

[ROOT Forum → Search → pythia8](https://root-forum.cern.ch/search?q=pythia8%20order%3Alatest)

---

<div class="post-metadata">

**Author:** ![DonPanfilo](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/7feea3/32.png) [@DonPanfilo](https://root-forum.cern.ch/u/DonPanfilo)\
**Post date:** [January 18, 2023, 7:51pm UTC](https://root-forum.cern.ch/t/cant-link-root-and-pythia/53149/3 "2023-01-18T19:51:21Z")

</div>

In the end I reinstalled root form source and that did the trick.

Cheers
