File: INSTALL

package info (click to toggle)
moodss 5.0-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 1,104 kB
  • ctags: 430
  • sloc: tcl: 12,266; sh: 59; makefile: 43
file content (91 lines) | stat: -rw-r--r-- 3,350 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
Moodss requires Tcl 8.0 and Tk 8.0 or above to be installed and
working on your UNIX or Windows platform.



Then the tkTable widget library version 2.x for UNIX and Windows (at
http://oprs.mchh.siemens.de/tcl/capp/tkTable/) needs to be installed
as a package (in the Tcl sense) on your system.
Note: a precompiled Linux library for the latest version is available
on my site.

Note: the following line is all you need in the pkgIndex.tcl file
(along with the Tktable.so.2.3 library file in the
/usr/local/lib/Tktable/ directory on UNIX) for a working tkTable
package:

package ifneeded Tktable 2.3 "load [file join $dir Tktable.so.2.3]"

For Windows, get the tkTable DLL corresponding to your Tcl version (I
suggest 8.0 since there is no BLT DLL for 8.1 at this time) from the
site above. I tried the 8.0 version, placed it in my moodss directory
and it worked. It should not be difficult to install as a package.



Then the following BLT libraries for Tcl/Tk 8.0/8.1:
ftp://ftp.tcltk.com/pub/blt/BLT2.4f.tar.gz needs to be installed also
as a package.  To do so, copy the libBLT.so.2.4 file (generated as you
built BLT according to the instructions) to the
/usr/local/lib/moodss/BLT/ (for UNIX) directory (which you just
created :) under the libBLT.so.2.4f name. Then create a pkgIndex.tcl
file in the same directory, containing only the following line:

package ifneeded BLT 2.4 "load [file join $dir libBLT.so.2.4f]"

Note: a precompiled Linux library for the latest version is available
on my site.

For Windows, get
ftp://ftp.xraylith.wisc.edu:/pub/khan/tcl/blt80p1-win32.zip.
You will also need cw3220.dll which can be found through the
www.ftpsearch.com service or on my site.

For a quick try without installing tkTable and BLT as packages as
described above, just copy Tktable.so.2.3 and libBLT.so.2.4f (or the
corresponding DLLs on Windows) to the moodss unpacking directory and
launch "wish moodss random" for example.




Then there are 2 cases:


1. you only want to use moodss as is and eventually write modules for
it:

There is nothing else to do since the moodss file is a self contained
Tcl application. Thus, typing the following from the unpacking
directory should work:

$ wish moodss random

If you would like to run moodss from any directory, then you need to
install the data modules that you are interested in as Tcl packages,
which is really not difficult: it is just the matter of moving the
package sub-directories to directories that the Tcl core will look
into (/usr/local/lib/ by default on Unix) (look at the pkg_mkIndex
manual page for more information).

For example, to install the random module as a Tcl package on UNIX,
you could do:
$ mkdir /usr/local/lib/random
$ cp /home/jdoe/moodss-5.x/random/* /usr/local/lib/random/


2. you would also like to work on the moodss source code itself:

You will need to install stooop (3.6.1 or above, switched package
version 1.4 included), scwoop (2.5 or above) and tkpiechart (5.2 or
above) as Tcl packages. All the information required to do this can be
found in the packages themselves, at http://www.mygale.org/~jfontain/
or ftp://ftp.neosoft.com/pub/tcl/sorted/devel/.

Note: you must uncomment the tkTable and BLT wrapper code in
scwoop.tcl in the scwoop package.



Feel free to email questions and comments to
mailto:jfontain@mygale.org if you have any problems.