Fix for README.amiga (20000323.033)
[p5sagit/p5-mst-13.2.git] / README.amiga
CommitLineData
0a753a76 1If you read this file _as_is_, just ignore the funny characters you
2see. It is written in the POD format (see perlpod manpage) which is
3specially designed to be readable as is.
4
5=head1 NAME
6
4375e838 7perlamiga - Perl under Amiga OS (possibly very outdated information)
0a753a76 8
9=head1 SYNOPSIS
10
f23f9bed 11NOTE: The following information is highly unlikely to be correct.
12A recent version of perl for the Amiga can be found at the Aminet site:
4375e838 13
14 http://us.aminet.net/aminet/dirs/dev_gg.html
15
0a753a76 16One can read this document in the following formats:
17
18 man perlamiga
19 multiview perlamiga.guide
20
21to list some (not all may be available simultaneously), or it may
22be read I<as is>: either as F<README.amiga>, or F<pod/perlamiga.pod>.
23
24=cut
25
26Contents
27
28 perlamiga - Perl under Amiga OS
29
30 NAME
31 SYNOPSIS
32 DESCRIPTION
33 - Prerequisites
34 - Starting Perl programs under AmigaOS
b971f6e4 35 - Shortcomings of Perl under AmigaOS
0a753a76 36 INSTALLATION
37 Accessing documentation
38 - Manpages
39 - HTML
40 - GNU info files
41 - LaTeX docs
42 BUILD
43 - Prerequisites
44 - Getting the perl source
45 - Application of the patches
46 - Making
47 - Testing
48 - Installing the built perl
49 AUTHOR
50 SEE ALSO
51
52=head1 DESCRIPTION
53
54=head2 Prerequisites
55
56=over 6
57
58=item B<Unix emulation for AmigaOS: ixemul.library>
59
60You need the Unix emulation for AmigaOS, whose most important part is
61B<ixemul.library>. For a minimum setup, get the following archives from
f23f9bed 62the Aminet archives (http://www.aminet.net/~aminet/):
0a753a76 63
f23f9bed 64ixemul-bin.lha
65ixemul-env-bin.lha
66pdksh-bin.lha
0a753a76 67
68Note that there might be newer versions available by the time you read
69this.
70
71Note also that this is a minimum setup; you might want to add other
72packages of B<ADE> (the I<Amiga Developers Environment>).
73
74=item B<Version of Amiga OS>
75
76You need at the very least AmigaOS version 2.0. Recommended is version 3.1.
77
78=back
79
80=head2 Starting Perl programs under AmigaOS
81
82Start your Perl program F<foo> with arguments C<arg1 arg2 arg3> the
83same way as on any other platform, by
84
85 perl foo arg1 arg2 arg3
86
87If you want to specify perl options C<-my_opts> to the perl itself (as
88opposed to to your program), use
89
90 perl -my_opts foo arg1 arg2 arg3
91
92Alternately, you can try to get a replacement for the system's B<Execute>
93command that honors the #!/usr/bin/perl syntax in scripts and set the s-Bit
94of your scripts. Then you can invoke your scripts like under UNIX with
95
96 foo arg1 arg2 arg3
97
98(Note that having *nixish full path to perl F</usr/bin/perl> is not
99necessary, F<perl> would be enough, but having full path would make it
100easier to use your script under *nix.)
101
b971f6e4 102=head2 Shortcomings of Perl under AmigaOS
103
104Perl under AmigaOS lacks some features of perl under UNIX because of
105deficiencies in the UNIX-emulation, most notably:
106
107=over 6
108
109=item fork()
110
111=item some features of the UNIX filesystem regarding link count and file dates
112
113=item inplace operation (the -i switch) without backup file
114
115=item umask() works, but the correct permissions are only set when the file is
116 finally close()d
0498d68d 117
b971f6e4 118=back
119
0a753a76 120=head1 INSTALLATION
121
122Change to the installation directory (most probably ADE:), and
123extract the binary distribution:
124
f23f9bed 125lha -mraxe x perl-$VERSION-bin.lha
0a753a76 126
127or
128
f23f9bed 129tar xvzpf perl-$VERSION-bin.tgz
0a753a76 130
131(Of course you need lha or tar and gunzip for this.)
132
133For installation of the Unix emulation, read the appropriate docs.
134
135=head1 Accessing documentation
136
137=head2 Manpages
138
139If you have C<man> installed on your system, and you installed perl
140manpages, use something like this:
141
142 man perlfunc
143 man less
144 man ExtUtils.MakeMaker
145
146to access documentation for different components of Perl. Start with
147
148 man perl
149
150Note: You have to modify your man.conf file to search for manpages
151in the /ade/lib/perl5/man/man3 directory, or the man pages for the
152perl library will not be found.
153
154Note that dot (F<.>) is used as a package separator for documentation
155for packages, and as usual, sometimes you need to give the section - C<3>
156above - to avoid shadowing by the I<less(1) manpage>.
157
158
159=head2 B<HTML>
160
161If you have some WWW browser available, you can build B<HTML> docs.
162Cd to directory with F<.pod> files, and do like this
163
164 cd /ade/lib/perl5/pod
165 pod2html
166
167After this you can direct your browser the file F<perl.html> in this
168directory, and go ahead with reading docs.
169
170Alternatively you may be able to get these docs prebuilt from C<CPAN>.
171
172=head2 B<GNU> C<info> files
173
174Users of C<Emacs> would appreciate it very much, especially with
175C<CPerl> mode loaded. You need to get latest C<pod2info> from C<CPAN>,
176or, alternately, prebuilt info pages.
177
178=head2 C<LaTeX> docs
179
180can be constructed using C<pod2latex>.
181
182=head1 BUILD
183
184Here we discuss how to build Perl under AmigaOS.
185
186=head2 Prerequisites
187
f23f9bed 188You need to have the latest B<ixemul> (Unix emulation for Amiga)
189from Aminet.
0a753a76 190
191=head2 Getting the perl source
192
193You can either get the latest perl-for-amiga source from Ninemoons
194and extract it with:
195
f23f9bed 196 tar xvzpf perl-$VERSION-src.tgz
0a753a76 197
198or get the official source from CPAN:
199
200 http://www.perl.com/CPAN/src/5.0
201
202Extract it like this
203
f23f9bed 204 tar xvzpf perl$VERSION.tar.gz
0a753a76 205
206You will see a message about errors while extracting F<Configure>. This
207is normal and expected. (There is a conflict with a similarly-named file
208F<configure>, but it causes no harm.)
209
210=head2 Making
211
212 sh configure.gnu --prefix=/ade
213
214Now
215
216 make
217
218=head2 Testing
219
220Now run
221
222 make test
223
b971f6e4 224Some tests will be skipped because they need the fork() function:
0a753a76 225
b971f6e4 226F<io/pipe.t>, F<op/fork.t>, F<lib/filehand.t>, F<lib/open2.t>, F<lib/open3.t>,
227F<lib/io_pipe.t>, F<lib/io_sock.t>
0a753a76 228
229=head2 Installing the built perl
230
231Run
232
233 make install
234
235=head1 AUTHOR
236
237Norbert Pueschel, pueschel@imsdd.meb.uni-bonn.de
238
239=head1 SEE ALSO
240
241perl(1).
242
243=cut