~ubuntu-branches/debian/stretch/tcl-fitstcl/stretch

« back to all changes in this revision

Viewing changes to README

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2015-06-10 17:35:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20150610173543-37jifpt0bjuocrr0
Tags: 2.4-1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
                                   
2
 
                  fitsTcl 2.1.1 Installation Guide
 
2
                      fitsTcl Installation Guide
3
3
 
4
4
 
5
5
   fitsTcl is a TCL interface to the CFITSIO astronomical library
6
6
   which provides access to FITS data files.  It can be used either by
7
 
   itself within the standard tcl/tk applications tclsh and wish, or
 
7
   itself within the standard Tcl/Tk applications tclsh and wish, or
8
8
   within the fv software package also distributed by the HEASARC at
9
9
   NASA Goddard.
10
10
 
11
11
   The fitsTcl User's Guide is located in the fitsTcl.html file
12
 
   distributed with fitsTcl2.1.1 and located on the web at:
13
 
 
14
 
        http://heasarc.gsfc.nasa.gov/ftools/fv/fitsTcl.html
15
 
 
16
 
   Send any bug reports to ftoolshelp@athena.gsfc.nasa.gov.
17
 
 
18
 
   fitsTcl can be built under Unix/Linux (PowerPC or Intel), MacOS,
19
 
   and Windows.  You will need a version of Tcl8.x, available either
20
 
   from Scriptics (www.scriptics.com) or HEASARC as part of the fv
21
 
   distribution (heasarc.gsfc.nasa.gov/ftools/fv).  Read the following
22
 
   for instructions for building on each platform.
23
 
 
24
 
 
25
 
 
26
 
********************************************************************************
27
 
                         UNIX (including Mac OS X)
28
 
********************************************************************************
29
 
 
30
 
 
31
 
   To build the fitsTcl shared library do the following:
32
 
 
33
 
      1.  Unpack the compressed fitsTcl tar file and enter the fitsTcl2.1.1
34
 
          directory.
35
 
 
36
 
      2.  Download the latest version of the cfitsio source code (for UNIX)
37
 
          from:
38
 
 
39
 
          http://heasarc.gsfc.nasa.gov/docs/software/lheasoft/fitsio/fitsio.html
40
 
 
41
 
          and unpack the source tar file.
42
 
 
43
 
      3.  Configure fitsTcl for your system with the command
44
 
 
45
 
             ./configure [optional arguments]
46
 
 
47
 
          where the optional arguments are:
48
 
 
49
 
             --prefix=DIR1 --with-cfitsio=DIR2 --with-tcl-includes=DIR3
50
 
 
51
 
             DIR1 is the installation path (default is /usr/local)
52
 
 
53
 
             DIR2 is the path to the cfitsio source directory
54
 
                  (default is ./cfitsio)
55
 
 
56
 
             DIR3 is the path to the location of the tcl.h header file
57
 
                  (default is $prefix/include or /usr/include).
58
 
 
59
 
          These may be considered optional only if the defaults are valid
60
 
          for your system/setup.
61
 
 
62
 
          The final library will be installed in the directory DIR1/lib
63
 
          which must exist.  Note that the library itself does not depend
64
 
          on the value of DIR1, only the installation step in the Makefile.
65
 
 
66
 
      4.  Build fitsTcl with the command
67
 
 
68
 
             make
69
 
 
70
 
      5.  Install fitsTcl either with the command
71
 
 
72
 
             make install
73
 
 
74
 
          which will place it in the DIR1/lib directory, or move the
75
 
          library (libfitstcl.so, or libfitstcl.dylib under Mac OS X)
76
 
          manually to where you want it.
77
 
 
78
 
      To use fitsTcl, startup tclsh or wish and type the command
79
 
 
80
 
          load libfitstcl.so (libfitstcl.dylib on Mac OS X)
81
 
 
82
 
      You may need to specify an explicit path to the library or set
83
 
      the LD_LIBRARY_PATH (DYLD_LIBRARY_PATH on Mac OS X) to its location.
84
 
 
85
 
 
86
 
********************************************************************************
87
 
                                    MacOS 
88
 
********************************************************************************
89
 
 
90
 
 
91
 
   To build fitsTcl extension do the following:
92
 
 
93
 
      1.  Download and build the Mac TCL software available from
94
 
          Scriptics (www.scriptics.com).
95
 
 
96
 
      2.  Download and expand the fitsTcl distribution, which will
97
 
          create a fitsTcl2.1.1 subdirectory.
98
 
 
99
 
      3.  Download the latest version of the cfitsio source code from:
100
 
 
101
 
          http://heasarc.gsfc.nasa.gov/docs/software/lheasoft/fitsio/fitsio.html
102
 
 
103
 
          and untar it under the fitsTcl2.1.1 directory (i.e. such that
104
 
          you have a fitsTcl2.1.1/cfitsio directory).
105
 
 
106
 
      4.  Debinhex and expand the file fitsTcl.sit.hqx, creating
107
 
          a fitsTcl folder containing a Codewarrior 5 project file,
108
 
          fitsTcl.p.
109
 
 
110
 
      5.  Open the new project file and update the Access Paths to
111
 
          point to your TCL source tree.
