Yes, that is the correct path to apxs but it may not have been the binary
that came with apache2. I did the following:
1) mv /usr/sbin/apxs /usr/sbin/apxs.old
2) cp /usr/local/src/httpd-2.0-48/support/apxs /usr/sbin/apxs
3) chmod 755 /usr/sbin/apxs
4) cd /opt/jakarta/jakarta-tomcat-connectors-jk-2.0.2-src/jk/native2
5) export CPPFLAGS="-I/usr/include/apr-0"
6) chmod 755 ./buildconf.sh
7) sh ./buildconf.sh
8) ./configure --with-apxs=/usr/sbin/apxs
--with-tomcat-41=/opt/jakarta/jakarta-tomcat
--with-java-home=/usr/java/j2sdk1.4.2_03
And jk finally configured. I edited the server/apache2/Makefile as directed
by changing
JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt -lapr-0 -lpcre -lpcreposix
-laprutil-0
and ran make which just bombed with: /usr/bin/ld can not find lpcre
This is painful. Did I miss linking a necessary library in the configure
step?
Mike
> -----Original Message-----
> From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 18, 2004 9:56 AM
> To: 'Tomcat Users List'
> Subject: RE: Jk2 installation failure
>
>
> Is apxs in that path? And if it is, is it the binary that
> came with apache 2?
>
> -----Original Message-----
> From: Mike Burkhouse [mailto:[EMAIL PROTECTED]
> Sent: 18 March 2004 14:46
> To: 'Tomcat Users List'
> Subject: RE: Jk2 installation failure
>
>
> I added --with-apache2 because configure failed with an error
> message that it could not find a web server.
>
> I removed the --with-apache2 argument and changed the apxs
> argument to --with-apxs2=/usr/sbin/apxs and I get the error:
> could not find /usr/sbin/apxs
>
> I removed the --with-apxs argument and get the error that
> configure can not find any webserver again...
>
> Mike
>
> > -----Original Message-----
> > From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, March 18, 2004 9:40 AM
> > To: 'Tomcat Users List'
> > Subject: RE: Jk2 installation failure
> >
> >
> > You don't need to specify --with-apache2. Change --with-apxs
> > to --with-apxs2
> >
> > -----Original Message-----
> > From: Mike Burkhouse [mailto:[EMAIL PROTECTED]
> > Sent: 18 March 2004 14:10
> > To: 'Tomcat Users List'
> > Subject: RE: Jk2 installation failure
> >
> >
> > Thanks Yiannis, Hi Everyone,
> >
> > This appears to be helpful, but I have run into another problem:
> >
> > As root, I am trying to run
> >
> > ./configure --with-apxs=/usr/sbin/apxs
> > --with-tomcat-41=/opt/jakarta/jakarta-tomcat
> > --with-java-home=/usr/java/j2sdk1.4.2_03
> > --with-apache2=/usr/local/apache2
> >
> > Which fails with an error that configure oculd not find
> > /usr/local/apache2 . When I change the position of the
> > arguments, so that apxs is the last in the array, then
> > configure fails with the error, could not find /usr/sbin/apxs .
> >
> >
> > Can anyone help get me past this?
> >
> > Regards,
> >
> > Mike
> >
> > > -----Original Message-----
> > > From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, March 16, 2004 12:12 PM
> > > To: 'Tomcat Users List'
> > > Subject: RE: Jk2 installation failure
> > >
> > >
> > > This is a decent tutorial
> > > http://cymulacrum.net/writings/tomcat5/book1.html
> > >
> > >
> > > -----Original Message-----
> > > From: Mike Burkhouse [mailto:[EMAIL PROTECTED]
> > > Sent: 16 March 2004 17:05
> > > To: [EMAIL PROTECTED]
> > > Subject: Jk2 installation failure
> > >
> > >
> > > Hi All,
> > >
> > > I am having trouble installing jk2. Here are the steps I
> > have taken:
> > >
> > > 1) Download jk2 source (I couldn't find a RedHat binary?)
> > > 2) Unpack to /opt/jakarta/jakarta-tomcat-connectors-jk2-2.0.2-src
> > > 3) Edit the build.properties file as follows:
> > > a) my tomcat home directory is /opt/jakarta/jakarta/tomcat
> > > b) my apache home directory is /usr/local/apache2
> > >
> > > <build.properties>
> > >
> > > #
> > > # sample build.properties for ajp connector.
> > > # edit to taste...
> > > #
> > >
> > > # Directory where tomcat5 is installed
> > > #tomcat5.home= ../../jakarta-tomcat-5/build
> > >
> > > # Directory where catalina is installed. It can
> > > # be either 4.0 or 4.1 tomcat41.home=/opt/jakarta/jakarta-tomcat
> > >
> > > # If you want to build/install on both 4.0
> > > # and 4.1, set this to point to 4.0 and 'catalina.home'
> > > # to point to 4.0
> > > # ( most people need only the first, but developers should # have
> > > both ) #tomcat41.home=../../jakarta-tomcat-4.1/build
> > >
> > > # Directory where tomcat3.3 is installed
> > > #tomcat33.home= ../../jakarta-tomcat/build/tomcat
> > >
> > > # Location of Apache2, Apache1.3, Netscape, IIS
> > > apache2.home=/usr/local/apache2 #apache13.home=/opt/apache13
> > > #iplanet.home=/opt/iplanet6 # iplanet.home=d:/tools/sdk/netscape
> > > # iis.home=e:/
> > >
> > > # APR location - by default the version included in
> Apache2 is used.
> > > # Don't edit unless you install 'standalone' apr.
> > > apr.home=${apache2.home}
> > >
> > > apr.include=${apr.home}/include
> apr-util.include=${apr.home}/include
> > >
> > > apr.lib=${apr.home}/lib
> > > apr-util.lib=${apr.home}/lib apache2.lib=${apache2.home}/lib
> > >
> > >
> > > # Compile-time options for native code
> > > so.debug=true
> > > so.optimize=false
> > > so.profile=false
> > >
> > > # tools for other directories
> > > # Metrowerks and novel ndk
> > > #mw.home=d:/tools/mw/6.0 #novellndk.home=d:/tools/novell/ndk/nwsdk
> > >
> > > # MSVC
> > > #mssdk.home=c:/Program Files/Microsoft Visual Studio/VC98
> > >
> > > </build.properties>
> > >
> > > 4) run ant with the following error:
> > >
> > > Buildfile: build.xml
> > >
> > > detect:
> > > [echo] -------- jakarta-tomcat-connectors --------
> > >
> > > prepare:
> > >
> > > BUILD FAILED
> > > file:/opt/jakarta/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/b
> > > uild.xml:105:
> > > Warning: Could not find file
> > > /opt/jakarta/jakarta-tomcat-connectors-jk2-2.0.2-src/coyote/bu
> > > ild/lib/tomcat
> > > -coyote.jar to copy.
> > >
> > > Total time: 0 seconds
> > >
> > > 5) Now I am confused. There is not even a coyote directory in
> > > either of $TOMCAT_HOME or the connectors dirs. There is,
> however a
> > > tomcat-coyote.jar file in $TOMCAT_HOME/server/lib.
> > > Am I supposed to link to that in build.xml? How?
> > >
> > > I have seen a lot about this in the archives, but none of the
> > > suggestions that I tried from there helped. I hope that
> one of you
> > > know what is happening and how I can get past it.
> > >
> > > Thanks in advance,
> > >
> > > Mike
> > >
> > >
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > >
> > >
> > > ______________________________________________________________
> > > __________
> > > This e-mail has been scanned for all viruses by Star
> Internet. The
> > > service is powered by MessageLabs.
> > >
> > >
> > > Note:_________________________________________________________
> > > _________
> > > This message is for the named person's use only. It may contain
> > > confidential, proprietary or legally privileged information. No
> > > confidentiality or privilege is waived or lost by any
> > > mistransmission. If you receive this message in error, please
> > > immediately delete it and all copies of it from your
> system, destroy
> > > any hard copies of it and notify the sender. You must
> not, directly
> > > or indirectly, use, disclose, distribute, print, or copy
> any part of
> > > this message if you are not the intended recipient.
> Jaguar Freight
> > > Services and any of its subsidiaries each reserve the right to
> > > monitor all e-mail communications through its networks. Any views
> > > expressed in this message are those of the individual sender,
> > > except where the message states otherwise and the sender is
> > > authorized to state them to be the views of any such entity.
> > > ______________________________________________________________
> > > __________
> > > This e-mail has been scanned for all viruses by Star
> > > Internet. The service is powered by MessageLabs.
> > >
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > ______________________________________________________________
> > __________
> > This e-mail has been scanned for all viruses by Star Internet. The
> > service is powered by MessageLabs.
> >
> >
> > Note:_________________________________________________________
> > _________
> > This message is for the named person's use only. It may contain
> > confidential, proprietary or legally privileged information. No
> > confidentiality or privilege is waived or lost by any
> mistransmission.
> > If you receive this message in error, please immediately
> delete it and
> > all copies of it from your system, destroy any hard copies
> of it and
> > notify the sender. You must not, directly or indirectly, use,
> > disclose, distribute, print, or copy any part of this
> message if you
> > are not the intended recipient. Jaguar Freight Services and
> any of its
> > subsidiaries
> > each reserve the right to monitor all e-mail communications
> > through its
> > networks.
> > Any views expressed in this message are those of the
> > individual sender,
> > except where the message states otherwise and the sender is
> authorized
> > to state them to be the views of any such entity.
> > ______________________________________________________________
> > __________
> > This e-mail has been scanned for all viruses by Star Internet. The
> > service is powered by MessageLabs.
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ______________________________________________________________
> __________
> This e-mail has been scanned for all viruses by Star
> Internet. The service is powered by MessageLabs.
>
>
> Note:_________________________________________________________
> _________
> This message is for the named person's use only. It may
> contain confidential, proprietary or legally privileged
> information. No confidentiality or privilege is waived or
> lost by any mistransmission. If you receive this message in
> error, please immediately delete it and all copies of it from
> your system, destroy any hard copies of it and notify the
> sender. You must not, directly or indirectly, use, disclose,
> distribute, print, or copy any part of this message if you
> are not the intended recipient. Jaguar Freight Services and
> any of its subsidiaries each reserve the right to monitor all
> e-mail communications through its networks. Any views
> expressed in this message are those of the individual sender,
> except where the message states otherwise and the sender is
> authorized to state them to be the views of any such entity.
> ______________________________________________________________
> __________
> This e-mail has been scanned for all viruses by Star
> Internet. The service is powered by MessageLabs.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]