root-config --has-minuit2If you see the output "yes" then you are ok. If you see the output "no" then you need to get a version of root with minuit2 support compiled in.
(Note that if you see an error such as "bash: root-config: command not found" then make sure you have a ROOT installation and that you have sourced the necessary setup scripts to get the ROOT commands into your path!)
If you need to build ROOT from source, bear in mind that a default build of the May 2012 version of ROOT does not enable minuit2:
bash$ mkdir /tmp/somewhere bash$ cd /tmp/somewhere bash$ mkdir -p /tmp/somewhere/usr/local bash$ wget ftp://root.cern.ch/root/root_v5.32.03.source.tar.gz bash$ tar -xzvf root_v5.32.03.source.tar.gz bash$ cd root bash$ ./configure --prefix=/tmp/erm/usr/local/ ... snip lots of output ... Writing bin/genreflex ... done Writing bin/genreflex-rootcint ... done Writing config.status ... done Enabled support for asimage, astiff, builtin_afterimage, builtin_ftgl, builtin_glew, builtin_lzma, castor, cintex, exceptions, explicitlink, fink, genvector, krb5, ldap, mathmore, memstat, mysql, odbc, opengl, pgsql, python, reflex, rfio, shadowpw, shared, ssl, tmva, x11, xft, xml. To build ROOT type: make make installTo enable minuit2 support, you (or your system administrator) must request it manually by adding "--enable-minuit2" to the configure line like this:
bash$ mkdir /tmp/somewhere bash$ cd /tmp/somewhere bash$ mkdir -p /tmp/somewhere/usr/local bash$ wget ftp://root.cern.ch/root/root_v5.32.03.source.tar.gz bash$ tar -xzvf root_v5.32.03.source.tar.gz bash$ cd root bash$ ./configure --prefix=/tmp/erm/usr/local/ --enable-minuit2 ... snip lots of output ... Writing bin/genreflex ... done Writing bin/genreflex-rootcint ... done Writing config.status ... done Enabled support for asimage, astiff, builtin_afterimage, builtin_ftgl, builtin_glew, builtin_lzma, castor, cintex, exceptions, explicitlink, fink, genvector, krb5, ldap, mathmore, memstat, minuit2, mysql, odbc, opengl, pgsql, python, reflex, rfio, shadowpw, shared, ssl, tmva, x11, xft, xml. To build ROOT type: make make install