home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 May
/
Chip_2000-05_cd1.bin
/
zkuste
/
Perl
/
ActivePerl-5.6.0.613.msi
/
䆊䌷䈹䈙䏵-䞅䞆䞀㡆䞃䄦䠥
/
_a5d97921fb886b3dd79a9ea874b23950
< prev
next >
Wrap
Text File
|
2000-03-23
|
7KB
|
179 lines
<HTML>
<HEAD>
<TITLE>README.os390 - building and installing Perl for OS/390.</TITLE>
<LINK REL="stylesheet" HREF="../../Active.css" TYPE="text/css">
<LINK REV="made" HREF="mailto:">
</HEAD>
<BODY>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
<STRONG><P CLASS=block> README.os390 - building and installing Perl for OS/390.</P></STRONG>
</TD></TR>
</TABLE>
<A NAME="__index__"></A>
<!-- INDEX BEGIN -->
<UL>
<LI><A HREF="#name">NAME</A></LI>
<LI><A HREF="#synopsis">SYNOPSIS</A></LI>
<LI><A HREF="#description">DESCRIPTION</A></LI>
<UL>
<LI><A HREF="#unpacking">Unpacking</A></LI>
<LI><A HREF="#setup and utilities">Setup and utilities</A></LI>
<LI><A HREF="#configure">Configure</A></LI>
<LI><A HREF="#build, test, install">Build, test, install</A></LI>
<LI><A HREF="#usage hints">Usage Hints</A></LI>
<LI><A HREF="#extensions">Extensions</A></LI>
</UL>
<LI><A HREF="#authors">AUTHORS</A></LI>
<LI><A HREF="#see also">SEE ALSO</A></LI>
<UL>
<LI><A HREF="#mailing list">Mailing list</A></LI>
</UL>
<LI><A HREF="#history">HISTORY</A></LI>
</UL>
<!-- INDEX END -->
<HR>
<P>
<H1><A NAME="name">NAME</A></H1>
<P>README.os390 - building and installing Perl for OS/390.</P>
<P>
<HR>
<H1><A NAME="synopsis">SYNOPSIS</A></H1>
<P>This document will help you Configure, build, test and install Perl
on OS/390 Unix System Services.</P>
<P>
<HR>
<H1><A NAME="description">DESCRIPTION</A></H1>
<P>This is a fully ported perl for OS/390 Release 3, 5 and 6.
It may work on other versions, but those are the ones we've
tested it on.</P>
<P>You may need to carry out some system configuration tasks before
running the Configure script for perl.</P>
<P>
<H2><A NAME="unpacking">Unpacking</A></H2>
<P>Gunzip/gzip for OS/390 is discussed at:</P>
<PRE>
<A HREF="http://www.s390.ibm.com/products/oe/bpxqp1.html">http://www.s390.ibm.com/products/oe/bpxqp1.html</A></PRE>
<P>to extract an ASCII tar archive on OS/390, try this:</P>
<PRE>
pax -o to=IBM-1047,from=ISO8859-1 -r < latest.tar</PRE>
<P>
<H2><A NAME="setup and utilities">Setup and utilities</A></H2>
<P>Be sure that your yacc installation is in place including any necessary
parser template files. If you have not already done so then be sure to:</P>
<PRE>
cp /samples/yyparse.c /etc</PRE>
<P>This may also be a good time to ensure that your /etc/protocol file
and either your /etc/resolv.conf or /etc/hosts files are in place.</P>
<P>GNU make for OS/390, which may be required for the build of perl,
is available from:</P>
<PRE>
<A HREF="http://www.mks.com/s390/gnu/index.htm">http://www.mks.com/s390/gnu/index.htm</A></PRE>
<P>
<H2><A NAME="configure">Configure</A></H2>
<P>Once you've unpacked the distribution, run ``sh Configure'' (see INSTALL
for a full discussion of the Configure options). There is a ``hints'' file
for os390 that specifies the correct values for most things. Some things
to watch out for include:</P>
<UL>
<LI>
Some of the parser default template files in /samples are needed in /etc.
In particular be sure that you at least copy /samples/yyparse.c to /etc
before running perl's Configure. This step ensures successful extraction
of EBCDIC versions of parser files such as perly.c.
<P></P>
<LI>
This port doesn't support dynamic loading. Although
OS/390 has support for DLLs, there are some differences
that cause problems for perl.
<P></P>
<LI>
You may see a ``WHOA THERE!!!'' message for $d_shmatprototype
it is OK to keep the recommended ``define''.
<P></P>
<LI>
Don't turn on the compiler optimization flag ``-O''. There's
a bug in either the optimizer or perl that causes perl to
not work correctly when the optimizer is on.
<P></P>
<LI>
Some of the configuration files in /etc used by the
networking APIs are either missing or have the wrong
names. In particular, make sure that there's either
an /etc/resolv.conf or and /etc/hosts, so that
<A HREF="../../lib/Pod/perlfunc.html#item_gethostbyname"><CODE>gethostbyname()</CODE></A> works, and make sure that the file
/etc/proto has been renamed to /etc/protocol (NOT
/etc/protocols, as used by other Unix systems).
<P></P></UL>
<P>
<H2><A NAME="build, test, install">Build, test, install</A></H2>
<P>Simply put:</P>
<PRE>
sh Configure
make
make test</PRE>
<P>if everything looks ok then:</P>
<PRE>
make install</PRE>
<P>this last step may or may not require UID=0 privileges depending
on how you answered the questions that Configure asked and whether
or not you have write access to the directories you specified.</P>
<P>
<H2><A NAME="usage hints">Usage Hints</A></H2>
<P>When using perl on OS/390 please keep in mind that the EBCDIC and ASCII
character sets are different. Perl builtin functions that may behave
differently under EBCDIC are mentioned in the perlport.pod document.</P>
<P>OpenEdition (UNIX System Services) does not (yet) support the #! means
of script invokation.
See:</P>
<PRE>
head `whence perldoc`</PRE>
<P>for an example of how to use the ``eval exec'' trick to ask the shell to
have perl run your scripts for you.</P>
<P>
<H2><A NAME="extensions">Extensions</A></H2>
<P>You can build xs based extensions to Perl for OS/390 but will need to
follow the instructions in ExtUtils::MakeMaker for building statically
linked perl binaries. In most cases people have reported better
results with GNU make rather than the system's /bin/make.</P>
<P>
<HR>
<H1><A NAME="authors">AUTHORS</A></H1>
<P>David Fiander and Peter Prymmer.</P>
<P>
<HR>
<H1><A NAME="see also">SEE ALSO</A></H1>
<P><EM>INSTALL</EM>, <A HREF="../../lib/Pod/perlport.html">the perlport manpage</A>, <A HREF="../../lib/ExtUtils/MakeMaker.html">the ExtUtils::MakeMaker manpage</A>.</P>
<P>
<H2><A NAME="mailing list">Mailing list</A></H2>
<P>The Perl Institute (http://www.perl.org/) maintains a perl-mvs
mailing list of interest to all folks building and/or
using perl on EBCDIC platforms. To subscibe, send a message of:</P>
<PRE>
subscribe perl-mvs</PRE>
<P>to <A HREF="mailto:majordomo@perl.org.">majordomo@perl.org.</A></P>
<P>
<HR>
<H1><A NAME="history">HISTORY</A></H1>
<P>This document was originally written by David Fiander for the 5.005
release of Perl.</P>
<P>This document was podified for the 5.005_03 release of perl 11 March 1999.</P>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
<STRONG><P CLASS=block> README.os390 - building and installing Perl for OS/390.</P></STRONG>
</TD></TR>
</TABLE>
</BODY>
</HTML>