# Error in executing main91 of pythia example

**URL:** <https://root-forum.cern.ch/t/error-in-executing-main91-of-pythia-example/54258>\
**Category:** Newbie\
**Created:** [March 28, 2023, 7:11am UTC](https://root-forum.cern.ch/t/error-in-executing-main91-of-pythia-example/54258 "2023-03-28T07:11:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Songshaptak\_De](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/songshaptak_de/32/27468_2.png) [@Songshaptak\_De](https://root-forum.cern.ch/u/Songshaptak_De)\
**Post date:** [March 28, 2023, 7:11am UTC](https://root-forum.cern.ch/t/error-in-executing-main91-of-pythia-example/54258/1 "2023-03-28T07:11:14Z")

</div>

Upon error-free compilation, when I am trying to run the main91.cc code in Pythia example folder, I am encountering the following error,

> error while loading shared libraries: libThread.so.6.20: cannot open shared object file: No such file or directory

The shared library is present inside the root lib folder but still it cannot find it. So, how can this error be resolved ?

* * *

_ROOT Version:_ 6.20/08  
_Platform:_ Ubuntu 20.04.3  
_Compiler:_ gcc 9.4.0  
_Pythia version:_ 8307

* * *

---

<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:** [March 28, 2023, 7:14am UTC](https://root-forum.cern.ch/t/error-in-executing-main91-of-pythia-example/54258/2 "2023-03-28T07:14:09Z")

</div>

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