# cling::DynamicLibraryManager::loadLibrary(): libpythia8.so: cannot open shared object file: No such file or directory

**URL:** <https://root-forum.cern.ch/t/cling-loadlibrary-libpythia8-so-cannot-open-shared-object-file-no-such-file-or-directory/56392>\
**Category:** Newbie\
**Tags:** root\
**Created:** [September 17, 2023, 6:28am UTC](https://root-forum.cern.ch/t/cling-loadlibrary-libpythia8-so-cannot-open-shared-object-file-no-such-file-or-directory/56392 "2023-09-17T06:28:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Owaise\_Ahmed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/owaise_ahmed/32/33871_2.png) [@Owaise\_Ahmed](https://root-forum.cern.ch/u/Owaise_Ahmed)\
**Post date:** [September 17, 2023, 6:28am UTC](https://root-forum.cern.ch/t/cling-loadlibrary-libpythia8-so-cannot-open-shared-object-file-no-such-file-or-directory/56392/1 "2023-09-17T06:28:58Z")

</div>

_ROOT Version:_ 6.28/06

---

<div class="post-metadata">

**Author:** ![vpadulan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vpadulan/32/25315_2.png) [@vpadulan](https://root-forum.cern.ch/u/vpadulan)\
**Post date:** [September 18, 2023, 7:31am UTC](https://root-forum.cern.ch/t/cling-loadlibrary-libpythia8-so-cannot-open-shared-object-file-no-such-file-or-directory/56392/2 "2023-09-18T07:31:38Z")

</div>

Dear @Owaise_Ahmed ,  
Thank you for your report. I don’t see a lot of information, but I will guess that the error written in the title happens during a custom ROOT build you’re doing. First question: is it absolutely necessary for you to build ROOT? There are many installation options at [Installing ROOT - ROOT](https://root.cern/install) that do not require custom installation.

**If and only if** you do need to build ROOT manually, then I would say you are probably missing Pythia libraries from your machine. If you also need Pythia, then I suggest you search for help on how to install it on its official website [https://pythia.org/](https://pythia.org/) . If you do not need Pythia, then you can just disable it in the configuration options `-Dpythia8=OFF`.

Cheers,  
Vincenzo

---

<div class="post-metadata">

**Author:** ![Owaise\_Ahmed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/owaise_ahmed/32/33871_2.png) [@Owaise\_Ahmed](https://root-forum.cern.ch/u/Owaise_Ahmed)\
**Post date:** [September 22, 2023, 6:19pm UTC](https://root-forum.cern.ch/t/cling-loadlibrary-libpythia8-so-cannot-open-shared-object-file-no-such-file-or-directory/56392/3 "2023-09-22T18:19:47Z")

</div>

hey, sorry for a late response.  
I got this error while loading DELPHES library on root prompt in the DELPHES directory.  
Using "gSystem-\>Load(“libDelphes”)  
If that helps.

I am still struggling with this, need to look for Pythia libraries though.

---

<div class="post-metadata">

**Author:** ![vpadulan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vpadulan/32/25315_2.png) [@vpadulan](https://root-forum.cern.ch/u/vpadulan)\
**Post date:** [September 27, 2023, 9:40pm UTC](https://root-forum.cern.ch/t/cling-loadlibrary-libpythia8-so-cannot-open-shared-object-file-no-such-file-or-directory/56392/4 "2023-09-27T21:40:24Z")

</div>

> [@Owaise\_Ahmed](#):
>
> I got this error while loading DELPHES library on root prompt in the DELPHES directory.  
> Using "gSystem-\>Load(“libDelphes”)

This means that either your ROOT installation has not enabled the pythia components, or that ROOT doesn’t know where to find the pythia library when loading libDelphes (so you need to extend the dynamic path with the directory where the library is placed), or both.

Cheers,  
Vincenzo

---

<div class="post-metadata">

**Author:** ![Owaise\_Ahmed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/owaise_ahmed/32/33871_2.png) [@Owaise\_Ahmed](https://root-forum.cern.ch/u/Owaise_Ahmed)\
**Post date:** [September 28, 2023, 4:18am UTC](https://root-forum.cern.ch/t/cling-loadlibrary-libpythia8-so-cannot-open-shared-object-file-no-such-file-or-directory/56392/5 "2023-09-28T04:18:16Z")

</div>

hey, how are you?

I checked all that. But after that also i was still getting the same error.  
I did the entire process of installation of Pythia, ROOT and Delphes. The start. I was able to observe that everytime I configure my delphes with pythia, i was getting the above error.

so after configuring it with pythia, in the delphes folder I used the command.

`make clean`  
then again  
`make`

Now I am able to generate the detector response and also able to Load the “libDelphes library”

Thanks
