/************************************************************************/
/**                                                                    **/
/**                   Linux Installation of DISLIN                     **/
/**                                                                    **/
/** Contents: 1.) Introduction                                         **/
/**           2.) Installation of Libraries and Utility Programs       **/
/**           3.) Installation of Plot Devices                         **/
/**           4.) Using DISLIN from Perl                               **/
/**           5.) Using DISLIN from Python                             **/
/**           6.) FTP Sites.                                           **/
/**                                                                    **/
/** Date   : 10.07.1998                                                **/
/** Version: 7.0    / Linux, gcc + g77 + f2c                           **/
/** Author : Helmut Michels, Tel.: +49 5556 979 334                    **/
/**          MPI fuer Aeronomie, Max-Planck-Str. 2,                    **/
/**          D-37191 Katlenburg-Lindau, Germany                        **/
/** Mail:    michels@linmpi.mpg.de                                     **/
/************************************************************************/


1.) Introduction

   DISLIN is a high level and easy to use graphics library for displaying
   data as curves,  bar graphs,  pie charts,  3D-colour plots,  surfaces,
   contours and maps. The software is available for several C, Fortran 77
   and Fortran 90 compilers.

   The UNIX versions of the graphics software  DISLIN  are distributed as 
   compressed tar files with the file names 'dislin-n.m.xxx.tar.gz' where
   'n.m' contains the DISLIN version while the part 'xxx'  identifies the 
   operating system or compiler.  

   Notes: - DISLIN is compiled with gcc 2.7.2. 

          - DISLIN for Linux supports Fortran programming with f2c and 
            g77. 

          - DISLIN for Linux supports now the interpreting programming
            languages Perl 5.003 and Python 1.5.
          
          - DISLIN uses X11 for graphical output on terminals.

          - The Linux version of DISLIN is free software.


2.) Installation of Libraries and Utility Programs

a) Uncompress the tar.gz file with the command

                  gzip -d     dislin-7.0.linux.tar.gz


b) Restore files from the tar file with the command

                  tar   xvf   dislin-7.0.linux.tar    

c) Change to the installation directory of DISLIN

                  cd    dislin-7.0

d) Choose a directory in the file structure where DISLIN should be
   installed and define the environment variable DISLIN with it:

   For example:    DISLIN=$HOME/dislin     (or: /usr/local/dislin)
                   export DISLIN
    
e) Run the install program with the command 

                   INSTALL

   This program copies files to $DISLIN and sets protections.

f) To make DISLIN available for general use, write the following com-
   mands to your .profile or to /etc/profile

                    DISLIN=directory                     
                    export DISLIN
                    PATH=${PATH}:${DISLIN}/bin

                    LD_LIBRARY_PATH=$DISLIN:$LD_LIBRARY_PATH
                    export LD_LIBRARY_PATH

g) Now you can compile, link and run the example programs in the
   directory $DISLIN/examples with the commands:

                    clink   -a exa_c      (for gcc)       
                    dlink   -a exa_f77    (for f2c)
                    g77link -a exa_f77    (for g77)


   Note: An alternate linking method can be:

       gcc -o exa_c   exa_c.o   -L$DISLIN -ldislnc -lm -lX11       (for gcc)
       gcc -o exa_f77 exa_f77.o -L$DISLIN -ldislin -lm -lf2c -lX11 (for f2c)
       g77 -o exa_f77 exa_f77.o -L$DISLIN -ldislin -lX11           (for g77)

       The -L option can be omitted if links to the DISLIN libraries
       are created in /usr/local/lib:

         ln -s $DISLIN/lib/dislin-7.0.so  libdislin.so.7
         ln -s libdislin.so.7             libdislin.so

         ln -s $DISLIN/lib/dislnc-7.0.so  libdislnc.so.7
         ln -s libdislnc.so.7             libdislnc.so

         ln -s $DISLIN/lib/dislin-7.0.a   libdislin.a 
         ln -s $DISLIN/lib/dislnc-7.0.a   libdislnc.a 


h) You can delete the installation directory 'dislin-7.0'.


3.) Installation of Plot Devices

   The driver program disdrv and the subroutine symfil can be used to send
   a plotfile created by DISLIN to a device.  You have to modify  the file 
   device.dat in the DISLIN directory to define a device (see device.dat).
   For example, if you have a PostScript printer with the queuename  xxxx,
   you can insert the following statements into the file device.dat:

   --------------------------
   PSC1
   POST
   lpr -Pxxxx %
   lpr -Pxxxx %
   --------------------------


4.) Using DISLIN from Perl        


   A DISLIN module for the programming language Perl is included in this
   DISLIN distribution. The module and some examples can be found in the
   directory $DISLIN/perl

   To use DISLIN from Perl, you have to define the  environment variable
   PERL5LIB:

             export PERL5LIB=$DISLIN/perl


5.) Using DISLIN from Python        


   An extension module for the programming language Python is also included
   in  DISLIN for Linux. The module and examples can be found in the
   directory $DISLIN/python

   To use DISLIN from Python, you have to define the  environment variable
   PYTHONPATH:

             export PYTHONPATH=$DISLIN/python


6.) FTP Sites

   DISLIN is available via ftp anonymous from the following sites:

      ftp://ftp.gwdg.de/pub/grafik/dislin 
      ftp://linhmi.mpae.gwdg.de/pub/dislin     

   The DISLIN Home Page is:

      http://www.mpae.gwdg.de/dislin/dislin.html




