# Error: cannot open file "TMVA/DataLoader.h"

**URL:** <https://root-forum.cern.ch/t/error-cannot-open-file-tmva-dataloader-h/36421>\
**Category:** TMVA\
**Created:** [October 19, 2019, 5:35am UTC](https://root-forum.cern.ch/t/error-cannot-open-file-tmva-dataloader-h/36421 "2019-10-19T05:35:44Z")\
**Posts on this page:** 3\
**Page:** 1

<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, 5:35am UTC](https://root-forum.cern.ch/t/error-cannot-open-file-tmva-dataloader-h/36421/1 "2019-10-19T05:35:44Z")

</div>

Hey!

I’m trying to implement BDT for separating signal and background events. I’ve modified the TMVAClassification.C code according to my problem. But when I’m compiling it in root in lxplus6 cluster its showing me: Error: cannot open file “TMVA/DataLoader.h” TMVAClassification.C:59:  
\*\*\* Interpreter error recovered \*\*\*  
how can I fix this problem?

---

<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 19, 2019, 1:36pm UTC](https://root-forum.cern.ch/t/error-cannot-open-file-tmva-dataloader-h/36421/2 "2019-10-19T13:36:23Z")

</div>

Your “root-config --has-tmva” must return “yes” and then for “TMVA/DataLoader.h” you need ROOT 6.

---

<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, 1:58pm UTC](https://root-forum.cern.ch/t/error-cannot-open-file-tmva-dataloader-h/36421/3 "2019-10-19T13:58:25Z")

</div>

thanks a lot for your response.
