provide EBCDIC CGI::Util::escape() and test
[p5sagit/p5-mst-13.2.git] / README.aix
CommitLineData
20d11268 1If you read this file _as_is_, just ignore the funny characters you see.
2It is written in the POD format (see pod/perlpod.pod) which is specially
3designed to be readable as is.
4
5=head1 NAME
6
7README.aix - Perl version 5 on IBM Unix (AIX) systems
8
9=head1 DESCRIPTION
10
a318903f 11This document describes various features of IBM's Unix operating
12system (AIX) that will affect how Perl version 5 (hereafter just Perl)
13is compiled and/or runs.
20d11268 14
15=head2 Compiling Perl 5 on AIX
16
d5d9880c 17When compiling Perl, you must use an ANSI C compiler. AIX does not ship
20d11268 18an ANSI compliant C-compiler with AIX by default, but binary builds of
19gcc for AIX are widely available.
20
21At the moment of writing, AIX supports two different native C compilers,
22for which you have to pay: B<xlc> and B<VAC>. If you decide to use eiter
23of these two (which is quite a lot easier than using gcc), be sure to
24upgrade to the latest available patch level. Currently:
25
26 xlC.C 3.1.4.0
27 vac.C 4.4.0.3 (5.0 is already available)
28
a318903f 29Perl can be compiled with either IBM's ANSI C compiler or with gcc.
30The former is recommended, as not only can it compile Perl with no
20d11268 31difficulty, but also can take advantage of features listed later that
32require the use of IBM compiler-specific command-line flags.
33
34If you decide to use gcc, make sure your installation is recent and
35complete, and be sure to read the Perl README file for more gcc-specific
36details.
37
38=head2 OS level
39
40Before installing the patches to the IBM C-compiler you need to know the
41level of patching for the Operating System. IBM's command 'oslevel' will
a318903f 42show the base, but is not always complete:
20d11268 43
44 # oslevel
45 4.3.0.0
46 # lslpp -l | grep 'bos.rte '
47 bos.rte 4.3.2.1 COMMITTED Base Operating System Runtime
48 bos.rte 4.3.2.0 COMMITTED Base Operating System Runtime
49 #
50
51=head2 Building Dynamic Extensions on AIX
52
53AIX supports dynamically loadable libraries (shared libraries).
54Shared libraries end with the suffix .a, which is a bit misleading,
a318903f 55because *all* libraries are shared ;-).
20d11268 56
57=head2 The IBM ANSI C Compiler
58
59All defaults for Configure can be used.
60
61If you've chosen to use vac 4, be sure to run 4.4.0.3. Older versions
62will turn up nasty later on.
63
a318903f 64Here's a brief lead of how to upgrade the compiler to the latest
65level. Of course this is subject to changes. You can only upgrade
66versions from ftp-available updates if the first three digit groups
67are the same (in where you can skip intermediate unlike the patches
68in the developer snapshots of perl), or to one version up where the
69`base' is available. In other words, the AIX compiler patches are
70cumulative.
71
72 vac.C.4.4.0.1 => vac.C.4.4.0.3 is OK (vac.C.4.4.0.2 not needed)
73 xlC.C.3.1.3.3 => xlC.C.3.1.4.10 is NOT OK (xlC.C.3.1.4.0 is not available)
74
75 # ftp ftp.software.ibm.com
76 Connected to service.boulder.ibm.com.
77 : welcome message ...
78 Name (ftp.software.ibm.com:merijn): anonymous
79 331 Guest login ok, send your complete e-mail address as password.
80 Password:
81 ... accepted login stuff
82 ftp> cd /aix/fixes/v4/
83 ftp> dir other other.ll
84 output to local-file: other.ll? y
85 200 PORT command successful.
86 150 Opening ASCII mode data connection for /bin/ls.
87 226 Transfer complete.
88 ftp> dir xlc xlc.ll
89 output to local-file: xlc.ll? y
90 200 PORT command successful.
91 150 Opening ASCII mode data connection for /bin/ls.
92 226 Transfer complete.
93 ftp> bye
94 ... goodbye messages
95 # ls -l *.ll
96 -rw-rw-rw- 1 merijn system 1169432 Nov 2 17:29 other.ll
97 -rw-rw-rw- 1 merijn system 29170 Nov 2 17:29 xlc.ll
98
99On AIX 4.2 using xlC, we continue:
100
101 # lslpp -l | fgrep 'xlC.C '
102 xlC.C 3.1.4.9 COMMITTED C for AIX Compiler
103 xlC.C 3.1.4.0 COMMITTED C for AIX Compiler
104 # grep 'xlC.C.3.1.4.*.bff' xlc.ll
105 -rw-r--r-- 1 45776101 1 6286336 Jul 22 1996 xlC.C.3.1.4.1.bff
106 -rw-rw-r-- 1 45776101 1 6173696 Aug 24 1998 xlC.C.3.1.4.10.bff
107 -rw-r--r-- 1 45776101 1 6319104 Aug 14 1996 xlC.C.3.1.4.2.bff
108 -rw-r--r-- 1 45776101 1 6316032 Oct 21 1996 xlC.C.3.1.4.3.bff
109 -rw-r--r-- 1 45776101 1 6315008 Dec 20 1996 xlC.C.3.1.4.4.bff
110 -rw-rw-r-- 1 45776101 1 6178816 Mar 28 1997 xlC.C.3.1.4.5.bff
111 -rw-rw-r-- 1 45776101 1 6188032 May 22 1997 xlC.C.3.1.4.6.bff
112 -rw-rw-r-- 1 45776101 1 6191104 Sep 5 1997 xlC.C.3.1.4.7.bff
113 -rw-rw-r-- 1 45776101 1 6185984 Jan 13 1998 xlC.C.3.1.4.8.bff
114 -rw-rw-r-- 1 45776101 1 6169600 May 27 1998 xlC.C.3.1.4.9.bff
115 # wget ftp://ftp.software.ibm.com/aix/fixes/v4/xlc/xlC.C.3.1.4.10.bff
116 #
117
118On AIX 4.3 using vac, we continue:
119
120 # lslpp -l | fgrep 'vac.C '
121 vac.C 4.4.0.2 COMMITTED C for AIX Compiler
122 vac.C 4.4.0.0 COMMITTED C for AIX Compiler
123 # grep 'vac.C.4.4.0.*.bff' other.ll
124 -rw-rw-r-- 1 45776101 1 13466624 May 26 1999 vac.C.4.4.0.1.bff
125 -rw-rw-r-- 1 45776101 1 13473792 Aug 31 1999 vac.C.4.4.0.2.bff
126 -rw-rw-r-- 1 45776101 1 13480960 May 19 20:32 vac.C.4.4.0.3.bff
127 # wget ftp://ftp.software.ibm.com/aix/fixes/v4/other/vac.C.4.4.0.3.bff
128 #
129
130Then execute the following command, and fill in its choices
131
132 # smit install_update
133 -> Install and Update from LATEST Available Software
134 * INPUT device / directory for software [ vac.C.4.4.0.3.bff ]
135 [ OK ]
136 [ OK ]
137
138Follow the messages ... and you're done.
139
20d11268 140=head2 Using GNU's gcc for building perl
141
142... ?
143
20d11268 144=head2 Using Large Files with Perl
145
146... ?
147
148=head2 Threaded Perl
149
150... ?
151
152=head2 64-bit Perl
153
154... ?
155
156=head2 GDBM and Threads
157
158... ?
159
160=head2 NFS filesystems and utime(2)
161
162... ?
163
164=head1 AUTHOR
165
166H.Merijn Brand <h.m.brand@hccnet.nl>
167
168Structure copied from README.hpux
169
170=head1 DATE
171
172Version 0.0.1: 16-10-2000
173
174=cut