# Error building TMVA 4.0.1 on Mac OS X 10.6.3

**URL:** <https://root-forum.cern.ch/t/error-building-tmva-4-0-1-on-mac-os-x-10-6-3/10105>\
**Category:** TMVA\
**Created:** [May 6, 2010, 12:31am UTC](https://root-forum.cern.ch/t/error-building-tmva-4-0-1-on-mac-os-x-10-6-3/10105 "2010-05-06T00:31:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbanderson](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/dfb087/32.png) [@mbanderson](https://root-forum.cern.ch/u/mbanderson)\
**Post date:** [May 6, 2010, 12:31am UTC](https://root-forum.cern.ch/t/error-building-tmva-4-0-1-on-mac-os-x-10-6-3/10105/1 "2010-05-06T00:31:43Z")

</div>

I tried building TMVA on my macbook in the following way, and got an error:

`$ svn co https://tmva.svn.sourceforge.net/svnroot/tmva/tags/V04-00-01/TMVA TMVA-4.0.1
  ...
$ cd TMVA-4.0.1/src/
$ make
Building Volume.d ... Done
Building VariableTransformBase.d ... Done
  ...
Compiling Volume.cxx ... Done
Generating dictionary TMVA_Dict.C
Compiling dictionary TMVA_Dict.C
Building shared library ../lib/libTMVA.dylib ... ld: can't use -undefined warning or suppress with -twolevel_namespace
collect2: ld returned 1 exit status
make: *** [../lib/libTMVA.dylib] Error 1`  
What can I do to fix this?

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [May 19, 2010, 12:27am UTC](https://root-forum.cern.ch/t/error-building-tmva-4-0-1-on-mac-os-x-10-6-3/10105/2 "2010-05-19T00:27:39Z")

</div>

Hi,

Note that you may have an easier time using the release of TMVA included with the release of ROOT you have. For example the trunk of ROOT has a newer release of TMVA (4.0.4).

Cheers,  
Philippe.
