📄 netware.html.en
字号:
<h3><a name="comp-req" id="comp-req">Requirements:</a></h3> <p>The following development tools are required to build Apache 2.0 for NetWare:</p> <ul> <li>Metrowerks CodeWarrior 6.0 or higher with the <a href="http://developer.novell.com/ndk/cwpdk.htm">NetWare PDK 3.0</a> or higher.</li> <li><a href="http://developer.novell.com/ndk/libc.htm">NetWare Libraries for C (LibC)</a></li> <li><a href="http://developer.novell.com/ndk/cldap.htm">LDAP Libraries for C</a></li> <li><a href="http://www.gzip.org/zlib/">ZLIB Compression Library source code</a></li> <li>AWK utility (awk, gawk or similar). AWK can be downloaded from <a href="http://developer.novell.com/ndk/apache.htm">http://developer.novell.com/ndk/apache.htm</a>. The utility must be found in your windows path and must be named <code>awk.exe</code>.</li> <li>To build using the makefiles, you will need GNU make version 3.78.1 (GMake) available at <a href="http://developer.novell.com/ndk/apache.htm">http://developer.novell.com/ndk/apache.htm</a>.</li> </ul> <h3><a name="comp-make" id="comp-make">Building Apache using the NetWare makefiles:</a></h3> <ul> <li>Set the environment variable <code>NOVELLLIBC</code> to the location of the NetWare Libraries for C SDK, for example: <div class="example"><p><code>Set NOVELLLIBC=c:\novell\ndk\libc</code></p></div> </li> <li>Set the environment variable <code>METROWERKS</code> to the location where you installed the Metrowerks CodeWarrior compiler, for example: <div class="example"><p><code>Set METROWERKS=C:\Program Files\Metrowerks\CodeWarrior</code></p></div> If you installed to the default location <code>C:\Program Files\Metrowerks\CodeWarrior</code>, you don't need to set this.</li> <li>Set the environment variable <code>LDAPSDK</code> to the location where you installed the LDAP Libraries for C, for example: <div class="example"><p><code>Set LDAPSDK=c:\Novell\NDK\cldapsdk\NetWare\libc</code></p></div> </li> <li>Set the environment variable <code>ZLIBSDK</code> to the location where you installed the source code for the ZLib Library, for example: <div class="example"><p><code>Set ZLIBSDK=D:\NOVELL\zlib</code></p></div> </li> <li>Set the environment variable <code>AP_WORK</code> to the full path of the <code>httpd</code> source code directory. <div class="example"><p><code>Set AP_WORK=D:\httpd-2.0.x</code></p></div> </li> <li>Set the environment variable <code>APR_WORK</code> to the full path of the <code>apr</code> source code directory. Typically <code>\httpd\srclib\apr</code> but the APR project can be outside of the httpd directory structure. <div class="example"><p><code>Set APR_WORK=D:\apr-1.x.x</code></p></div> </li> <li>Set the environment variable <code>APU_WORK</code> to the full path of the <code>apr-util</code> source code directory. Typically <code>\httpd\srclib\apr-util</code> but the APR-UTIL project can be outside of the httpd directory structure. <div class="example"><p><code>Set APU_WORK=D:\apr-util-1.x.x</code></p></div> </li> <li>Make sure that the path to the AWK utility and the GNU make utility (<code>gmake.exe</code>) have been included in the system's <code>PATH</code> environment variable.</li> <li>Download the source code and unzip to an appropriate directory on your workstation.</li> <li>Change directory to <code>\httpd-2.0</code> and build the prebuild utilities by running "<code>gmake -f nwgnumakefile prebuild</code>". This target will create the directory <code>\httpd-2.0\nwprebuild</code> and copy each of the utilities to this location that are necessary to complete the following build steps. </li> <li>Copy the files <code>\httpd-2.0\nwprebuild\GENCHARS.nlm</code> and <code>\httpd-2.0\nwprebuild\DFTABLES.nlm</code> to the <code>SYS:</code> volume of a NetWare server and run them using the following commands: <div class="example"><p><code> SYS:\genchars > sys:\test_char.h<br /> SYS:\dftables sys:\chartables.c<br /> </code></p></div> </li> <li>Copy the files <code>test_char.h</code> and <code>chartables.c</code> to the directory <code>\httpd-2.0\os\netware</code> on the build machine.</li> <li>Change directory to <code>\httpd-2.0</code> and build Apache by running "<code>gmake -f nwgnumakefile</code>". You can create a distribution directory by adding an install parameter to the command, for example: <div class="example"><p><code>gmake -f nwgnumakefile install</code></p></div> </li> </ul> <h3><a name="comp-add" id="comp-add">Additional make options</a></h3> <ul> <li><code>gmake -f nwgnumakefile</code><p>Builds release versions of all of the binaries and copies them to a <code>\release</code> destination directory.</p></li> <li><code>gmake -f nwgnumakefile DEBUG=1</code><p>Builds debug versions of all of the binaries and copies them to a <code>\debug</code> destination directory.</p></li> <li><code>gmake -f nwgnumakefile install</code><p>Creates a complete Apache distribution with binaries, docs and additional support files in a <code>\dist\Apache2</code> directory.</p></li> <li><code>gmake -f nwgnumakefile prebuild</code><p>Builds all of the prebuild utilities and copies them to the <code>\nwprebuild</code> directory.</p></li> <li><code>gmake -f nwgnumakefile installdev</code><p>Same as install but also creates a <code>\lib</code> and <code>\include</code> directory in the destination directory and copies headers and import files.</p></li> <li><code>gmake -f nwgnumakefile clean</code><p>Cleans all object files and binaries from the <code>\release.o</code> or <code>\debug.o</code> build areas depending on whether <code>DEBUG</code> has been defined.</p></li> <li><code>gmake -f nwgnumakefile clobber_all</code><p>Same as clean and also deletes the distribution directory if it exists.</p></li> </ul> <h3><a name="comp-add-env" id="comp-add-env">Additional environment variable options</a></h3> <ul> <li>To build all of the experimental modules, set the environment variable <code>EXPERIMENTAL</code>: <div class="example"><p><code>Set EXPERIMENTAL=1</code></p></div> </li> <li>To build Apache using standard BSD style sockets rather than Winsock, set the environment variable <code>USE_STDSOCKETS</code>: <div class="example"><p><code>Set USE_STDSOCKETS=1</code></p></div> </li> </ul> <h3><a name="comp-mod_ssl" id="comp-mod_ssl">Building mod_ssl for the NetWare platform</a></h3> <p>By default Apache for NetWare uses the built-in module <code class="module"><a href="../mod/mod_nw_ssl.html">mod_nw_ssl</a></code> to provide SSL services. This module simply enables the native SSL services implemented in NetWare OS to handle all encryption for a given port. Alternatively, mod_ssl can also be used in the same manner as on other platforms.</p> <p>Before mod_ssl can be built for the NetWare platform, the OpenSSL libraries must be provided. This can be done through the following steps:</p> <ul> <li>Download the recent OpenSSL 0.9.8 release source code from the <a href="http://www.openssl.org/source/">OpenSSL Source</a> page (older 0.9.7 versions need to be patched and are therefore not recommended).</li> <li>Edit the file <code>NetWare/set_env.bat</code> and modify any tools and utilities paths so that they correspond to your build environment.</li> <li>From the root of the OpenSSL source directory, run the following scripts: <div class="example"><p><code> Netware\set_env netware-libc<br /> Netware\build netware-libc </code></p></div> For performance reasons you should enable to build with ASM code. Download NASM from the <a href="http://nasm.sourceforge.net/">SF site</a>. Then configure OpenSSL to use ASM code: <div class="example"><p><code> Netware\build netware-libc nw-nasm enable-mdc2 enable-md5 </code></p></div> Warning: dont use the CodeWarrior Assembler - it produces broken code! </li> <li>Before building Apache, set the environment variable <code>OSSLSDK</code> to the full path to the root of the openssl source code directory, and set WITH_MOD_SSL to 1. <div class="example"><p><code> Set OSSLSDK=d:\openssl-0.9.8x<br /> Set WITH_MOD_SSL=1 </code></p></div></li> </ul> </div></div><div class="bottomlang"><p><span>Available Languages: </span><a href="../en/platform/netware.html" title="English"> en </a> |<a href="../ko/platform/netware.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p></div><div id="footer"><p class="apache">Copyright 2008 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p><p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -