# TMVA compilation in root version 5.34/05 failing

**URL:** <https://root-forum.cern.ch/t/tmva-compilation-in-root-version-5-34-05-failing/16022>\
**Category:** TMVA\
**Created:** [May 6, 2013, 6:05am UTC](https://root-forum.cern.ch/t/tmva-compilation-in-root-version-5-34-05-failing/16022 "2013-05-06T06:05:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mradul](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/b9e5f3/32.png) [@mradul](https://root-forum.cern.ch/u/mradul)\
**Post date:** [May 6, 2013, 6:05am UTC](https://root-forum.cern.ch/t/tmva-compilation-in-root-version-5-34-05-failing/16022/1 "2013-05-06T06:05:34Z")

</div>

Hi…  
TMVA compilation in root version 5.34/05 is failing. The error log is attached. Can we understand the problem?

Apart from it, there is another query. Without TMVA compilation in root, I am still able to carry out the classification, as described:  
/TMVA/test\> root -l TMVAClassification.C(“LD,Likelihood”)

It appears that classification does not need tmva compilation. Why it is so?

Mradul  
[tmva-log.dat](https://root-forum.cern.ch/uploads/default/original/2X/e/e89204ec5ba4f59ea250a56d8db9ed83d92767a7.dat) (305 KB)

---

<div class="post-metadata">

**Author:** ![hvoss](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/cc9497/32.png) [@hvoss](https://root-forum.cern.ch/u/hvoss)\
**Post date:** [May 8, 2013, 2:40pm UTC](https://root-forum.cern.ch/t/tmva-compilation-in-root-version-5-34-05-failing/16022/2 "2013-05-08T14:40:39Z")

</div>

Hi Mradul,

well, in the standard ROOT distribution, you already get a TMVA version included. Therefor, you can use  
the TMVA classification w/o an explicit own complilation of TMVA.

You’ve done something wrong when trying to compiling and using your OWN TMVA version rather than the one supplied with the ROOT distribution, as the compilation error is basically that you’ve got everying dublicated:  
see:

Building shared library lib/libTMVA.so … obj/TMVA\_Dict1.o: In function `TMVA::Configurable::Class_Name()': /usr/local/root/tmva/src/TMVA_Dict1.C:954: multiple definition of`TMVA::Configurable::Class\_Name()'  
o

Now, I don’t know HOW you’ve done the compilation, but the recommende procedure would be:  
using the latest TMVA from the ROOT svn repository:

~\>svn co [root.cern.ch/svn/root/branches/dev/tmva](https://root.cern.ch/svn/root/branches/dev/tmva) ~/YOURTMVADIR  
~\> cd ~/YOURTMVADIR  
~/YOURTMVADIR/\> make  
~/YOURTMVADIR\> cd test  
~/YOURTMVADIR/test\> source [setup.sh](http://setup.sh) ~/YOURTMVADIR # for c-shell family: source setup.csh

source [setup.sh](http://setup.sh) ~/YOURTMVADIR"  
it should pick up all the  
tmva libraries and macros from ~/YOURTMVADIR

Cheers,

Helge
