1 If you read this file _as_is_, just ignore the funny characters you
2 see. It is written in the POD format (see perlpod manpage) which is
3 specially designed to be readable as is.
7 perlamiga - Perl under Amiga OS
11 B<Perl 5.8.0 cannot be built in AmigaOS. You can use either the
12 maintenance release Perl 5.6.1 or the development release Perl 5.7.2
13 in AmigaOS. See L</"PERL 5.8.0 BROKEN IN AMIGAOS"> if you want to help
18 One can read this document in the following formats:
21 multiview perlamiga.guide
23 to list some (not all may be available simultaneously), or it may
24 be read I<as is>: either as F<README.amiga>, or F<pod/perlamiga.pod>.
26 A recent version of perl for the Amiga can be found at the Geek Gadgets
27 section of the Aminet:
29 http://www.aminet.net/~aminet/dev/gg/index.html
35 perlamiga - Perl under Amiga OS
41 - Starting Perl programs under AmigaOS
42 - Shortcomings of Perl under AmigaOS
44 Accessing documentation
51 - Getting the perl source
52 - Application of the patches
55 - Installing the built perl
61 =head2 Prerequisites for Compiling Perl on AmigaOS
65 =item B<Unix emulation for AmigaOS: ixemul.library>
67 You need the Unix emulation for AmigaOS, whose most important part is
68 B<ixemul.library>. For a minimum setup, get the latest versions
69 of the following packages from the Aminet archives
70 ( http://www.aminet.net/~aminet/ ):
76 Note also that this is a minimum setup; you might want to add other
77 packages of B<ADE> (the I<Amiga Developers Environment>).
79 =item B<Version of Amiga OS>
81 You need at the very least AmigaOS version 2.0. Recommended is version 3.1.
85 =head2 Starting Perl programs under AmigaOS
87 Start your Perl program F<foo> with arguments C<arg1 arg2 arg3> the
88 same way as on any other platform, by
90 perl foo arg1 arg2 arg3
92 If you want to specify perl options C<-my_opts> to the perl itself (as
93 opposed to your program), use
95 perl -my_opts foo arg1 arg2 arg3
97 Alternately, you can try to get a replacement for the system's B<Execute>
98 command that honors the #!/usr/bin/perl syntax in scripts and set the s-Bit
99 of your scripts. Then you can invoke your scripts like under UNIX with
103 (Note that having *nixish full path to perl F</usr/bin/perl> is not
104 necessary, F<perl> would be enough, but having full path would make it
105 easier to use your script under *nix.)
107 =head2 Shortcomings of Perl under AmigaOS
109 Perl under AmigaOS lacks some features of perl under UNIX because of
110 deficiencies in the UNIX-emulation, most notably:
120 some features of the UNIX filesystem regarding link count and file dates
124 inplace operation (the -i switch) without backup file
128 umask() works, but the correct permissions are only set when the file is
135 Change to the installation directory (most probably ADE:), and
136 extract the binary distribution:
138 lha -mraxe x perl-$VERSION-bin.lha
142 tar xvzpf perl-$VERSION-bin.tgz
144 (Of course you need lha or tar and gunzip for this.)
146 For installation of the Unix emulation, read the appropriate docs.
148 =head1 Accessing documentation
150 =head2 Manpages for Perl on AmigaOS
152 If you have C<man> installed on your system, and you installed perl
153 manpages, use something like this:
157 man ExtUtils.MakeMaker
159 to access documentation for different components of Perl. Start with
163 Note: You have to modify your man.conf file to search for manpages
164 in the /ade/lib/perl5/man/man3 directory, or the man pages for the
165 perl library will not be found.
167 Note that dot (F<.>) is used as a package separator for documentation
168 for packages, and as usual, sometimes you need to give the section - C<3>
169 above - to avoid shadowing by the I<less(1) manpage>.
172 =head2 Perl HTML Documentation on AmigaOS
174 If you have some WWW browser available, you can build B<HTML> docs.
175 Cd to directory with F<.pod> files, and do like this
177 cd /ade/lib/perl5/pod
180 After this you can direct your browser the file F<perl.html> in this
181 directory, and go ahead with reading docs.
183 Alternatively you may be able to get these docs prebuilt from C<CPAN>.
185 =head2 Perl GNU Info Files on AmigaOS
187 Users of C<Emacs> would appreciate it very much, especially with
188 C<CPerl> mode loaded. You need to get latest C<pod2info> from C<CPAN>,
189 or, alternately, prebuilt info pages.
191 =head2 Perl LaTeX Documentation on AmigaOS
193 Can be constructed using C<pod2latex>.
195 =head1 BUILDING PERL ON AMIGAOS
197 Here we discuss how to build Perl under AmigaOS.
199 =head2 Build Prerequisites for Perl on AmigaOS
201 You need to have the latest B<ixemul> (Unix emulation for Amiga)
204 =head2 Getting the Perl Source for AmigaOS
206 You can either get the latest perl-for-amiga source from Ninemoons
209 tar xvzpf perl-$VERSION-src.tgz
211 or get the official source from CPAN:
213 http://www.cpan.org/src/5.0
217 tar xvzpf perl-$VERSION.tar.gz
219 You will see a message about errors while extracting F<Configure>. This
220 is normal and expected. (There is a conflict with a similarly-named file
221 F<configure>, but it causes no harm.)
223 =head2 Making Perl on AmigaOS
225 Remember to use a hefty wad of stack (I use 2000000)
227 sh configure.gnu --prefix=/gg
237 =head2 Testing Perl on AmigaOS
243 Some tests will be skipped because they need the fork() function:
245 F<io/pipe.t>, F<op/fork.t>, F<lib/filehand.t>, F<lib/open2.t>, F<lib/open3.t>,
246 F<lib/io_pipe.t>, F<lib/io_sock.t>
248 =head2 Installing the built Perl on AmigaOS
254 =head1 PERL 5.8.0 BROKEN IN AMIGAOS
256 As told above, Perl 5.6.1 was still good in AmigaOS, as was 5.7.2.
257 After Perl 5.7.2 (change #11423, see the Changes file, and the file
258 pod/perlhack.pod for how to get the individual changes) Perl dropped
259 its internal support for vfork(), and that was very probably the step
260 that broke AmigaOS (since the ixemul library has only vfork).
261 The build finally fails when the ext/DynaLoader is being built, and
262 PERL ends up as "0" in the produced Makefile, trying to run "0" does
263 not quite work. Also, executing miniperl in backticks seems to
264 generate nothing: very probably related to the (v)fork problems.
265 B<Fixing the breakage requires someone quite familiar with the ixemul
266 library, and how one is supposed to run external commands in AmigaOS
271 Norbert Pueschel, pueschel@imsdd.meb.uni-bonn.de
272 Jan-Erik Karlsson, trg@privat.utfors.se