How to Build
NOTE: With the release of Apache v1.3.9, loadable modules are now supported in OS/2 which means that the need
to compile it yourself is no longer required if you just want to adjust the active modules. You just have to edit your
httpd.conf file to load the modules you want at run time.
If you wish to build your own customized version of Apache httpd you will need
to have the following tools installed.
EMX GCC v0.9c or higher. C++ components not required.
PD-ksh v5.2.13 or higher. ftp://ftp.cs.mun.ca:/pub/pdksh/
Currently no OS/2 binaries of this version are available so you will either
have to build your own or
download the version I've built.
The available binary, v5.2.7, will NOT work.
If you want to use mod_auth you'll need a crypt library. Get
If you want to use a module that needs a DBM library (mod_auth_dbm or mod_rewrite) you can use
GDBM v1.7.3. This ZIP contains a ported, prebuild library for OS/2.
Not thoroughly tested but seems to work ok.
Install the EXEs and DLLs from the following packages somewhere on your PATH
and LIBPATH respectively. They are all available on Hobbes.
- gnuawk.zip (rename gawk32.exe to awk.exe)
- Install GNU Make. The gnumake.zip on hobbes (v3.76.1) has an odd behaviour that messes up the build process. If you have
v3.75 installed then use that. Otherwise use gnumake_fixed.zip that I've compiled. If you use
the broken make you will get an error "true: Command not found" when building Apache.
Once you've installed all the above, edit src\Configuration to match your
requirements, then run "sh -c Configure" from the src directory. If there are
no errors, run "make" to build your custom httpd.exe.