Fits Database

How to install MFITS



    So far, MFITS has been successfully tested with Root v5.12 and v5.26.
    In order to install the mfits package, please do the following:

  1. Download the cfitsio and CCfits libraries
  2. Untar cfitsio and CCfits with:

    tar -xvzf cfitsio3060.tar.gz
    tar -xvzf CCfits-2.0.mod.tar.gz
  3. Install cfitsio with:
    cd cfitsio 
    ./configure --prefix=<DIR1>
    make
    make install
  4. where <DIR1> is the directory where you want to install the library, e.g. /usr/local/cfitsio

  5. Install CCfits with:
    cd CCfits 
    ./configure --with-cfitsio=<DIR1> --prefix=<DIR2>
    make
    make install
  6. where <DIR2> is the directory where you want to install the library, e.g. /usr/local/CCfits

  7. Get mfits from the CVS:
    cvs co -P -d <DIR3> mfits 
    <DIR3> is the directory where you want to download the mfits package, e.g. /home/yoyo/magic/mfits

  8. Define the following variables in your .basrc or .cshrc (example for .cshrc):
    setenv CFITSIODIR <DIR1>
    setenv CCFITSDIR <DIR2>
    setenv MFITSDIR <DIR3>
  9. include $CCFITSDIR/lib and $MFITSDIR in the $LD_LIBRARY_PATH:
    setenv LD_LIBRARY_PATH "${CCFITSDIR}/lib:${MFITSDIR}:${LD_LIBRARY_PATH}"
  10. Compile mfits by:
    cd $MFITSDIR
    make


    All coments, suggestions and requests send to jrico@ifae.es and afernandez@ifae.es.

back