Skip to content
Snippets Groups Projects
README 2.72 KiB
Newer Older
  • Learn to ignore specific revisions
  • mnb's avatar
    mnb committed
                          fitsTcl Installation Guide
    
    Tony Farrell's avatar
    Tony Farrell committed
    
    
       fitsTcl is a TCL interface to the CFITSIO astronomical library
       which provides access to FITS data files.  It can be used either by
    
    mnb's avatar
    mnb committed
       itself within the standard Tcl/Tk applications tclsh and wish, or
    
    Tony Farrell's avatar
    Tony Farrell committed
       within the fv software package also distributed by the HEASARC at
       NASA Goddard.
    
       The fitsTcl User's Guide is located in the fitsTcl.html file
    
    mnb's avatar
    mnb committed
       distributed with fitsTcl and located on the web at:
    
    mnb's avatar
    mnb committed
           http://heasarc.gsfc.nasa.gov/ftools/fv/fitsTcl.html
    
    mnb's avatar
    mnb committed
       fitsTcl can be built under PC Linux or Mac OS X, and requires the
       CFITSIO and Tcl packages.  Instructions for building the software
       are below.
    
    mnb's avatar
    mnb committed
       Please send any questions or problem reports to the FTOOLS help desk:
       
           ftoolshelp@bigbang.gsfc.nasa.gov.
    
    mnb's avatar
    mnb committed
       Before building fitsTcl, make sure you have Tcl installed on your
       machine and can locate the tcl.h header file.  To build the fitsTcl
       library:
    
    mnb's avatar
    mnb committed
       1.  Download the latest version of the cfitsio source code from:
    
    mnb's avatar
    mnb committed
             http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html
    
    mnb's avatar
    mnb committed
           and unpack the tar file.
    
    mnb's avatar
    mnb committed
       2.  Unpack the compressed fitsTcl tar file and enter the fitsTcl-2.4
           directory.
    
    mnb's avatar
    mnb committed
       3.  Configure fitsTcl for your system with the command
    
    mnb's avatar
    mnb committed
              ./configure [optional arguments]
    
    mnb's avatar
    mnb committed
           where the optional arguments are:
    
    mnb's avatar
    mnb committed
              --prefix=DIR1 --with-cfitsio=DIR2 --with-tcl-includes=DIR3
    
    mnb's avatar
    mnb committed
              DIR1 is the installation path (default is /usr/local)
    
    mnb's avatar
    mnb committed
              DIR2 is the path to the cfitsio source directory
                   (default is ./cfitsio)
    
    mnb's avatar
    mnb committed
              DIR3 is the path to the location of the tcl.h header file
                   (default is $prefix/include or /usr/include).
    
    mnb's avatar
    mnb committed
           These may be considered optional only if the defaults are valid
           for your system/setup.
    
    mnb's avatar
    mnb committed
           Under the Cygwin environment, an additional argument is required:
    
    mnb's avatar
    mnb committed
              --with-tcl=DIR4
    
    mnb's avatar
    mnb committed
              DIR4 is the path to the location of the Tcl library (libtcl8.x.dll).
    
    mnb's avatar
    mnb committed
           The final library will be installed in the directory DIR1/lib
           which must exist.  Note that the library itself does not depend
           on the value of DIR1, only the installation step in the Makefile.
    
    mnb's avatar
    mnb committed
       4.  Build fitsTcl with the command
    
    mnb's avatar
    mnb committed
              make
    
    mnb's avatar
    mnb committed
       5.  Install fitsTcl either with the command
    
    mnb's avatar
    mnb committed
              make install
    
    mnb's avatar
    mnb committed
           which will place it in the DIR1/lib directory, or move the
           library (libfitstcl.so, or libfitstcl.dylib under Mac OS X)
           manually to where you want it.
    
    mnb's avatar
    mnb committed
       To use fitsTcl, startup tclsh or wish and type the command
    
    mnb's avatar
    mnb committed
           load libfitstcl.so (libfitstcl.dylib on Mac OS X)
    
    mnb's avatar
    mnb committed
       You may need to specify an explicit path to the library or set the
       LD_LIBRARY_PATH (DYLD_LIBRARY_PATH on Mac OS X) to its location.