| 1 |
Perl/Tk can be installed using: |
| 2 |
|
| 3 |
perl Makefile.PL |
| 4 |
make |
| 5 |
make test |
| 6 |
make install |
| 7 |
|
| 8 |
On Windows platform, replace make by either dmake or nmake. Please |
| 9 |
read README-Strawberry.txt and README-ActiveState.txt for additional |
| 10 |
information for Strawberry Perl respective ActivePerl. |
| 11 |
|
| 12 |
Don't try a parallel build (e.g. using "make -jX") --- this won't work |
| 13 |
yet, and may produce broken builds. |
| 14 |
|
| 15 |
For other systems, please refer to the specific README.$OS file for |
| 16 |
additional information. |
| 17 |
|
| 18 |
After installation, a demonstration program may be started using: |
| 19 |
|
| 20 |
widget |
| 21 |
|
| 22 |
Compiled third-party Perl/Tk modules have to be recompiled after |
| 23 |
installing a new Perl/Tk version. Some known such modules are: |
| 24 |
* Tk::TableMatrix |
| 25 |
* Tk::Zinc |
| 26 |
* Tk::TIFF |
| 27 |
* Tk::Canvas::Point |
| 28 |
|
| 29 |
--------------------------------------------------------- |
| 30 |
Older and probabably outdated notes follow: |
| 31 |
|
| 32 |
This file was pre-historic - so I have pruned it to the essentials, |
| 33 |
and the bits that still looked correct. |
| 34 |
|
| 35 |
With modern perl and CPAN.pm you should be able to type: |
| 36 |
|
| 37 |
perl -MCPAN -e shell |
| 38 |
make NI-S/Tk800.0_01.tar.gz |
| 39 |
|
| 40 |
Or do it by hand as follows: |
| 41 |
|
| 42 |
get the Tk800.0_01.tar.gz file - use binary mode if FTP'ing. |
| 43 |
|
| 44 |
Unpack it e.g. |
| 45 |
|
| 46 |
zcat Tk800.0_01.tar.gz | tar xf - |
| 47 |
|
| 48 |
cd to the directory distribution unpacks to. |
| 49 |
|
| 50 |
perl Makefile.PL |
| 51 |
make |
| 52 |
make test |
| 53 |
|
| 54 |
If Makefile.PL reports that it cannot find X, or chooses a version |
| 55 |
you don't like you can specify a version on the command line: |
| 56 |
|
| 57 |
perl Makefile.PL X11=/usr/local/X11R5 |
| 58 |
|
| 59 |
If X's include and lib are not under a common parent they can be specified |
| 60 |
separately: |
| 61 |
|
| 62 |
perl Makefile.PL X11INC=/usr/local/share/X11R5/include X11LIB=/usr/local/arch/X11R5/lib |
| 63 |
|
| 64 |
'make test' is a little tedious as it re-checks all the dependencies. |
| 65 |
|
| 66 |
perl -Mblib demos/widget |
| 67 |
|
| 68 |
Does more-or-less the same thing. |
| 69 |
You can also run the less polished 'demos' in the top level directory |
| 70 |
the same way e.g.: |
| 71 |
|
| 72 |
perl -Mblib basic_demo |
| 73 |
|
| 74 |
You should now install using one of |
| 75 |
the make targets: |
| 76 |
|
| 77 |
make install # normally site unless overridden as above |
| 78 |
|
| 79 |
make INSTALLDIRS=perl # Force perl |
| 80 |
|
| 81 |
make INSTALLDIRS=site # Force site |
| 82 |
|
| 83 |
Above call these targets (which may not survive MakeMaker changes): |
| 84 |
|
| 85 |
make install_site # Force site |
| 86 |
make install_perl # Force perl |
| 87 |
|
| 88 |
Once installed the demos in the demos sub-directory should run |
| 89 |
(if #! line is right): |
| 90 |
|
| 91 |
./demos/widget |
| 92 |
|
| 93 |
--------------------------------------------------------- |
| 94 |
|
| 95 |
For static linking the following is how it is supposed to work |
| 96 |
(I think, but I don't use static linking normally, this scheme |
| 97 |
worked as far as this on one trial under SunOS4.) |
| 98 |
|
| 99 |
perl Makefile.PL |
| 100 |
make |
| 101 |
make tkperl |
| 102 |
make test # should work |
| 103 |
|
| 104 |
This builds a perl with Tk statically linked in the Tk directory |
| 105 |
thus: |
| 106 |
|
| 107 |
./tkperl -Mblib demos/widget |
| 108 |
./tkperl -Mblib basic_demo |
| 109 |
|
| 110 |
should now work. |
| 111 |
|
| 112 |
'make install' subject to discussion above is then done. |
| 113 |
I don't want to try it on my system incase is breaks the dynamic version, |
| 114 |
and it gets harder and harder to keep track of all the options. |
| 115 |
|
| 116 |
You may also have to do : |
| 117 |
|
| 118 |
make -f Makefile.aperl |
| 119 |
|
| 120 |
And you will have to change #! line in demo scripts to .../bin/tkperl |
| 121 |
|
| 122 |
|
| 123 |
|
| 124 |
|