For Linux/Unix, you need to install this from source.
❑ If you don’t have APR installed on your machine, download the source from http://apr
.apache.org . Install APR using the following steps as the root user to install the APR in its
default location ( /usr/local/apr ). If running as a non-root user, use the --prefix option
with configure to specify another install location.
$ tar zxvf apr-x.y.z.tar.gz
$ cd apr-x.y.z
$ ./buildconf
$ ./configure
$ make install
The APR JNI wrapper sources are packaged, along with the Tomcat distribution, as the tomcat- native
.tar.gz file in <TOMCAT_HOME>/bin . The installation steps are provided in the code that follows. In
the steps shown, the default apr_install_location is /usr/local/apr as shown in the earlier
step. If you don’t need OpenSSL support, you can use the --without-ssl option with configure to
disable it. If you need OpenSSL, you can download it from www.openssl.org . The JNI wrapper gets
installed under /usr/local/apr/lib , and as before, a --prefix option for configure can install it
elsewhere.
$ cd /path/to/tomcat/bin
$ tar zxvf tomcat-native.tar.gz
$ cd tomcat-native-x.y.z-src/jni/native
The APR JNI wrapper sources are packaged, along with the Tomcat distribution, as the tomcat- native
.tar.gz file in <TOMCAT_HOME>/bin . The installation steps are provided in the code that follows. In
the steps shown, the default apr_install_location is /usr/local/apr as shown in the earlier
step. If you don’t need OpenSSL support, you can use the --without-ssl option with configure to
disable it. If you need OpenSSL, you can download it from www.openssl.org . The JNI wrapper gets
installed under /usr/local/apr/lib , and as before, a --prefix option for configure can install it
elsewhere.
$ cd /path/to/tomcat/bin
$ tar zxvf tomcat-native.tar.gz
$ cd tomcat-native-x.y.z-src/jni/native
$ ./configure --with-apr=apr_install_location --with-ssl=openssl_install_location
$ make install
Karthik Shiraly wrote:$java will execute the first "java" found in $PATH (usually in /usr/bin). java -version will also give the vendor name. Anyway, configure does not really require java executable; it's more interested in where to find JDK home and /include under that. My guess, just based on my installation, would be that the active JDK here is /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/
It seems the openJDK "devel" package is missing. Find the openjdk devel package using yum and install it. I'm not sure what its exact name is in fedora, but it's possible to find out using something like "yum list | grep jdk | grep devel".
Consider Paul's rocket mass heater. |