last update:$Date: 2005/12/20 08:42:42 $

How to use Minuit with autoconf/make

For each release of MINUIT there will be a tar.gz available which contains the code and can be run using the autoconf tools. The necessary steps to follow are:

  1. Download the Minuit-x-x-x.tar.gz from the download page
  2. unzip and untar the file:
    tar -zxf Minuit-x-x-x.tar.gz
  3. step down to the created Minuit-x.x.x directory:
    cd Minuit-x.x.x/
    
  4. run the "configure" script:
    ./configure 
  5. run make to compile the source code:
  6. make
    If the compilation gets stuck with a message like "Waiting for AnalyticalGradientCalculator.o.lock to be removed" then you are probably trying to compile under AFS. In this case go to the previous step and run:
    ./configure --disable-libtool-lock 
    If the compilation fails with an error message like MnUserTransformation.cpp: In method `MnUserTransformation::MnUserTransformation (const vector > &, const vector > &)': MnUserTransformation.cpp:30: `::sprintf' undeclared (first use here) make[2]: *** [MnUserTransformation.lo] Error 1 then probably your gcc compiler is set to version 2.96 or older. Try to set it to 3.2 or 3.2.3.
  7. run "make check" to create the executable example:
  8. make check
  9. Then run the executable example using the automatically created script:
  10. test/MnTutorial/test_Minuit_Quad4FMain
and the produced output should look like this one here.