tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Claxton <willi...@openasia.net>
Subject Re: problem compiling modJK2, library not found
Date Fri, 25 Apr 2003 04:52:21 GMT
So sorry, you are right.  I copied those lines from our documentation for
the the mod_JK.  The corrected lines (as entered during compilation) should
be:

	$cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2
	$./buildconf.sh 
	$./configure --with-apxs2=/usr/sbin/apxs --with-java-home=${JAVA_HOME}

Thanks for pointing this out.

At 09:42 PM 4/24/03 -0700, you wrote:
>I see two problems here:
>1) .../native is where mod_jk lives.  Jk2 is in .../native2.
>2) the configure option --with-apxs is for Apache 1.3.x.  For Apache2 you
>want --with-apxs2.
>
>"William Claxton" <williamc@openasia.net> wrote in message
>news:3.0.1.32.20030425105908.012d22d8@miami...
>> Hi folks,
>>
>> Fairly new to compilation in Unix here, and trying to compile modJK2
>> connector, for Apache 2.0.40.  Apparently, we have a library not found
>> error, during linking.
>>
>> Our environment is RH Linux 8, Apache 2.0, and Tomcat 4.1.18.  We have
>> currently connected Apache and Tomcat using AJP13, but are trying JK2
>> because the output stream 'flush' function fails with standard modJK.
>>
>> To prepare for compilation, we're using the configure option, as follows:
>>
>> $cd /usr/lib/httpd/jakarta-tomcat-connectors-jk-1.2.2-src/jk/native
>> $./buildconf.sh
>> $./configure --with-apxs=/usr/sbin/apxs --with-java-home=${JAVA_HOME}
>>
>> A 'Makefile' is created.  Then we proceed with:
>>
>> $ make
>>
>> The compilation fails, apparently during linking.  The last part of the
>> screen output shows:
>>
>> /usr/bin/ld: cannot find -lapr-0
>> collect2: ld returned 1 exit status
>> make[1]: *** [../../../build/jk2/apache2/jkjni.la] Error 1
>> make: *** [jk2-build] Error 1
>>
>> A quick check for the 'libapr.so' libraries finds them here:
>>
>> $ locate libapr
>> /usr/lib/libapr.so.0.0.0
>> /usr/lib/libapr.so.0
>> /usr/lib/libaprutil.so.0.0.0
>> /usr/lib/libaprutil.so.0
>> /usr/lib/libaprutil.so
>> /usr/lib/libapr.so
>>
>> Can anyone advise how to ensure that this library is found during linking,
>> or what we may do to rectify the compilation problem.  Thanks.
>>
>>
>>
>>
>>
>>         Regards, Bill Claxton [williamc@openasia.net]
>>         OpenAsia Solutions provides streaming media & payment solutions.
>>         Check out http://www.openasia.net
>> ........:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>

        Regards, Bill Claxton [williamc@openasia.net]
        OpenAsia Solutions provides streaming media & payment solutions.
        Check out http://www.openasia.net
........:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message