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