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