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