| 1 | If you read this file _as_is_, just ignore the funny characters you
|
|---|
| 2 | see. It is written in the POD format (see pod/perlpod.pod) which is
|
|---|
| 3 | specifically designed to be readable as is.
|
|---|
| 4 |
|
|---|
| 5 | =head1 NAME
|
|---|
| 6 |
|
|---|
| 7 | perlnetware - Perl for NetWare
|
|---|
| 8 |
|
|---|
| 9 | =head1 DESCRIPTION
|
|---|
| 10 |
|
|---|
| 11 | This file gives instructions for building Perl 5.7 and above, and also
|
|---|
| 12 | Perl modules for NetWare. Before you start, you may want to read the
|
|---|
| 13 | README file found in the top level directory into which the Perl source
|
|---|
| 14 | code distribution was extracted. Make sure you read and understand
|
|---|
| 15 | the terms under which the software is being distributed.
|
|---|
| 16 |
|
|---|
| 17 | =head1 BUILD
|
|---|
| 18 |
|
|---|
| 19 | This section describes the steps to be performed to build a Perl NLM
|
|---|
| 20 | and other associated NLMs.
|
|---|
| 21 |
|
|---|
| 22 | =head2 Tools & SDK
|
|---|
| 23 |
|
|---|
| 24 | The build requires CodeWarrior compiler and linker. In addition,
|
|---|
| 25 | the "NetWare SDK", "NLM & NetWare Libraries for C" and
|
|---|
| 26 | "NetWare Server Protocol Libraries for C", all available at
|
|---|
| 27 | L<http://developer.novell.com/ndk/>, are also required.
|
|---|
| 28 | Microsoft Visual C++ version 4.2 or later is also required.
|
|---|
| 29 |
|
|---|
| 30 | =head2 Setup
|
|---|
| 31 |
|
|---|
| 32 | The build process is dependent on the location of the NetWare SDK.
|
|---|
| 33 | Once the Tools & SDK are installed, the build environment has to
|
|---|
| 34 | be setup. The following batch files setup the environment.
|
|---|
| 35 |
|
|---|
| 36 | =over 4
|
|---|
| 37 |
|
|---|
| 38 | =item SetNWBld.bat
|
|---|
| 39 |
|
|---|
| 40 | The Execution of this file takes 2 parameters as input. The first
|
|---|
| 41 | being the NetWare SDK path, second being the path for CodeWarrior
|
|---|
| 42 | Compiler & tools. Execution of this file sets these paths and also
|
|---|
| 43 | sets the build type to Release by default.
|
|---|
| 44 |
|
|---|
| 45 | =item Buildtype.bat
|
|---|
| 46 |
|
|---|
| 47 | This is used to set the build type to debug or release. Change the
|
|---|
| 48 | build type only after executing SetNWBld.bat
|
|---|
| 49 |
|
|---|
| 50 | =item *
|
|---|
| 51 |
|
|---|
| 52 | Example:
|
|---|
| 53 | 1. Typing "buildtype d on" at the command prompt causes the buildtype
|
|---|
| 54 | to be set to Debug type with D2 flag set.
|
|---|
| 55 | 2. Typing "buildtype d off" or "buildtype d" at the command prompt causes
|
|---|
| 56 | the buildtype to be set to Debug type with D1 flag set.
|
|---|
| 57 | 2. Typing "buildtype r" at the command prompt sets it to Release Build type.
|
|---|
| 58 |
|
|---|
| 59 | =back
|
|---|
| 60 |
|
|---|
| 61 | =head2 Make
|
|---|
| 62 |
|
|---|
| 63 | The make process runs only under WinNT shell. The NetWare makefile is
|
|---|
| 64 | located under the NetWare folder. This makes use of miniperl.exe to
|
|---|
| 65 | run some of the Perl scripts. To create miniperl.exe, first set the
|
|---|
| 66 | required paths for Visual c++ compilier (specify vcvars32 location) at
|
|---|
| 67 | the command prompt. Then run nmake from win32 folder through WinNT
|
|---|
| 68 | command prompt. The build process can be stopped after miniperl.exe
|
|---|
| 69 | is created. Then run nmake from NetWare folder through WinNT command
|
|---|
| 70 | prompt.
|
|---|
| 71 |
|
|---|
| 72 | Currently the following two build types are tested on NetWare:
|
|---|
| 73 |
|
|---|
| 74 | =over 4
|
|---|
| 75 |
|
|---|
| 76 | =item *
|
|---|
| 77 |
|
|---|
| 78 | USE_MULTI, USE_ITHREADS & USE_IMP_SYS defined
|
|---|
| 79 |
|
|---|
| 80 | =item *
|
|---|
| 81 |
|
|---|
| 82 | USE_MULTI & USE_IMP_SYS defined and USE_ITHREADS not defined
|
|---|
| 83 |
|
|---|
| 84 | =back
|
|---|
| 85 |
|
|---|
| 86 | =head2 Interpreter
|
|---|
| 87 |
|
|---|
| 88 | Once miniperl.exe creation is over, run nmake from the NetWare folder.
|
|---|
| 89 | This will build the Perl interpreter for NetWare as I<perl.nlm>.
|
|---|
| 90 | This is copied under the I<Release> folder if you are doing
|
|---|
| 91 | a release build, else will be copied under I<Debug> folder for debug builds.
|
|---|
| 92 |
|
|---|
| 93 | =head2 Extensions
|
|---|
| 94 |
|
|---|
| 95 | The make process also creates the Perl extensions as I<<Extension>.nlm>
|
|---|
| 96 |
|
|---|
| 97 | =head1 INSTALL
|
|---|
| 98 |
|
|---|
| 99 | To install NetWare Perl onto a NetWare server, first map the Sys
|
|---|
| 100 | volume of a NetWare server to I<i:>. This is because the makefile by
|
|---|
| 101 | default sets the drive letter to I<i:>. Type I<nmake nwinstall> from
|
|---|
| 102 | NetWare folder on a WinNT command prompt. This will copy the binaries
|
|---|
| 103 | and module files onto the NetWare server under I<sys:\Perl>
|
|---|
| 104 | folder. The Perl interpreter, I<perl.nlm>, is copied under
|
|---|
| 105 | I<sys:\perl\system> folder. Copy this to I<sys:\system> folder.
|
|---|
| 106 |
|
|---|
| 107 | Example: At the command prompt Type "nmake nwinstall".
|
|---|
| 108 | This will install NetWare Perl on the NetWare Server.
|
|---|
| 109 | Similiarly if you type "nmake install",
|
|---|
| 110 | This will cause the binaries to be installed on the local machine.
|
|---|
| 111 | (Typically under the c:\perl folder)
|
|---|
| 112 |
|
|---|
| 113 | =head1 BUILD NEW EXTENSIONS
|
|---|
| 114 |
|
|---|
| 115 | To build extensions other than standard extensions, NetWare Perl has
|
|---|
| 116 | to be installed on Windows along with Windows Perl. The Perl for
|
|---|
| 117 | Windows can be either downloaded from the CPAN site and built using
|
|---|
| 118 | the sources, or the binaries can be directly downloaded from the
|
|---|
| 119 | ActiveState site. Installation can be done by invoking I<nmake
|
|---|
|
|---|