(Please note this is very out-of-date).


Introduction.

These are the instructions to compile mod_jk on MacOS X beta.

The following assumes that you are using the tomcat-3.2.1 distribution and that you know how to access the Darwin repository via CVS.

Getting the ingredients and compiling mod_jk.

You need a few files from the Darwin repository to wrap the dynamic loader mechanism of MacOSX with dlopen and friends. Then an invocation of the apxs script will do the rest. In order:
  1. Get Commands/Apple/cctools/libdyld and Commands/Apple/cctools/include from the Darwin CVS repository.
    Make a "macosx" directory in jakarta-tomcat/src/native/apache1.3.
    In the "macosx" directory move the following files from the libdylib distribution:
    dlfcn.h dlopen.c ofi.h
  2. Move the whole of the "include" directory into the "macosx" dir. You will have:
    macosx:
    	dlfcn.h
    	dlopen.c
    	ofi.h
    	include:
    		....
    
  3. From the apache1.3 directory issue the following command (all on one line...)

    apxs -a -i -o mod_jk.so -DFREEBSD -I../jk -I/System/Library/Frameworks/JavaVM.framework/Headers -I./macosx/include -I./macosx -c macosx/*.c *.c ../jk/*.c

    This will install your module and enable it in the apache.conf.
My experience is that 3.1 with mod_jserv was much more reliable that mod_jk. Sometimes mod_jk seems to get stuck, in particular on jsp. It might be a configuration issue though.


©2001 HUMPH Ltd. All rights reserved.