112
 
 
113
 
      6.  Build the 'fitsTcl DLL' target.  This will create a file
114
 
          fitsTcl.dll in the fitsTcl directory.  Move it to where ever
115
 
          is convenient and use 'load fitsTcl.dll' to load it into
116
 
          tclsh or wish.
117
 
 
118
 
   (Note: We do not distribute a binary version of the plugin since it
119
 
   is dependent on the major TCL version -- 8.0, 8.1, etc -- used in
120
 
   building it.  We may distribute one, though, if there is sufficient
121
 
   demand for use with a particular TCL release.)
122
 
 
123
 
 
124
 
 
125
 
********************************************************************************
126
 
                               MS Windows
127
 
********************************************************************************
128
 
 
129
 
 
130
 
   Building fitsTcl requires Microsoft Visual C++.  A Borland C v5
131
 
   makefile is also included, although it has not been updated since
132
 
   the last release.
133
 
 
134
 
   To build fitsTcl DLL do the following:
135
 
 
136
 
      1.  Download and build the Windows TCL software available from
137
 
          Scriptics (www.scriptics.com).
138
 
 
139
 
      2.  Download and expand the fitsTcl distribution, which will
140
 
          create a fitsTcl2.1.1 subdirectory.
141
 
 
142
 
      3.  Download the latest version of the cfitsio source code from:
143
 
 
144
 
          http://heasarc.gsfc.nasa.gov/docs/software/lheasoft/fitsio/fitsio.html
145
 
 
146
 
          and untar it under the fitsTcl2.1.1 directory (i.e. such that
147
 
          you have a fitsTcl2.1.1/cfitsio directory).
148
 
 
149
 
      4.  Edit the file makefile.vc (or makefile.bc5) and update the
150
 
          paths for your specific setup.  We have our source tree at
151
 
          D:\FV_SRC.  Replace this and the TCL8.2.2 references as
152
 
          appropriate.
153
 
 
154
 
      5.  Type the command 'nmake -f makefile.vc'.  This will build
155
 
          a fitstcl.dll file.  Move it to where ever is convenient and
156
 
          use 'load fitstcl.dll' to load it into tclsh or wish.
 
12
   distributed with fitsTcl and located on the web at:
 
13
 
 
14
       http://heasarc.gsfc.nasa.gov/ftools/fv/fitsTcl.html
 
15
 
 
16
   fitsTcl can be built under PC Linux or Mac OS X, and requires the
 
17
   CFITSIO and Tcl packages.  Instructions for building the software
 
18
   are below.
 
19
 
 
20
   Please send any questions or problem reports to the FTOOLS help desk:
 
21
   
 
22
       ftoolshelp@bigbang.gsfc.nasa.gov.
 
23
 
 
24
   Before building fitsTcl, make sure you have Tcl installed on your
 
25
   machine and can locate the tcl.h header file.  To build the fitsTcl
 
26
   library:
 
27
 
 
28
   1.  Download the latest version of the cfitsio source code from:
 
29
 
 
30
         http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html
 
31
 
 
32
       and unpack the tar file.
 
33
 
 
34
   2.  Unpack the compressed fitsTcl tar file and enter the fitsTcl-2.4
 
35
       directory.
 
36
 
 
37
   3.  Configure fitsTcl for your system with the command
 
38
 
 
39
          ./configure [optional arguments]
 
40
 
 
41
       where the optional arguments are:
 
42
 
 
43
          --prefix=DIR1 --with-cfitsio=DIR2 --with-tcl-includes=DIR3
 
44
 
 
45
          DIR1 is the installation path (default is /usr/local)
 
46
 
 
47
          DIR2 is the path to the cfitsio source directory
 
48
               (default is ./cfitsio)
 
49
 
 
50
          DIR3 is the path to the location of the tcl.h header file
 
51
               (default is $prefix/include or /usr/include).
 
52
 
 
53
       These may be considered optional only if the defaults are valid
 
54
       for your system/setup.
 
55
 
 
56
       Under the Cygwin environment, an additional argument is required:
 
57
 
 
58
          --with-tcl=DIR4
 
59
 
 
60
          DIR4 is the path to the location of the Tcl library (libtcl8.x.dll).
 
61
 
 
62
       The final library will be installed in the directory DIR1/lib
 
63
       which must exist.  Note that the library itself does not depend
 
64
       on the value of DIR1, only the installation step in the Makefile.
 
65
 
 
66
   4.  Build fitsTcl with the command
 
67
 
 
68
          make
 
69
 
 
70
   5.  Install fitsTcl either with the command
 
71
 
 
72
          make install
 
73
 
 
74
       which will place it in the DIR1/lib directory, or move the
 
75
       library (libfitstcl.so, or libfitstcl.dylib under Mac OS X)
 
76
       manually to where you want it.
 
77
 
 
78
   To use fitsTcl, startup tclsh or wish and type the command
 
79
 
 
80
       load libfitstcl.so (libfitstcl.dylib on Mac OS X)
 
81
 
 
82
   You may need to specify an explicit path to the library or set the
 
83
   LD_LIBRARY_PATH (DYLD_LIBRARY_PATH on Mac OS X) to its location.