Home| Content 
Installation

FMT Linux Installation.

Fmt package works under Linux operating systems.  
I. The Precompiled Package:
The system requirements for  precompiled package: KDE windows manager, gcc 4.x.x , X11R7, shell csh, gnumake, PostScript viewer ghostview.
  1. If you are interested in Frequency-Time Analysis program only use following tar archives:
      dsapLinux.tar.gz
      DbFtanBinLinux_1_40.tar.gz
      FmtDoc_1_40.tar.gz
   If you will work with Moment Tensor & Source Depth Inversion and related components and if GMT3.4 is not install yet use following tar archive:
     MomTensBinLinux_1_40.tar.gz
     gmt3.4.Linux.tar.gz

   Place these archive files in the installation directory; gunzip and tar out the contents.  Sub directories dsap,fmt,GMT3.4 will be created.

   2. make a symlink:
   cd /opt
   ln -s installationdirectory/dsap dsap
   ln -s installationdirectory/fmt fmt
   If you need Moment Tensor ...
   cd /usr/local
   ln -s installationdirectory/GMT3.4 GMT3.4
   3.  You must use  csh shell.
   Add into   ~/.cshrc  file  row:
   source /opt/fmt/setuprun.csh
   Make sure that this file setuprun.csh contains FMT_ARCHITECTURE_ variable which correspond  platform Linux
  (setenv FMT_ARCHITECTURE_   Linux)

II. The Source code.
The system requirements for  precompiled package: KDE windows manager, gcc 4.x.x ,shell csh, gnumake, PostScript viewer ghostview.

 1. You need following tar archives:
   If you want to use  only Frequency-Time Analysis program and related components:
   dsapLinux.tar.gz
   DbFtanSource_1_40.tar.gz
   vc++Linux.tar.gz
   FmtDoc_1_40.tar.gz
   If you will work with Moment Tensor & Source Depth Inversion and related components:
   MomTensSource_1_40.tar.gz
   MomTensDataLinux.tar.gz
   If GMT 3.4 is not installed yet:
   gmt3.4.Linux.tar.gz
  
   Place the these archives files in the installation directory; gunzip and tar out the contents.
   Sub directories dsap,fmt,GMT3.4,v will be created.

   2. make a symlink:
   cd /opt
   ln -s installationdirectory/dsap dsap
   ln -s installationdirectory/fmt fmt
   If you need Moment Tensor.
   cd /usr/local
   ln -s installationdirectory/v v
   ln -s installationdirectory/GMT3.4 GMT3.4

   3.  You must use  csh shell.
   Add into   ~/.cshrc file  rows:
   source /opt/fmt/setup.csh
   Check if  'make' file is in fact 'gmake' ( gnu make ).
   a. Make sure that this file ´setup.csh´ contains FMT_ARCHITECTURE_ variable which correspond  platform Linux
   setenv FMT_ARCHITECTURE_   Linux
   b. Specifying actual paths to the X11 include and lib directories (environment variables: INCDIR_X11 and LIBDIR_X11)
     Actual paths to the X11 under Linux is usually /usr/X11R6 or /usr/lib
     if ( $FMT_ARCHITECTURE_ =~ Linux ) then
    setenv INCDIR_X11 /usr/X11R6/include
    setenv LIBDIR_X11 /usr/X11R6/lib
    endif

   4.You need fortran 77 emulator software.
The fort77 utility is the interface to the FORTRAN compilation system; it will accept the full Fortran-77 language defined by the ANSI X3.9-1978 standard.
Fort-77 is Perl driver script for the f2c Fortran to C convertor, which makes it possible to use it like a compiler.
You need additional tar archives :
      GCC4-fortran77-fort.tar.gz 
      GCC4-fortran77-f2c.tar.gz  
   Place the these archives files in the installation directory; gunzip and tar out the contents.
   Sub directories fortran77, f2c  will be created.
   make a symlink:
   cd /usr/local
   ln -s installationdirectory/fortran77  fortran77
   ln -s installationdirectory/f2c  f2c
   Note:
   For our purposes we adopted original versions of this utilities which you can receive on the Internet:
   http://debian.telecoms.bg/debian/pool/main/f/fort77/fort77_1.15.orig.tar.gz
   http://www.llnl.gov/casc/Overture/henshaw/software/f2c.tar.gz  ,
   but we recomend you use our adopted versions.   

5. Users must have Qt on their machine 
(Qt is Trolltech - Cross-platform C++ GUI Development, and Embedded Linux Solutions http://www.trolltech.com/)
  From the Qt website  download  and uncompress in <QtInstallDirectory>  the latest stable versions of Qt  for Linux platform qt-x11-opensource-src-x.x.x.
As superuser unpack the Qt archive by performing the following commands Let's ;QtInstallDirectory> is /tmp
cd /tmp
    gunzip qt-x11-opensource-src-x.x.x.tar.gz    
   tar xvf qt-x11-opensource-src-x.x.x.tar
where x.x.x. is the Qt version number.  By default, Qt is configured for installation in the  /usr/local/Trolltech/Qt-x.x.x. Build Qt by executing the following commands :
    cd  /tmp/qt-x11-opensource-src-x.x.x    
    configure -platform linux-g++ -release    
    make
    make install
Locate qmake, moc and other Qt tools in the environment variable PATH    
   setenv PATH /usr/local/Trolltech/Qt-x.x.x /bin:$PATH
add this row in your .cshrc file.

6. Qwt installation.
Qwt is Qt windows for technical applications including a 2D plot widget. http://sourceforge.net/projects/qwt. Download version qwt-5.1.0
As superuser unpack the unpack the archive.
        cd /tmp
        bzip2 -d  qwt-x.x.x.tar.bz2        # uncompress the archive   x.x.x means number of version
        tar xvf qwt-x.x.x.tar                   # unpack it
The first step is to edit qwtconfig.pri to adjust it to our needs.
Enter the directory /temp/qwt-x.x.x, open qwtconfig.pri by  any text editor
a.
Mark following lines by # to compile static library of Qwt package.
#CONFIG     += QwtDll
#CONFIG     += QwtSVGItem
#CONFIG     += QwtMathML
#CONFIG     += QwtDesigner
b.
Let's specify a directory where Qwt will be  installed. Lets it will be /usr/local/qwt/x.x.x
Edit these lines
unix  {
    INSTALLBASE    =  /usr/local/qwt/x.x.x
}
You have to build Qwt  this way:
cd /temp/qwt-x.x.x
qmake qwt.pro
make
make install
Locate library  Qwt tools in the environment variable QWTDIR    
   setenv QWTDIR   /usr/local/qwt/x.x.x
add this row in your .cshrc file.

7.  Compile Fmt package.
To compile the Frequency-Time Analysis package
   cd  /opt/fmt/src/DBFTAN
   make
To compile the Moment Tensor package
   cd  /opt/fmt/src/MOMTENS
   make

Installation
Copyright © 1998 - 2005 Mitpan
Fmt-1-40