Debian Codegraph @

upstream/debian-unstable/man1/perlos400.1

raw
1 .\" -*- mode: troff; coding: utf-8 -*-
2 .\" Automatically generated by Pod::Man 5.0102 (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 .\"
57 .IX Title "PERLOS400 1"
58 .TH PERLOS400 1 2025-11-16 "perl v5.40.1" "Perl Programmers Reference Guide"
59 .\" For nroff, turn off justification. Always turn off hyphenation; it makes
60 .\" way too many mistakes in technical documents.
61 .if n .ad l
62 .nh
63 .SH NAME
64 perlos400 \- Perl version 5 on OS/400
65 .PP
66 This document needs to be updated, but we don't know what it should say.
67 Please submit comments to <https://github.com/Perl/perl5/issues>.
68 .SH DESCRIPTION
69 .IX Header "DESCRIPTION"
70 This document describes various features of IBM's OS/400 operating
71 system that will affect how Perl version 5 (hereafter just Perl) is
72 compiled and/or runs.
73 .PP
74 By far the easiest way to build Perl for OS/400 is to use the PASE
75 (Portable Application Solutions Environment), for more information see
76 <http://www.iseries.ibm.com/developer/factory/pase/index.html>
77 This environment allows one to use AIX APIs while programming, and it
78 provides a runtime that allows AIX binaries to execute directly on the
79 PowerPC iSeries.
80 .SS "Compiling Perl for OS/400 PASE"
81 .IX Subsection "Compiling Perl for OS/400 PASE"
82 The recommended way to build Perl for the OS/400 PASE is to build the
83 Perl 5 source code (release 5.8.1 or later) under AIX.
84 .PP
85 The trick is to give a special parameter to the Configure shell script
86 when running it on AIX:
87 .PP
88 .Vb 1
89 \& sh Configure \-DPASE ...
90 .Ve
91 .PP
92 The default installation directory of Perl under PASE is /QOpenSys/perl.
93 This can be modified if needed with Configure parameter \-Dprefix=/some/dir.
94 .PP
95 Starting from OS/400 V5R2 the IBM Visual Age compiler is supported
96 on OS/400 PASE, so it is possible to build Perl natively on OS/400.
97 The easier way, however, is to compile in AIX, as just described.
98 .PP
99 If you don't want to install the compiled Perl in AIX into /QOpenSys
100 (for packaging it before copying it to PASE), you can use a Configure
101 parameter: \-Dinstallprefix=/tmp/QOpenSys/perl. This will cause the
102 "make install" to install everything into that directory, while the
103 installed files still think they are (will be) in /QOpenSys/perl.
104 .PP
105 If building natively on PASE, please do the build under the /QOpenSys
106 directory, since Perl is happier when built on a case sensitive filesystem.
107 .SS "Installing Perl in OS/400 PASE"
108 .IX Subsection "Installing Perl in OS/400 PASE"
109 If you are compiling on AIX, simply do a "make install" on the AIX box.
110 Once the install finishes, tar up the /QOpenSys/perl directory. Transfer
111 the tarball to the OS/400 using FTP with the following commands:
112 .PP
113 .Vb 3
114 \& > binary
115 \& > site namefmt 1
116 \& > put perl.tar /QOpenSys
117 .Ve
118 .PP
119 Once you have it on, simply bring up a PASE shell and extract the tarball.
120 .PP
121 If you are compiling in PASE, then "make install" is the only thing you
122 will need to do.
123 .PP
124 The default path for perl binary is /QOpenSys/perl/bin/perl. You'll
125 want to symlink /QOpenSys/usr/bin/perl to this file so you don't have
126 to modify your path.
127 .SS "Using Perl in OS/400 PASE"
128 .IX Subsection "Using Perl in OS/400 PASE"
129 Perl in PASE may be used in the same manner as you would use Perl on AIX.
130 .PP
131 Scripts starting with #!/usr/bin/perl should work if you have
132 /QOpenSys/usr/bin/perl symlinked to your perl binary. This will not
133 work if you've done a setuid/setgid or have environment variable
134 PASE_EXEC_QOPENSYS="N". If you have V5R1, you'll need to get the
135 latest PTFs to have this feature. Scripts starting with
136 #!/QOpenSys/perl/bin/perl should always work.
137 .SS "Known Problems"
138 .IX Subsection "Known Problems"
139 When compiling in PASE, there is no "oslevel" command. Therefore,
140 you may want to create a script called "oslevel" that echoes the
141 level of AIX that your version of PASE runtime supports. If you're
142 unsure, consult your documentation or use "4.3.3.0".
143 .PP
144 If you have test cases that fail, check for the existence of spool files.
145 The test case may be trying to use a syscall that is not implemented
146 in PASE. To avoid the SIGILL, try setting the PASE_SYSCALL_NOSIGILL
147 environment variable or have a handler for the SIGILL. If you can
148 compile programs for PASE, run the config script and edit config.sh
149 when it gives you the option. If you want to remove \fBfchdir()\fR, which
150 isn't implement in V5R1, simply change the line that says:
151 .PP
152 d_fchdir='define'
153 .PP
154 to
155 .PP
156 d_fchdir='undef'
157 .PP
158 and then compile Perl. The places where \fBfchdir()\fR is used have
159 alternatives for systems that do not have \fBfchdir()\fR available.
160 .SS "Perl on ILE"
161 .IX Subsection "Perl on ILE"
162 There exists a port of Perl to the ILE environment. This port, however,
163 is based quite an old release of Perl, Perl 5.00502 (August 1998).
164 (As of July 2002 the latest release of Perl is 5.8.0, and even 5.6.1
165 has been out since April 2001.) If you need to run Perl on ILE, though,
166 you may need this older port: <http://www.cpan.org/ports/#os400>
167 Note that any Perl release later than 5.00502 has not been ported to ILE.
168 .PP
169 If you need to use Perl in the ILE environment, you may want to consider
170 using \fBQp2RunPase()\fR to call the PASE version of Perl.
171 .SH AUTHORS
172 .IX Header "AUTHORS"
173 Jarkko Hietaniemi <[email protected]>
174 Bryan Logan <[email protected]>
175 David Larson <[email protected]>