# Error: Cannot open file "TUnuran.h"

**URL:** <https://root-forum.cern.ch/t/error-cannot-open-file-tunuran-h/17831>\
**Category:** ROOT\
**Created:** [June 28, 2014, 2:52pm UTC](https://root-forum.cern.ch/t/error-cannot-open-file-tunuran-h/17831 "2014-06-28T14:52:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tweety84](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/bc79bd/32.png) [@tweety84](https://root-forum.cern.ch/u/tweety84)\
**Post date:** [June 28, 2014, 2:52pm UTC](https://root-forum.cern.ch/t/error-cannot-open-file-tunuran-h/17831/1 "2014-06-28T14:52:40Z")

</div>

Hi,

I’m trying to run macros from TUnuran tutorial folder, but I have the following message:

Error: Cannot open file “TUnuran.h”

It’s strange. since I’ve found the TUnuran.h in the root directories (v. 5-34).

Where is the problem??

Thanks  
Tin

---

<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 28, 2014, 3:05pm UTC](https://root-forum.cern.ch/t/error-cannot-open-file-tunuran-h/17831/2 "2014-06-28T15:05:10Z")

</div>

Try:  
root-config --has-unuran  
and if you get “no”, that means that you need to rebuild your ROOT from scratch with “–enable-unuran” (or simply “–all”).

---

<div class="post-metadata">

**Author:** ![tweety84](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/bc79bd/32.png) [@tweety84](https://root-forum.cern.ch/u/tweety84)\
**Post date:** [June 28, 2014, 4:01pm UTC](https://root-forum.cern.ch/t/error-cannot-open-file-tunuran-h/17831/3 "2014-06-28T16:01:10Z")

</div>

[quote=“Wile E. Coyote”]Try:  
root-config --has-unuran  
and if you get “no”, that means that you need to rebuild your ROOT from scratch with “–enable-unuran” (or simply “–all”).[/quote]

I got “no” ☹

so I need to rebuild root with that option.

I remember that I’ve needed to install also patches, this could be a problem?

I’m not an expert.

Many thanks.  
Tina

---

<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 28, 2014, 4:05pm UTC](https://root-forum.cern.ch/t/error-cannot-open-file-tunuran-h/17831/4 "2014-06-28T16:05:18Z")

</div>

Try with the current “v5-34-00-patches” source code:

```auto
rm -rf v5-34-00-patches
git clone -b v5-34-00-patches http://root.cern.ch/git/root.git v5-34-00-patches
cd v5-34-00-patches
unset ROOTSYS
./configure --enable-soversion --all
make

```

---

<div class="post-metadata">

**Author:** ![tweety84](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/bc79bd/32.png) [@tweety84](https://root-forum.cern.ch/u/tweety84)\
**Post date:** [June 30, 2014, 7:46am UTC](https://root-forum.cern.ch/t/error-cannot-open-file-tunuran-h/17831/5 "2014-06-30T07:46:39Z")

</div>

[quote=“Wile E. Coyote”]Try with the current “v5-34-00-patches” source code:

`git clone -b v5-34-00-patches http://root.cern.ch/git/root.git v5-34-00-patches
cd v5-34-00-patches
unset ROOTSYS
./configure --enable-soversion --all
make`[/quote]

It works!!  
😃  
Thanks.  
Tina

---

<div class="post-metadata">

**Author:** ![Rishabh\_Raturi](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/rishabh_raturi/32/19640_2.png) [@Rishabh\_Raturi](https://root-forum.cern.ch/u/Rishabh_Raturi)\
**Post date:** [October 19, 2019, 10:48am UTC](https://root-forum.cern.ch/t/error-cannot-open-file-tunuran-h/17831/6 "2019-10-19T10:48:16Z")

</div>

Can you please elaborate in this, I’m also facing a similar problem in lxplus6 cluster where I’m getting “can’t open file TMVA/DataLoader.h”?

---

<div class="post-metadata">

**Author:** ![kialbert](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/kialbert/32/16537_2.png) [@kialbert](https://root-forum.cern.ch/u/kialbert)\
**Post date:** [October 21, 2019, 1:07pm UTC](https://root-forum.cern.ch/t/error-cannot-open-file-tunuran-h/17831/7 "2019-10-21T13:07:58Z")

</div>

Hi,

Please open a new question instead of reviving old threads 🙂

In that new post, please include environment, ROOT/TMVA version information, a description of what it is you want to do, and what error you encounter. This will help you get good assistance quickly!

Cheers,  
Kim

---

<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:** [October 21, 2019, 1:59pm UTC](https://root-forum.cern.ch/t/error-cannot-open-file-tunuran-h/17831/8 "2019-10-21T13:59:56Z")

</div>

See this thread: [Error: cannot open file "TMVA/DataLoader.h"](https://root-forum.cern.ch/t/error-cannot-open-file-tmva-dataloader-h/36421/2)
