Debian Codegraph @

upstream/mageia-cauldron/man1/perlos400.1

raw
1 .\" -*- mode: troff; coding: utf-8 -*-
2 .\" Automatically generated by Pod::Man v6.0.2 (Pod::Simple 3.45)
3 .\"
4 .\" Standard preamble:
5 .\" ========================================================================
6 .de Sp \" Vertical space (when we can't use .PP)
7 .if t .sp .5v
8 .if n .sp
9 ..
10 .de Vb \" Begin verbatim text
11 .ft CW
12 .nf
13 .ne \\$1
14 ..
15 .de Ve \" End verbatim text
16 .ft R
17 .fi
18 ..
19 .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
20 .ie n \{\
21 . ds C` ""
22 . ds C' ""
23 'br\}
24 .el\{\
25 . ds C`
26 . ds C'
27 'br\}
28 .\"
29 .\" Escape single quotes in literal strings from groff's Unicode transform.
30 .ie \n(.g .ds Aq \(aq
31 .el .ds Aq '
32 .\"
33 .\" If the F register is >0, we'll generate index entries on stderr for
34 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
35 .\" entries marked with X<> in POD. Of course, you'll have to process the
36 .\" output yourself in some meaningful fashion.
37 .\"
38 .\" Avoid warning from groff about undefined register 'F'.
39 .de IX
40 ..
41 .nr rF 0
42 .if \n(.g .if rF .nr rF 1
43 .if (\n(rF:(\n(.g==0)) \{\
44 . if \nF \{\
45 . de IX
46 . tm Index:\\$1\t\\n%\t"\\$2"
47 ..
48 . if !\nF==2 \{\
49 . nr % 0
50 . nr F 2
51 . \}
52 . \}
53 .\}
54 .rr rF
55 .\"
56 .\" Required to disable full justification in groff 1.23.0.
57 .if n .ds AD l
58 .\" ========================================================================
59 .\"
60 .IX Title "PERLOS400 1"
61 .TH PERLOS400 1 2023-12-22 "perl v5.42.0" "Perl Programmers Reference Guide"
62 .\" For nroff, turn off justification. Always turn off hyphenation; it makes
63 .\" way too many mistakes in technical documents.
64 .if n .ad l
65 .nh
66 .SH NAME
67 perlos400 \- Perl version 5 on OS/400
68 .PP
69 This document needs to be updated, but we don\*(Aqt know what it should say.
70 Please submit comments to <https://github.com/Perl/perl5/issues>.
71 .SH DESCRIPTION
72 .IX Header "DESCRIPTION"
73 This document describes various features of IBM\*(Aqs OS/400 operating
74 system that will affect how Perl version 5 (hereafter just Perl) is
75 compiled and/or runs.
76 .PP
77 By far the easiest way to build Perl for OS/400 is to use the PASE
78 (Portable Application Solutions Environment), for more information see
79 <http://www.iseries.ibm.com/developer/factory/pase/index.html>
80 This environment allows one to use AIX APIs while programming, and it
81 provides a runtime that allows AIX binaries to execute directly on the
82 PowerPC iSeries.
83 .SS "Compiling Perl for OS/400 PASE"
84 .IX Subsection "Compiling Perl for OS/400 PASE"
85 The recommended way to build Perl for the OS/400 PASE is to build the
86 Perl 5 source code (release 5.8.1 or later) under AIX.
87 .PP
88 The trick is to give a special parameter to the Configure shell script
89 when running it on AIX:
90 .PP
91 .Vb 1
92 \& sh Configure \-DPASE ...
93 .Ve
94 .PP
95 The default installation directory of Perl under PASE is /QOpenSys/perl.
96 This can be modified if needed with Configure parameter \-Dprefix=/some/dir.
97 .PP
98 Starting from OS/400 V5R2 the IBM Visual Age compiler is supported
99 on OS/400 PASE, so it is possible to build Perl natively on OS/400.
100 The easier way, however, is to compile in AIX, as just described.
101 .PP
102 If you don\*(Aqt want to install the compiled Perl in AIX into /QOpenSys
103 (for packaging it before copying it to PASE), you can use a Configure
104 parameter: \-Dinstallprefix=/tmp/QOpenSys/perl. This will cause the
105 "make install" to install everything into that directory, while the
106 installed files still think they are (will be) in /QOpenSys/perl.
107 .PP
108 If building natively on PASE, please do the build under the /QOpenSys
109 directory, since Perl is happier when built on a case sensitive filesystem.
110 .SS "Installing Perl in OS/400 PASE"
111 .IX Subsection "Installing Perl in OS/400 PASE"
112 If you are compiling on AIX, simply do a "make install" on the AIX box.
113 Once the install finishes, tar up the /QOpenSys/perl directory. Transfer
114 the tarball to the OS/400 using FTP with the following commands:
115 .PP
116 .Vb 3
117 \& > binary
118 \& > site namefmt 1
119 \& > put perl.tar /QOpenSys
120 .Ve
121 .PP
122 Once you have it on, simply bring up a PASE shell and extract the tarball.
123 .PP
124 If you are compiling in PASE, then "make install" is the only thing you
125 will need to do.
126 .PP
127 The default path for perl binary is /QOpenSys/perl/bin/perl. You\*(Aqll
128 want to symlink /QOpenSys/usr/bin/perl to this file so you don\*(Aqt have
129 to modify your path.
130 .SS "Using Perl in OS/400 PASE"
131 .IX Subsection "Using Perl in OS/400 PASE"
132 Perl in PASE may be used in the same manner as you would use Perl on AIX.
133 .PP
134 Scripts starting with #!/usr/bin/perl should work if you have
135 /QOpenSys/usr/bin/perl symlinked to your perl binary. This will not
136 work if you\*(Aqve done a setuid/setgid or have environment variable
137 PASE_EXEC_QOPENSYS="N". If you have V5R1, you\*(Aqll need to get the
138 latest PTFs to have this feature. Scripts starting with
139 #!/QOpenSys/perl/bin/perl should always work.
140 .SS "Known Problems"
141 .IX Subsection "Known Problems"
142 When compiling in PASE, there is no "oslevel" command. Therefore,
143 you may want to create a script called "oslevel" that echoes the
144 level of AIX that your version of PASE runtime supports. If you\*(Aqre
145 unsure, consult your documentation or use "4.3.3.0".
146 .PP
147 If you have test cases that fail, check for the existence of spool files.
148 The test case may be trying to use a syscall that is not implemented
149 in PASE. To avoid the SIGILL, try setting the PASE_SYSCALL_NOSIGILL
150 environment variable or have a handler for the SIGILL. If you can
151 compile programs for PASE, run the config script and edit config.sh
152 when it gives you the option. If you want to remove \fBfchdir()\fR, which
153 isn\*(Aqt implement in V5R1, simply change the line that says:
154 .PP
155 d_fchdir=\*(Aqdefine\*(Aq
156 .PP
157 to
158 .PP
159 d_fchdir=\*(Aqundef\*(Aq
160 .PP
161 and then compile Perl. The places where \fBfchdir()\fR is used have
162 alternatives for systems that do not have \fBfchdir()\fR available.
163 .SS "Perl on ILE"
164 .IX Subsection "Perl on ILE"
165 There exists a port of Perl to the ILE environment. This port, however,
166 is based quite an old release of Perl, Perl 5.00502 (August 1998).
167 (As of July 2002 the latest release of Perl is 5.8.0, and even 5.6.1
168 has been out since April 2001.) If you need to run Perl on ILE, though,
169 you may need this older port: <http://www.cpan.org/ports/#os400>
170 Note that any Perl release later than 5.00502 has not been ported to ILE.
171 .PP
172 If you need to use Perl in the ILE environment, you may want to consider
173 using \fBQp2RunPase()\fR to call the PASE version of Perl.
174 .SH AUTHORS
175 .IX Header "AUTHORS"
176 Jarkko Hietaniemi <[email protected]>
177 Bryan Logan <[email protected]>
178 David Larson <[email protected]>