# Problem Installing TMVA

**URL:** <https://root-forum.cern.ch/t/problem-installing-tmva/24548>\
**Category:** TMVA\
**Created:** [April 25, 2017, 3:51pm UTC](https://root-forum.cern.ch/t/problem-installing-tmva/24548 "2017-04-25T15:51:07Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jon\_esteban](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/6bbea6/32.png) [@jon\_esteban](https://root-forum.cern.ch/u/jon_esteban)\
**Post date:** [April 25, 2017, 3:51pm UTC](https://root-forum.cern.ch/t/problem-installing-tmva/24548/1 "2017-04-25T15:51:07Z")

</div>

Hi,  
I’m having problems with the installation of the TMVA. I have followed all the steps appearing in the user guide that you provide but apparently I am doing something wrong what it is probable cause I’m new with Root.  
I’m using the last version of Ubuntu 16.04 and the last version of ROOT 6.09/02  
Here the steps I’ve followed and where I find the error:

1. Obtain Root from Github:

Desktop/TMVA$ **git clone [http://root.cern.ch/git/root.git](http://root.cern.ch/git/root.git) MyRoot**  
Desktop/TMVA$ **cd MyRoot/build**

1. Installing Root:

~/MyRoot/build$ **cmake --all -D:PATH=~/Desktop/TMVA/MyRoot …CMAKE\_INSTALL\_PREFIX**  
~/MyRoot/build$ **make –j4**  
~/MyRoot/build$ **sudo make install**

Until here everything works fine and ROOT works without problems.

1. Intalling TMVA

~/MyRoot$ **git checkout v5-34-00-patches**  
~/MyRoot$ **cd tmva**  
~/MyRoot$ \> **make**** # compile and build the library lib/libTMVA.1.so**

Here it’s where the problems appears. The User guide and the QuickStart say that lib/libTMVA.1.so should be created however instead I get an error I can understand and that I haven’t seen in the Forums.

Here the screenshot of the error:

![](https://root-forum.cern.ch/uploads/default/original/2X/9/96535cc16e5fed94b9cb3f26bcacf4ac79f68c62.jpg)

Obviously I can’t follow with the next steps that would be:

~/MyRoot/tmva\> **cd test**  
~/ MyRoot/tmva/test\> **source setup.sh #for c-shell family: source setup.csh**

Could you please help to get this done? I would like to start using the use-cases as soon as possible.

Thank you

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [April 25, 2017, 7:14pm UTC](https://root-forum.cern.ch/t/problem-installing-tmva/24548/2 "2017-04-25T19:14:33Z")

</div>

Hi,

TMVA is part of ROOT since a long while.  
I propose you checkout ROOT as you did and:

```auto
git clone http://root.cern.ch/git/root.git MyRoot
cd MyRoot;git checkout v6-09-02
cd -
mkdir build
cd build
cmake ../MyRoot
make -j 5

```

TMVA is built by default.

Cheers,  
D

---

<div class="post-metadata">

**Author:** ![jon\_esteban](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/6bbea6/32.png) [@jon\_esteban](https://root-forum.cern.ch/u/jon_esteban)\
**Post date:** [April 26, 2017, 8:08am UTC](https://root-forum.cern.ch/t/problem-installing-tmva/24548/3 "2017-04-26T08:08:00Z")

</div>

Thanks a lot for the answer.

Could you please tell me the steps I should follow to use the macro of TMVA (par example TMVAClassification.C) because I can install Root without a problem but I can’t run the TMVA macros.

I went to the folder tutorial where It’s the file (“TMVAClassification.C”) and what I get is:

 ![](https://root-forum.cern.ch/uploads/default/original/2X/d/d4c04f9c3d0c8c24d890760531b0bff4943227ff.png)

I think I’m missing something about how I have to run the TMVA examples and I guess I’ve mixed up the quickStart the User Guide etc…

So If you can give a hint, I’d very grateful.

Thanks!!

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [April 26, 2017, 10:48am UTC](https://root-forum.cern.ch/t/problem-installing-tmva/24548/4 "2017-04-26T10:48:53Z")

</div>

Hi,  
the error message is telling you that you don’t have curl.  
Please install it with “apt-get install curl”

Cheers,  
D

---

<div class="post-metadata">

**Author:** ![jon\_esteban](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/6bbea6/32.png) [@jon\_esteban](https://root-forum.cern.ch/u/jon_esteban)\
**Post date:** [April 26, 2017, 2:19pm UTC](https://root-forum.cern.ch/t/problem-installing-tmva/24548/5 "2017-04-26T14:19:15Z")

</div>

It worked fine finally!!!

Many thanks for answer so fast.

Cheers.

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [April 26, 2017, 2:30pm UTC](https://root-forum.cern.ch/t/problem-installing-tmva/24548/6 "2017-04-26T14:30:57Z")

</div>

glad you solved this!

---

<div class="post-metadata">

**Author:** ![souvik](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@souvik](https://root-forum.cern.ch/u/souvik)\
**Post date:** [October 28, 2019, 5:13pm UTC](https://root-forum.cern.ch/t/problem-installing-tmva/24548/7 "2019-10-28T17:13:16Z")

</div>

Dear Experts,  
I followed the same procedure. But I am getting the attached error every time I try to install it.  
Could you please suggest me one solution for it.

Thanks

 ![err](https://root-forum.cern.ch/uploads/default/original/3X/c/1/c163da0df7809c28e938075aa3b4c999219a0857.png)

---

<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:** [November 5, 2019, 8:40am UTC](https://root-forum.cern.ch/t/problem-installing-tmva/24548/8 "2019-11-05T08:40:24Z")

</div>

Hi, we’re glad to help. However, in general it is better to start a new thread rather than reviving old ones.

Ensure that you are building the latest version of root, TMVA is included in the distribution and does not need to be downloaded separately. (I mention this since the presence of the TMVA/macros folder in your screenshot, it is not used in newer versions).

If this does not solve your issue, please open a new thread and provide more details on what you are doing and your environment (version of root, commads you execute, etc.).

Cheers,  
Kim

---

<div class="post-metadata">

**Author:** ![souvik](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@souvik](https://root-forum.cern.ch/u/souvik)\
**Post date:** [November 5, 2019, 7:08pm UTC](https://root-forum.cern.ch/t/problem-installing-tmva/24548/9 "2019-11-05T19:08:02Z")

</div>

Thanks, I will.

Regards
