# Failing to find TMVA shared lib in Mac OS X 10.9 and ROOT 34

**URL:** <https://root-forum.cern.ch/t/failing-to-find-tmva-shared-lib-in-mac-os-x-10-9-and-root-34/17613>\
**Category:** TMVA\
**Created:** [May 12, 2014, 12:23pm UTC](https://root-forum.cern.ch/t/failing-to-find-tmva-shared-lib-in-mac-os-x-10-9-and-root-34/17613 "2014-05-12T12:23:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pandolf](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/0ea827/32.png) [@pandolf](https://root-forum.cern.ch/u/pandolf)\
**Post date:** [May 12, 2014, 12:23pm UTC](https://root-forum.cern.ch/t/failing-to-find-tmva-shared-lib-in-mac-os-x-10-9-and-root-34/17613/1 "2014-05-12T12:23:58Z")

</div>

hi all

sorry if this is not the right forum of if the topic has been discussed already. i just upgraded my local ROOT build on my Apple laptop to ROOT 5.34/18 and i’m trying to use TMVA. when i go to my tmva/test directory and try to launch ROOT, i get:

[~/local/root/tmva/test]$ root -l  
Error in TMacOSXSystem::DynamicPathName: libTMVA.1[.so | .dll | .dylib | .sl | .dl | .a] does not exist in $TMVASYS/lib:/Users/pandolf/local/root/lib:/Users/pandolf/local/root/lib:/Users/pandolf/local/root/lib:/Users/pandolf/local/BAT-0.2.1/lib::$TMVASYS/lib:/Users/pandolf/local/root/lib:/Users/pandolf/local/root/cint/cint/stl

now i’m not really sure i understand what it’s looking for, but i did verify that the following file exists:

[~/local/root/tmva]$ ll ~/local/root/lib/libTMVA.so  
-rwxr-xr-x 1 pandolf staff 6408156 May 12 14:00 …/lib/libTMVA.so

any helpers?

thanks in advance  
f

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [May 12, 2014, 2:34pm UTC](https://root-forum.cern.ch/t/failing-to-find-tmva-shared-lib-in-mac-os-x-10-9-and-root-34/17613/2 "2014-05-12T14:34:17Z")

</div>

It looks like you have not enabled tmva at configure time.  
With the option:

```auto
--enable-tmva
```

---

<div class="post-metadata">

**Author:** ![pandolf](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/0ea827/32.png) [@pandolf](https://root-forum.cern.ch/u/pandolf)\
**Post date:** [May 12, 2014, 2:40pm UTC](https://root-forum.cern.ch/t/failing-to-find-tmva-shared-lib-in-mac-os-x-10-9-and-root-34/17613/3 "2014-05-12T14:40:25Z")

</div>

hey thanks for the quick reply

not sure i understand exactly what you mean but if i do:

[~/local/root/tmva/test]$ root -l --enable-tmva

i get the same error. plus if i check if tmva is enabled with this:

[~/local/root/tmva]$ root-config --has-tmva  
yes

i get yes.

f

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [May 12, 2014, 2:54pm UTC](https://root-forum.cern.ch/t/failing-to-find-tmva-shared-lib-in-mac-os-x-10-9-and-root-34/17613/4 "2014-05-12T14:54:25Z")

</div>

Ok … --enable-tmva is not a root option, it is an option at configure time when you do the configure command before building root.  
It looks like you have not done that . Anyway tmva seems enabled with the root you have.  
I will ask my colleague, who knows better about it, to help you.

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [May 12, 2014, 3:16pm UTC](https://root-forum.cern.ch/t/failing-to-find-tmva-shared-lib-in-mac-os-x-10-9-and-root-34/17613/5 "2014-05-12T15:16:31Z")

</div>

Hi,

I think there is problem in the test/TMVAlogon.C file where it tries to load [libTMVA.1.so](http://libTMVA.1.so) instead of [libTMVA.so](http://libTMVA.so).  
We will fix this issue, in the meantime you can edit the file and comment the line, which is not actually needed anymore

Lorenzo

---

<div class="post-metadata">

**Author:** ![pandolf](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/0ea827/32.png) [@pandolf](https://root-forum.cern.ch/u/pandolf)\
**Post date:** [May 12, 2014, 3:24pm UTC](https://root-forum.cern.ch/t/failing-to-find-tmva-shared-lib-in-mac-os-x-10-9-and-root-34/17613/6 "2014-05-12T15:24:47Z")

</div>

hey lorenzo

thanks for the help. it does seem to solve the problem, as in the error message goes away now. but then when i try to compile the classification macro i get an error:

[~/local/root/tmva/test]$ root -l

TMVA – Toolkit for Multivariate Data Analysis  
Version 4.2.0, Sep 19, 2013  
Copyright © 2005-2010 CERN, MPI-K Heidelberg, Us of Bonn and Victoria  
Home page: [tmva.sf.net](http://tmva.sf.net)  
Citation info: [tmva.sf.net/citeTMVA.html](http://tmva.sf.net/citeTMVA.html)  
License: [tmva.sf.net/LICENSE](http://tmva.sf.net/LICENSE)

TMVAlogon: use “TMVA” style [TMVA style based on “Plain” with modifications defined in tmvaglob.C]

root [0] .L TMVAClassification.C++  
Info in TMacOSXSystem::ACLiC: creating shared library /Users/pandolf/local/root/tmva/test/./TMVAClassification\_C.so  
In file included from /Users/pandolf/local/root/tmva/test/TMVAClassification\_C\_ACLiC\_dict.cxx:17:  
In file included from /Users/pandolf/local/root/tmva/test/TMVAClassification\_C\_ACLiC\_dict.h:34:  
/Users/pandolf/local/root/tmva/test/./TMVAClassification.C:496:27: error: use of undeclared identifier 'TMVAGui’  
if (!gROOT-\>IsBatch()) TMVAGui( outfileName );  
^  
1 error generated.  
clang: error: no such file or directory: '/Users/pandolf/local/root/tmva/test/TMVAClassification\_C\_ACLiC\_dict.o’  
Error in : Compilation failed!

any ideas on what i might be doing wrong now?

f

---

<div class="post-metadata">

**Author:** ![rooter\_03](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/rooter_03/32/19119_2.png) [@rooter\_03](https://root-forum.cern.ch/u/rooter_03)\
**Post date:** [July 18, 2014, 1:51am UTC](https://root-forum.cern.ch/t/failing-to-find-tmva-shared-lib-in-mac-os-x-10-9-and-root-34/17613/7 "2014-07-18T01:51:39Z")

</div>

Hi,

Maybe you realized it by now but its the line that calls the TMVAGui function in TMVAGUI.C, comment it and when the results be ready load the TMVAGUI.C, (.L TMVAGUI.C) file and call the function ( TMVAGUI() ). if you just run it .x TMVAclasification.C without compiling its also going to work. But the function is not defined inside the code so its not going to compile.
