Minuit2 library missing

Hello,
I am trying to compile a code which uses Minuit2 library. I get this problem:

/usr/bin/ld: cannot find -lMinuit2 collect2: ld returned 1 exit status
Minuit2 is in my root distribution, but when I compile root it does not compile the Minuit2 library:
The code is in:

$ROOTSYS/math/minuit2/

I have downloaded the code from: seal.web.cern.ch/seal/MathLibs/M … it2.tar.gz
then configure --prefix=$ROOTSYS ;make;make install but when I try to compile my code I get:

/software/at3/root/root-5.30.04_slc57_gcc4.1.2-51_x86-64_PROOF/lib/libMinuit2.so: undefined reference to `GOMP_parallel_start' /software/at3/root/root-5.30.04_slc57_gcc4.1.2-51_x86-64_PROOF/lib/libMinuit2.so: undefined reference to `omp_get_thread_num' /software/at3/root/root-5.30.04_slc57_gcc4.1.2-51_x86-64_PROOF/lib/libMinuit2.so: undefined reference to `GOMP_parallel_end' /software/at3/root/root-5.30.04_slc57_gcc4.1.2-51_x86-64_PROOF/lib/libMinuit2.so: undefined reference to `omp_get_num_threads' collect2: ld returned 1 exit status make: *** [.o/src/main.bin] Error 1

Is there a way to compile and obtain the Minuit2 library from the root distribution?
Thanks so much!
Carlos

Minuit2 is distributed with ROOT but not built by default.
You need to pass ‘–enable-minuit2’ to ‘./configure’ .
Check also ‘./configure --help’.
Also make sure that it appears among the list of enabled modules printed by ‘configure’ at the end.

G. Ganis

Thanks so much G!!