Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 98470 invoked from network); 2 Dec 2010 21:09:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Dec 2010 21:09:34 -0000 Received: (qmail 567 invoked by uid 500); 2 Dec 2010 21:09:21 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 351 invoked by uid 500); 2 Dec 2010 21:09:21 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 341 invoked by uid 99); 2 Dec 2010 21:09:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Dec 2010 21:09:21 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: unknown mxinclude:aspmx.pardot.com~all (athena.apache.org: encountered unrecognized mechanism during SPF processing of domain of Ajay.Aggarwal@stratus.com) Received: from [134.111.1.17] (HELO mailhub4.stratus.com) (134.111.1.17) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Dec 2010 21:09:13 +0000 Received: from EXHQ.corp.stratus.com (exhq.corp.stratus.com [134.111.201.100]) by mailhub4.stratus.com (8.12.11/8.12.11) with ESMTP id oB2L8pHa004450 for ; Thu, 2 Dec 2010 16:08:52 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CB9265.17375E25" Subject: Questions about installing APR Date: Thu, 2 Dec 2010 16:08:38 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Questions about installing APR thread-index: AcuSZRcuVEeTZcHXTwiIpuoHug2Caw== From: "Aggarwal, Ajay" To: "Tomcat Users List" ------_=_NextPart_001_01CB9265.17375E25 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable My OS is centos 5.5, which has APR 1.2.7 pre-installed on it. # rpm -qa | grep apr apr-1.2.7-11.el5_3.1 apr-util-1.2.7-11.el5 =20 I am using Tomcat version 6.0.20 and I located tomcat-native.tar.gz under tomcat/bin folder. I extracted the contents and now I am in tomcat/bin/tomcat-native-1.1.16-src/jni/native directory. I have the "configure" script here. =20 ./configure fails Error: configure: error: APR could not be located. Please use the --with-apr option. =20 Not sure why I get above error since I have the "apr" RPM installed (version 1.2.7). I double check for these shared libraries under /usr/lib and they are all there ls /usr/lib/libapr* /usr/lib/libapr-1.so.0 /usr/lib/libapr-1.so.0.2.7 /usr/lib/libaprutil-1.so.0 /usr/lib/libaprutil-1.so.0.2.7 =20 I tried ./configure --with-apr=3D/usr/lib , but that fails too Error: checking for APR... configure: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file. =20 So I downloaded APR version 1.4.2 and compiled and installed it with a different prefix=3D/tmp/myapr =20 Now ./configure --with-apr=3D/tmp/myapr works fine and I see following line when I start tomcat Loaded APR based Apache Tomcat Native library 1.1.16. APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. =20 But I have couple of questions: 1) Is it ok to compile JNI wrapper with APR 1.4.2, but run it with APR 1.2.7 (like I explained above)? 2) Is it ok to use ARP 1.2.7? Or is it strongly recommended to use the latest version, i.e. APR 1.4.2? =20 -Ajay ------_=_NextPart_001_01CB9265.17375E25--