# How can I fix this? I am getting each time after compiling code in root environment

**URL:** <https://root-forum.cern.ch/t/how-can-i-fix-this-i-am-getting-each-time-after-compiling-code-in-root-environment/39725>\
**Category:** Newbie\
**Tags:** jsroot\
**Created:** [June 2, 2020, 12:04pm UTC](https://root-forum.cern.ch/t/how-can-i-fix-this-i-am-getting-each-time-after-compiling-code-in-root-environment/39725 "2020-06-02T12:04:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shivam\_Raj](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/shivam_raj/32/22160_2.png) [@Shivam\_Raj](https://root-forum.cern.ch/u/Shivam_Raj)\
**Post date:** [June 2, 2020, 12:04pm UTC](https://root-forum.cern.ch/t/how-can-i-fix-this-i-am-getting-each-time-after-compiling-code-in-root-environment/39725/1 "2020-06-02T12:04:04Z")

</div>

```auto
root [0] 
Processing main91.cc...
In file included from input_line_88:1:
/home/pythia8244/examples/main91.cc:15:10: fatal error: 'Pythia8/Pythia.h' file not found
#include "Pythia8/Pythia.h"
         ^ ~~~~~~~~~~~~~~~~~

```

_ROOT Version:_ “6.20/04”  
_Platform:_ Ubuntu 18.04  
_Compiler:_ gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)

---

<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:** [June 2, 2020, 12:06pm UTC](https://root-forum.cern.ch/t/how-can-i-fix-this-i-am-getting-each-time-after-compiling-code-in-root-environment/39725/2 "2020-06-02T12:06:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Shivam\_Raj](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/shivam_raj/32/22160_2.png) [@Shivam\_Raj](https://root-forum.cern.ch/u/Shivam_Raj)\
**Post date:** [June 2, 2020, 1:33pm UTC](https://root-forum.cern.ch/t/how-can-i-fix-this-i-am-getting-each-time-after-compiling-code-in-root-environment/39725/3 "2020-06-02T13:33:33Z")

</div>

```auto
feq ($(ROOT_USE),true)
	$(CXX) $< -o $@ -w $(CXX_COMMON) \
	`$(ROOT_BIN)/root-config --cflags` \
	-Wl,-rpath,`$(ROOT_BIN)/root-config --libdir` `$(ROOT_BIN)/root-config --glibs`
else
	@echo "Error: $@ requires ROOT"
endif

```

_ **As suggested I did this but again showing the same problem** _

```auto
In file included from input_line_88:1:
/home/pythia8244/examples/main91.cc:15:10: fatal error: ‘Pythia8/Pythia.h’ file not found
#include “Pythia8/Pythia.h”
^ ~~~~~~~~~~~~~~~~~

```

---

<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:** [June 2, 2020, 6:30pm UTC](https://root-forum.cern.ch/t/how-can-i-fix-this-i-am-getting-each-time-after-compiling-code-in-root-environment/39725/4 "2020-06-02T18:30:13Z")

</div>

See the Pythia 8 “`README`” file.  
Pythia 8 “`examples/main*.cc`” are standalone executables. They are NOT any ROOT macros.
