1PERLNETWARE(1) Perl Programmers Reference Guide PERLNETWARE(1)
2
3
4
6 perlnetware - Perl for NetWare
7
9 This file gives instructions for building Perl 5.7 and above, and also
10 Perl modules for NetWare. Before you start, you may want to read the
11 README file found in the top level directory into which the Perl source
12 code distribution was extracted. Make sure you read and understand the
13 terms under which the software is being distributed.
14
16 This section describes the steps to be performed to build a Perl NLM
17 and other associated NLMs.
18
19 Tools & SDK
20
21 The build requires CodeWarrior compiler and linker. In addition, the
22 "NetWare SDK", "NLM & NetWare Libraries for C" and "NetWare Server Pro‐
23 tocol Libraries for C", all available at <http://developer.nov‐
24 ell.com/ndk/>, are also required. Microsoft Visual C++ version 4.2 or
25 later is also required.
26
27 Setup
28
29 The build process is dependent on the location of the NetWare SDK.
30 Once the Tools & SDK are installed, the build environment has to be
31 setup. The following batch files setup the environment.
32
33 SetNWBld.bat
34 The Execution of this file takes 2 parameters as input. The first
35 being the NetWare SDK path, second being the path for CodeWarrior
36 Compiler & tools. Execution of this file sets these paths and also
37 sets the build type to Release by default.
38
39 Buildtype.bat
40 This is used to set the build type to debug or release. Change the
41 build type only after executing SetNWBld.bat
42
43 * Example:
44 1. Typing "buildtype d on" at the command prompt causes the
45 buildtype
46 to be set to Debug type with D2 flag set.
47 2. Typing "buildtype d off" or "buildtype d" at the command
48 prompt causes
49 the buildtype to be set to Debug type with D1 flag set.
50 2. Typing "buildtype r" at the command prompt sets it to Release
51 Build type.
52
53 Make
54
55 The make process runs only under WinNT shell. The NetWare makefile is
56 located under the NetWare folder. This makes use of miniperl.exe to
57 run some of the Perl scripts. To create miniperl.exe, first set the
58 required paths for Visual c++ compilier (specify vcvars32 location) at
59 the command prompt. Then run nmake from win32 folder through WinNT
60 command prompt. The build process can be stopped after miniperl.exe is
61 created. Then run nmake from NetWare folder through WinNT command
62 prompt.
63
64 Currently the following two build types are tested on NetWare:
65
66 · USE_MULTI, USE_ITHREADS & USE_IMP_SYS defined
67
68 · USE_MULTI & USE_IMP_SYS defined and USE_ITHREADS not defined
69
70 Interpreter
71
72 Once miniperl.exe creation is over, run nmake from the NetWare folder.
73 This will build the Perl interpreter for NetWare as perl.nlm. This is
74 copied under the Release folder if you are doing a release build, else
75 will be copied under Debug folder for debug builds.
76
77 Extensions
78
79 The make process also creates the Perl extensions as <Extension.nlm>
80
82 To install NetWare Perl onto a NetWare server, first map the Sys volume
83 of a NetWare server to i:. This is because the makefile by default sets
84 the drive letter to i:. Type nmake nwinstall from NetWare folder on a
85 WinNT command prompt. This will copy the binaries and module files
86 onto the NetWare server under sys:\Perl folder. The Perl interpreter,
87 perl.nlm, is copied under sys:\perl\system folder. Copy this to
88 sys:\system folder.
89
90 Example: At the command prompt Type "nmake nwinstall".
91 This will install NetWare Perl on the NetWare Server.
92 Similiarly if you type "nmake install",
93 This will cause the binaries to be installed on the local
94 machine.
95 (Typically under the c:\perl folder)
96
98 To build extensions other than standard extensions, NetWare Perl has to
99 be installed on Windows along with Windows Perl. The Perl for Windows
100 can be either downloaded from the CPAN site and built using the
101 sources, or the binaries can be directly downloaded from the ActiveS‐
102 tate site. Installation can be done by invoking nmake install from the
103 NetWare folder on a WinNT command prompt after building NetWare Perl by
104 following steps given above. This will copy all the *.pm files and
105 other required files. Documentation files are not copied. Thus one
106 must first install Windows Perl, Then install NetWare Perl.
107
108 Once this is done, do the following to build any extension:
109
110 · Change to the extension directory where its source files are
111 present.
112
113 · Run the following command at the command prompt:
114
115 perl -II<path to NetWare lib dir> -II<path to lib> Makefile.pl
116
117 Example:
118
119 perl -Ic:/perl/5.6.1/lib/NetWare-x86-multi-thread -Ic:\perl\5.6.1\lib MakeFile.pl
120
121 or
122
123 perl -Ic:/perl/5.8.0/lib/NetWare-x86-multi-thread -Ic:\perl\5.8.0\lib MakeFile.pl
124
125 · nmake
126
127 · nmake install
128
129 Install will copy the files into the Windows machine where NetWare
130 Perl is installed and these files may have to be copied to the Net‐
131 Ware server manually. Alternatively, pass INSTALL‐
132 SITELIB=i:\perl\lib as an input to makefile.pl above. Here i: is
133 the mapped drive to the sys: volume of the server where Perl on
134 NetWare is installed. Now typing nmake install, will copy the files
135 onto the NetWare server.
136
137 Example: You can execute the following on the command prompt.
138
139 perl -Ic:/perl/5.6.1/lib/NetWare-x86-multi-thread -Ic:\perl\5.6.1\lib MakeFile.pl
140 INSTALLSITELIB=i:\perl\lib
141
142 or
143
144 perl -Ic:/perl/5.8.0/lib/NetWare-x86-multi-thread -Ic:\perl\5.8.0\lib MakeFile.pl
145 INSTALLSITELIB=i:\perl\lib
146
147 · Note: Some modules downloaded from CPAN may require NetWare related
148 API in order to build on NetWare. Other modules may however build
149 smoothly with or without minor changes depending on the type of
150 module.
151
153 The makefile for Win32 is used as a reference to create the makefile
154 for NetWare. Also, the make process for NetWare port uses miniperl.exe
155 to run scripts during the make and installation process.
156
158 Anantha Kesari H Y (hyanantha@novell.com) Aditya C (caditya@novell.com)
159
161 · Created - 18 Jan 2001
162
163 · Modified - 25 June 2001
164
165 · Modified - 13 July 2001
166
167 · Modified - 28 May 2002
168
169
170
171perl v5.8.8 2006-01-07 PERLNETWARE(1)