tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Eggers <>
Subject Re: Binary of for Apache 2.2.x
Date Fri, 15 Jul 2011 17:19:21 GMT
----- Original Message -----

> From: "Leffingwell, Jonathan R CTR FRCSE, JAX 7.2.2" <>
> To: Tomcat Users List <>; Mark Eggers <>
> Cc: 
> Sent: Friday, July 15, 2011 7:53 AM
> Subject: RE: Binary of for Apache 2.2.x
> There is no "apxs" on the Linux server.  The S.A. confirmed this.  
> That file and nothing closely resembling it are found anywhere on the whole 
> box.  Is it needed to compile mod_jk?

Yes, and you will need a collection of other include files and libraries that are probably
not installed on your system.

Building mod_jk on a RedHat system is slightly complicated by the fact that RedHat breaks
up packages.

For example, if you install the apr and apr-util packages, you might expect to have all the
tools required to build software with Apache's portable runtime libraries.

You don't. You will need to install apr-devel and apr-util-devel in order to build other software
using these libraries. The apr and apr-util packages contain only what is required to run
software built with these packages.

Building mod_jk on RedHat (at least Fedora), requires a collection of development tools and
packages. At the top of the requirements chain, these are:

1. httpd-devel
This package provides /usr/sbin/apxs among other things.

2. apr-devel
The include files for building software with the apache portable runtime libraries.

3. apr-util-devel
The include files for the utilities library of the apache portable runtime libraries

4. Java JDK
Note, the JRE will NOT work. You should download and install this from Oracle, although there
are ways to get this installed using the RedHat package manager. There are include files in
$JAVA_HOME/include and $JAVA_HOME/include/linux that you will need.

If yum is set up properly (at least on Fedora), the dependencies for the first three packages
will be pulled in when you request the following (as root):

yum install httpd-devel apr-devel apr-util-devel

In part, you should see the following get installed.

perl (if not installed already - can't imagine why it wouldn't be)
db4-devel (which requires db4 and db4-cxx)
expat-devel (which requires expat)
openldap-devel (which requires openldap,cyrus-sasl-devel)

cyrus-sasl-devel requires a set of packages as well.

Hopefully everything else should be in place on your system.

Again, in a sane world yum will pull in the required dependencies if you just do the following
as root:

yum install httpd-devel apr-devel apr-util-devel

Yum will come back with a list of additional packages it needs to install in order to meet
the requirements.

This is how it works on a Fedora system, which is basically the beta testing environment for
RedHat EL releases.

For mod_ssl, you shouldn't have to build it. At least on a Fedora system, mod_ssl is provided
by the mod_ssl package.

Installing that as root with:

yum install mod_ssl

will bring in the openssl package. You will need the openssl package and the openssl-devel
package in order to build the Tomcat native libraries packaged in $CATALINA_HOME/bin/tomcat-native.tar.gz.

Hopefully between you and your system admin, you can decipher the above mail message.

. . . . just my two cents.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message