| 1 | If you read this file _as_is_, just ignore the funny characters you
|
|---|
| 2 | see. It is written in the POD format (see perlpod manpage) which is
|
|---|
| 3 | specially designed to be readable as is.
|
|---|
| 4 |
|
|---|
| 5 | =head1 NAME
|
|---|
| 6 |
|
|---|
| 7 | perldos - Perl under DOS, W31, W95.
|
|---|
| 8 |
|
|---|
| 9 | =head1 SYNOPSIS
|
|---|
| 10 |
|
|---|
| 11 | These are instructions for building Perl under DOS (or w??), using
|
|---|
| 12 | DJGPP v2.03 or later. Under w95 long filenames are supported.
|
|---|
| 13 |
|
|---|
| 14 | =head1 DESCRIPTION
|
|---|
| 15 |
|
|---|
| 16 | Before you start, you should glance through the README file
|
|---|
| 17 | found in the top-level directory where the Perl distribution
|
|---|
| 18 | was extracted. Make sure you read and understand the terms under
|
|---|
| 19 | which this software is being distributed.
|
|---|
| 20 |
|
|---|
| 21 | This port currently supports MakeMaker (the set of modules that
|
|---|
| 22 | is used to build extensions to perl). Therefore, you should be
|
|---|
| 23 | able to build and install most extensions found in the CPAN sites.
|
|---|
| 24 |
|
|---|
| 25 | Detailed instructions on how to build and install perl extension
|
|---|
| 26 | modules, including XS-type modules, is included. See 'BUILDING AND
|
|---|
| 27 | INSTALLING MODULES'.
|
|---|
| 28 |
|
|---|
| 29 | =head2 Prerequisites for Compiling Perl on DOS
|
|---|
| 30 |
|
|---|
| 31 | =over 4
|
|---|
| 32 |
|
|---|
| 33 | =item DJGPP
|
|---|
| 34 |
|
|---|
| 35 | DJGPP is a port of GNU C/C++ compiler and development tools to 32-bit,
|
|---|
| 36 | protected-mode environment on Intel 32-bit CPUs running MS-DOS and compatible
|
|---|
| 37 | operating systems, by DJ Delorie <[email protected]> and friends.
|
|---|
| 38 |
|
|---|
| 39 | For more details (FAQ), check out the home of DJGPP at:
|
|---|
| 40 |
|
|---|
| 41 | http://www.delorie.com/djgpp/
|
|---|
| 42 |
|
|---|
| 43 | If you have questions about DJGPP, try posting to the DJGPP newsgroup:
|
|---|
| 44 | comp.os.msdos.djgpp, or use the email gateway [email protected].
|
|---|
| 45 |
|
|---|
| 46 | You can find the full DJGPP distribution on any SimTel.Net mirror all over
|
|---|
| 47 | the world. Like:
|
|---|
| 48 |
|
|---|
| 49 | ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2*
|
|---|
| 50 |
|
|---|
| 51 | You need the following files to build perl (or add new modules):
|
|---|
| 52 |
|
|---|
| 53 | v2/djdev203.zip
|
|---|
| 54 | v2gnu/bnu2112b.zip
|
|---|
| 55 | v2gnu/gcc2953b.zip
|
|---|
| 56 | v2gnu/bsh204b.zip
|
|---|
| 57 | v2gnu/mak3791b.zip
|
|---|
| 58 | v2gnu/fil40b.zip
|
|---|
| 59 | v2gnu/sed3028b.zip
|
|---|
| 60 | v2gnu/txt20b.zip
|
|---|
| 61 | v2gnu/dif272b.zip
|
|---|
| 62 | v2gnu/grep24b.zip
|
|---|
| 63 | v2gnu/shl20jb.zip
|
|---|
| 64 | v2gnu/gwk306b.zip
|
|---|
| 65 | v2misc/csdpmi5b.zip
|
|---|
| 66 |
|
|---|
| 67 | or possibly any newer version.
|
|---|
| 68 |
|
|---|
| 69 | =item Pthreads
|
|---|
| 70 |
|
|---|
| 71 | Thread support is not tested in this version of the djgpp perl.
|
|---|
| 72 |
|
|---|
| 73 | =back
|
|---|
| 74 |
|
|---|
| 75 | =head2 Shortcomings of Perl under DOS
|
|---|
| 76 |
|
|---|
| 77 | Perl under DOS lacks some features of perl under UNIX because of
|
|---|
| 78 | deficiencies in the UNIX-emulation, most notably:
|
|---|
| 79 |
|
|---|
| 80 | =over 4
|
|---|
| 81 |
|
|---|
| 82 | =item *
|
|---|
| 83 |
|
|---|
| 84 | fork() and pipe()
|
|---|
| 85 |
|
|---|
| 86 | =item *
|
|---|
| 87 |
|
|---|
| 88 | some features of the UNIX filesystem regarding link count and file dates
|
|---|
| 89 |
|
|---|
| 90 | =item *
|
|---|
| 91 |
|
|---|
| 92 | in-place operation is a little bit broken with short filenames
|
|---|
| 93 |
|
|---|
| 94 | =item *
|
|---|
| 95 |
|
|---|
| 96 | sockets
|
|---|
| 97 |
|
|---|
| 98 | =back
|
|---|
| 99 |
|
|---|
| 100 | =head2 Building Perl on DOS
|
|---|
| 101 |
|
|---|
| 102 | =over 4
|
|---|
| 103 |
|
|---|
| 104 | =item *
|
|---|
| 105 |
|
|---|
| 106 | Unpack the source package F<perl5.8*.tar.gz> with djtarx. If you want
|
|---|
| 107 | to use long file names under w95 and also to get Perl to pass all its
|
|---|
| 108 | tests, don't forget to use
|
|---|
| 109 |
|
|---|
| 110 | set LFN=y
|
|---|
| 111 | set FNCASE=y
|
|---|
| 112 |
|
|---|
| 113 | before unpacking the archive.
|
|---|
| 114 |
|
|---|
| 115 | =item *
|
|---|
| 116 |
|
|---|
| 117 | Create a "symlink" or copy your bash.exe to sh.exe in your C<($DJDIR)/bin>
|
|---|
| 118 | directory.
|
|---|
| 119 |
|
|---|
| 120 | ln -s bash.exe sh.exe
|
|---|
| 121 |
|
|---|
| 122 | [If you have the recommended version of bash for DJGPP, this is already
|
|---|
| 123 | done for you.]
|
|---|
| 124 |
|
|---|
| 125 | And make the C<SHELL> environment variable point to this F<sh.exe>:
|
|---|
| 126 |
|
|---|
| 127 | set SHELL=c:/djgpp/bin/sh.exe (use full path name!)
|
|---|
| 128 |
|
|---|
| 129 | You can do this in F<djgpp.env> too. Add this line BEFORE any section
|
|---|
|
|---|