Google Site SearchFN Site Search FN Blog Login FN Blog Login
Site Navigation:
 
 

TUTORIAL: mod_jk2 (Apache Jakarta Connector)


  1. Download the tarball jarkarta-tomcat-connectors-jk2-2.0.2-src.tar.gz from http://www.apache.org/dist/jakarta/tomcat-connectors/jk2/source/ and save it in $HOME/rpmbuild/SOURCES. Or if you have wget do
    [casper@localhost casper]$ cd rpmbuild/SOURCES
    [cpedersen@tuxdsk2 SOURCES]$ wget http://www.apache.org/dist/jakarta
    /tomcat-connectors/jk2/source/jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz
    [casper@localhost SOURCES]$
    
  2. Download mod_jk2.spec and save it to rpmbuild/SPECS
  3. The specfile will only work if TOMCAT_HOME is set
    [casper@localhost SOURCES]$ export TOMCAT_HOME=<where ever you installed tomcat>
    [casper@localhost SOURCES]$
    
  4. In rpmbuild/SPECS run rpmbuild
    [casper@localhost casper]$ cd ../SPECS
    [casper@localhost SPECS] rpmbuild -ba mod_jk2.spec
    Executing(%prep): /bin/sh -e /home/casper/rpmbuild/TMP/rpm-tmp.33213
    + umask 022
    + cd /home/cpedersen/rpmbuild//BUILD
    + LANG=C
    + export LANG
    + unset DISPLAY
    + '[' -z /opt/java ']'
    + '[' -z /opt/tomcat ']'
    + '[' '!' -x /etc/httpd/build/libtool ']'
    + mkdir -p /home/casper/rpmbuild/TMP/mod_jk2-2.0.2-1.fc1-root-casper/etc/httpd/conf
    + mkdir -p /home/cpedersen/rpmbuild/TMP/mod_jk2-2.0.2-1.fc1-root-casper/etc/httpd/conf.d
    + mkdir -p /home/cpedersen/rpmbuild/TMP/mod_jk2-2.0.2-1.fc1-root-casper/usr/lib/httpd/modules
    .........
    Prefix) <= 4.0-1
    Requires(post): /bin/sh
    Requires(preun): /bin/sh
    Requires(postun): /bin/sh
    Requires: httpd >= 2.0.47 libapr-0.so.0 libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.3)
     libc.so.6(GLIBC_2.3) libcrypt.so.1
    Processing files: mod_jk2-debuginfo-2.0.2-1.fc1
    Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/cpedersen/rpmbuild/TMP/mod_jk2-2.0.2-1.fc1-root-cpedersen
    Wrote: /home/casper/rpmbuild/SRPMS/mod_jk2-2.0.2-1.fc1.src.rpm
    Wrote: /home/casper/rpmbuild/RPMS/i386/mod_jk2-2.0.2-1.fc1.i386.rpm
    Wrote: /home/casper/rpmbuild/RPMS/i386/mod_jk2-debuginfo-2.0.2-1.fc1.i386.rpmExecuting(%clean):
     /bin/sh -e /home/casper/rpmbuild/TMP/rpm-tmp.97380
    + umask 022
    + cd /home/casper/rpmbuild//BUILD
    + cd jakarta-tomcat-connectors-jk2-2.0.2-src
    + rm -rf /home/casper/rpmbuild/TMP/mod_jk2-2.0.2-1.fc1-root-casper
    + exit 0
    [casper@localhost SPECS]$
    
  5. Now install the package
    [casper@localhost SPECS]$ su
    Password:
    [root@localhost SPECS]# rpm -ivh ../RPMS/i386/mod_jk2-2.0.2-1.fc1.i386.rpm 
    Preparing...                ########################################### [100%]
       1:mod_jk2                ########################################### [100%]
    [root@localhost SPECS]#
    
Not it is getting time to have a bit more fun....