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 1. Typing "buildtype d on" at the command prompt causes the
44 buildtype
45 to be set to Debug type with D2 flag set.
46 2. Typing "buildtype d off" or "buildtype d" at the command
47 prompt causes
48 the buildtype to be set to Debug type with D1 flag set.
49 2. Typing "buildtype r" at the command prompt sets it to Release
50 Build type.
51
52 Make
53 The make process runs only under WinNT shell. The NetWare makefile is
54 located under the NetWare folder. This makes use of miniperl.exe to
55 run some of the Perl scripts. To create miniperl.exe, first set the
56 required paths for Visual c++ compilier (specify vcvars32 location) at
57 the command prompt. Then run nmake from win32 folder through WinNT
58 command prompt. The build process can be stopped after miniperl.exe is
59 created. Then run nmake from NetWare folder through WinNT command
60 prompt.
61
62 Currently the following two build types are tested on NetWare:
63
64 · USE_MULTI, USE_ITHREADS & USE_IMP_SYS defined
65
66 · USE_MULTI & USE_IMP_SYS defined and USE_ITHREADS not defined
67
68 Interpreter
69 Once miniperl.exe creation is over, run nmake from the NetWare folder.
70 This will build the Perl interpreter for NetWare as perl.nlm. This is
71 copied under the Release folder if you are doing a release build, else
72 will be copied under Debug folder for debug builds.
73
74 Extensions
75 The make process also creates the Perl extensions as <Extension.nlm>
76
78 To install NetWare Perl onto a NetWare server, first map the Sys volume
79 of a NetWare server to i:. This is because the makefile by default sets
80 the drive letter to i:. Type nmake nwinstall from NetWare folder on a
81 WinNT command prompt. This will copy the binaries and module files
82 onto the NetWare server under sys:\Perl folder. The Perl interpreter,
83 perl.nlm, is copied under sys:\perl\system folder. Copy this to
84 sys:\system folder.
85
86 Example: At the command prompt Type "nmake nwinstall".
87 This will install NetWare Perl on the NetWare Server.
88 Similiarly if you type "nmake install",
89 This will cause the binaries to be installed on the local
90 machine.
91 (Typically under the c:\perl folder)
92
94 To build extensions other than standard extensions, NetWare Perl has to
95 be installed on Windows along with Windows Perl. The Perl for Windows
96 can be either downloaded from the CPAN site and built using the
97 sources, or the binaries can be directly downloaded from the
98 ActiveState site. Installation can be done by invoking nmake install
99 from the NetWare folder on a WinNT command prompt after building
100 NetWare Perl by following steps given above. This will copy all the
101 *.pm files and other required files. Documentation files are not
102 copied. Thus one must first install Windows Perl, Then install NetWare
103 Perl.
104
105 Once this is done, do the following to build any extension:
106
107 · Change to the extension directory where its source files are
108 present.
109
110 · Run the following command at the command prompt:
111
112 perl -II<path to NetWare lib dir> -II<path to lib> Makefile.pl
113
114 Example:
115
116 perl -Ic:/perl/5.6.1/lib/NetWare-x86-multi-thread -Ic:\perl\5.6.1\lib MakeFile.pl
117
118 or
119
120 perl -Ic:/perl/5.8.0/lib/NetWare-x86-multi-thread -Ic:\perl\5.8.0\lib MakeFile.pl
121
122 · nmake
123
124 · nmake install
125
126 Install will copy the files into the Windows machine where NetWare
127 Perl is installed and these files may have to be copied to the
128 NetWare server manually. Alternatively, pass
129 INSTALLSITELIB=i:\perl\lib as an input to makefile.pl above. Here
130 i: is the mapped drive to the sys: volume of the server where Perl
131 on NetWare is installed. Now typing nmake install, will copy the
132 files onto the NetWare server.
133
134 Example: You can execute the following on the command prompt.
135
136 perl -Ic:/perl/5.6.1/lib/NetWare-x86-multi-thread -Ic:\perl\5.6.1\lib MakeFile.pl
137 INSTALLSITELIB=i:\perl\lib
138
139 or
140
141 perl -Ic:/perl/5.8.0/lib/NetWare-x86-multi-thread -Ic:\perl\5.8.0\lib MakeFile.pl
142 INSTALLSITELIB=i:\perl\lib
143
144 · Note: Some modules downloaded from CPAN may require NetWare related
145 API in order to build on NetWare. Other modules may however build
146 smoothly with or without minor changes depending on the type of
147 module.
148
150 The makefile for Win32 is used as a reference to create the makefile
151 for NetWare. Also, the make process for NetWare port uses miniperl.exe
152 to run scripts during the make and installation process.
153
155 Anantha Kesari H Y (hyanantha@novell.com) Aditya C (caditya@novell.com)
156
158 · Created - 18 Jan 2001
159
160 · Modified - 25 June 2001
161
162 · Modified - 13 July 2001
163
164 · Modified - 28 May 2002
165
166
167
168perl v5.10.1 2009-02-12 PERLNETWARE(1)