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