home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 May
/
Chip_2000-05_cd1.bin
/
zkuste
/
Perl
/
ActivePerl-5.6.0.613.msi
/
䆊䌷䈹䈙䏵-䞅䞆䞀㡆䞃䄦䠥
/
_c4c41fd29b27bc57d42445820806f0ff
< prev
next >
Wrap
Text File
|
2000-03-23
|
8KB
|
213 lines
<HTML>
<HEAD>
<TITLE>perldos - Perl under DOS, W31, W95.</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> perldos - Perl under DOS, W31, W95.</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="#prerequisites">Prerequisites</A></LI>
<LI><A HREF="#shortcomings of perl under dos">Shortcomings of Perl under DOS</A></LI>
<LI><A HREF="#building">Building</A></LI>
<LI><A HREF="#testing">Testing</A></LI>
<LI><A HREF="#installation">Installation</A></LI>
</UL>
<LI><A HREF="#author">AUTHOR</A></LI>
<LI><A HREF="#see also">SEE ALSO</A></LI>
</UL>
<!-- INDEX END -->
<HR>
<P>
<H1><A NAME="name">NAME</A></H1>
<P>perldos - Perl under DOS, W31, W95.</P>
<P>
<HR>
<H1><A NAME="synopsis">SYNOPSIS</A></H1>
<P>These are instructions for building Perl under DOS (or w??), using
DJGPP v2.01 or later. Under w95 long filenames are supported.</P>
<P>
<HR>
<H1><A NAME="description">DESCRIPTION</A></H1>
<P>Before you start, you should glance through the README file
found in the top-level directory where the Perl distribution
was extracted. Make sure you read and understand the terms under
which this software is being distributed.</P>
<P>This port currently supports MakeMaker (the set of modules that
is used to build extensions to perl). Therefore, you should be
able to build and install most extensions found in the CPAN sites.</P>
<P>
<H2><A NAME="prerequisites">Prerequisites</A></H2>
<DL>
<DT><STRONG><A NAME="item_DJGPP">DJGPP</A></STRONG><BR>
<DD>
DJGPP is a port of GNU C/C++ compiler and development tools to 32-bit,
protected-mode environment on Intel 32-bit CPUs running MS-DOS and compatible
operating systems, by DJ Delorie <<A HREF="mailto:dj@delorie.com">dj@delorie.com</A>> and friends.
<P>For more details (FAQ), check out the home of DJGPP at:</P>
<PRE>
<A HREF="http://www.delorie.com/djgpp/">http://www.delorie.com/djgpp/</A></PRE>
<P>If you have questions about DJGPP, try posting to the DJGPP newsgroup:
comp.os.msdos.djgpp, or use the email gateway <A HREF="mailto:djgpp@delorie.com.">djgpp@delorie.com.</A></P>
<P>You can find the full DJGPP distribution on any SimTel.Net mirror all over
the world. Like:</P>
<PRE>
<A HREF="ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2">ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2</A>*</PRE>
<P>You need the following files to build perl (or add new modules):</P>
<PRE>
v2/djdev202.zip
v2/bnu27b.zip
v2gnu/gcc2721b.zip
v2gnu/bsh1147b.zip
v2gnu/mak3761b.zip
v2gnu/fil316b.zip
v2gnu/sed118b.zip
v2gnu/txt122b.zip
v2gnu/dif271b.zip
v2gnu/grep21b.zip
v2gnu/shl112b.zip
v2gnu/gawk303b.zip
v2misc/csdpmi4b.zip</PRE>
<P>or possibly any newer version.</P>
<P></P>
<DT><STRONG><A NAME="item_Pthreads">Pthreads</A></STRONG><BR>
<DD>
Thread support is not tested in this version of the djgpp perl.
<P></P></DL>
<P>
<H2><A NAME="shortcomings of perl under dos">Shortcomings of Perl under DOS</A></H2>
<P>Perl under DOS lacks some features of perl under UNIX because of
deficiencies in the UNIX-emulation, most notably:</P>
<UL>
<LI>
<A HREF="../../lib/Pod/perlfunc.html#item_fork"><CODE>fork()</CODE></A> and <A HREF="../../lib/Pod/perlfunc.html#item_pipe"><CODE>pipe()</CODE></A>
<P></P>
<LI>
some features of the UNIX filesystem regarding link count and file dates
<P></P>
<LI>
in-place operation is a little bit broken with short filenames
<P></P>
<LI>
sockets
<P></P></UL>
<P>
<H2><A NAME="building">Building</A></H2>
<UL>
<LI>
Unpack the source package <EM>perl5.6*.tar.gz</EM> with djtarx. If you want
to use long file names under w95, don't forget to use
<PRE>
set LFN=y</PRE>
<P>before unpacking the archive.</P>
<P></P>
<LI>
Create a ``symlink'' or copy your bash.exe to sh.exe in your <CODE>($DJDIR)/bin</CODE>
directory.
<PRE>
ln -s bash.exe sh.exe</PRE>
<P>And make the <CODE>SHELL</CODE> environment variable point to this <EM>sh.exe</EM>:</P>
<PRE>
set SHELL=c:/djgpp/bin/sh.exe (use full path name!)</PRE>
<P>You can do this in <EM>djgpp.env</EM> too. Add this line BEFORE any section
definition:</P>
<PRE>
+SHELL=%DJDIR%/bin/sh.exe</PRE>
<P></P>
<LI>
If you have <EM>split.exe</EM> and <EM>gsplit.exe</EM> in your path, then rename
<EM>split.exe</EM> to <EM>djsplit.exe</EM>, and <EM>gsplit.exe</EM> to <EM>split.exe</EM>.
Copy or link <EM>gecho.exe</EM> to <EM>echo.exe</EM> if you don't have <EM>echo.exe</EM>.
Copy or link <EM>gawk.exe</EM> to <EM>awk.exe</EM> if you don't have <EM>awk.exe</EM>.
<P></P>
<LI>
Chdir to the djgpp subdirectory of perl toplevel and type the following
command:
<PRE>
configure.bat</PRE>
<P>This will do some preprocessing then run the Configure script for you.
The Configure script is interactive, but in most cases you
just need to press ENTER.</P>
<P>If the script says that your package is incomplete, and asks whether
to continue, just answer with Y (this can only happen if you don't use
long filenames).</P>
<P>When Configure asks about the extensions, I suggest IO and Fcntl,
and if you want database handling then SDBM_File or GDBM_File
(you need to install gdbm for this one). If you want to use the
POSIX extension (this is the default), make sure that the stack
size of your <EM>cc1.exe</EM> is at least 512kbyte (you can check this
with: <CODE>stubedit cc1.exe</CODE>).</P>
<P>You can use the Configure script in non-interactive mode too.
When I built my <EM>perl.exe</EM>, I used something like this:</P>
<PRE>
configure.bat -des</PRE>
<P>You can find more info about Configure's command line switches in
the <EM>INSTALL</EM> file.</P>
<P>When the script ends, and you want to change some values in the
generated <EM>config.sh</EM> file, then run</P>
<PRE>
sh Configure -S</PRE>
<P>after you made your modifications.</P>
<P>IMPORTANT: if you use this <CODE>-S</CODE> switch, be sure to delete the CONFIG
environment variable before running the script:</P>
<PRE>
set CONFIG=</PRE>
<P></P>
<LI>
Now you can compile Perl. Type:
<PRE>
make</PRE>
<P></P></UL>
<P>
<H2><A NAME="testing">Testing</A></H2>
<P>Type:</P>
<PRE>
make test</PRE>
<P>If you're lucky you should see ``All tests successful''. But there can be
a few failed subtests (less than 5 hopefully) depending on some external
conditions (e.g. some subtests fail under linux/dosemu or plain dos
with short filenames only).</P>
<P>
<H2><A NAME="installation">Installation</A></H2>
<P>Type:</P>
<PRE>
make install</PRE>
<P>This will copy the newly compiled perl and libraries into your DJGPP
directory structure. Perl.exe and the utilities go into <CODE>($DJDIR)/bin</CODE>,
and the library goes under <CODE>($DJDIR)/lib/perl5</CODE>. The pod documentation
goes under <CODE>($DJDIR)/lib/perl5/pod</CODE>.</P>
<P>
<HR>
<H1><A NAME="author">AUTHOR</A></H1>
<P>Laszlo Molnar, <EM><A HREF="mailto:laszlo.molnar@eth.ericsson.se">laszlo.molnar@eth.ericsson.se</A></EM></P>
<P>
<HR>
<H1><A NAME="see also">SEE ALSO</A></H1>
<P>perl(1).</P>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
<STRONG><P CLASS=block> perldos - Perl under DOS, W31, W95.</P></STRONG>
</TD></TR>
</TABLE>
</BODY>
</HTML>