BUTTON home pageBUTTON home 
    page

Installation

Requirements

Before you install BUTTON, make sure that PGPLOT (version 5.1.0 or above) is already installed in your system. If this is not the case, you can download PGPLOT from here.


Installation

To install BUTTON in your computer, you must complete the following steps:
  1. Download the compressed distribution tar file: button.tar.gz
    (PC users: try this distribution file.)

  2. Create the directory where BUTTON will be installed, e.g.
         % cd /usr/local
         % mkdir button
         
  3. Make this new directory your current directory and copy there the distribution tar file
         % cd button
         % mv /scratch/xxx/button.tar.gz .
         
  4. Decompress the gziped file
         % gunzip button.tar.gz
         
  5. Extract the contents of the tar file
         % tar xvf button.tar
         
  6. Edit the file Makefile and set the abbreviation COMPILER to your available FORTRAN compiler, e.g.
         % vi Makefile   (...COMPILER = f77  ...wq!)
         
  7. Execute the Makefile
         % make
         
    In this stage the library libbutton.a must be created.

  8. Remove the object modules
         % make clean
         
  9. Move to the sample directory
         % cd sample
         
  10. Compile the sample program
         % f77 -o sample sample.f ../libbutton.a -L$PGPLOT_DIR -lpgplot -lX11
         
  11. Execute the sample program
         % ./sample
         

BUTTON home pageBUTTON home 
    page