LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-11-2005, 11:22 AM   #1
Idrisk
LQ Newbie
 
Registered: Sep 2005
Location: London
Posts: 10

Rep: Reputation: 0
Problem setting up Apache Tomcat connector .


Hello I hope you can help. I am trying to set up the JK 1.2.15 connectors.
I am using SUSE linux 9.2
I have installed Apache2 in /etc/apache2 this works .When I enter : //localhost/ I can see an example page.
I have installed Tomcat 5.5 on /opt/tomcat5 this works. When I enter ://localhost:8080 I see the default tomcat welcome page.
I have downloaded Tomcat Connectors jk 1.2.15 from ://tomcat.apache.org/download-connectors.cgi and i have installed this in /usr/local/src/jakarta-tomcat-connectors-1.2.15-src

when I try to install the jk connector I am doing the following :
cd /usr/local/src/jakarta-tomcat-connectors-1.2.15-src/jk/native
./buildconf.sh
after pressing enter I get the following errors

rm autom4te.cache
libtoolize --force --automake --copy
aclocal
./buildconf.sh: line 11: aclocal: command not found
autoheader
./buildconf.sh: line 13: autoheader: command not found
automake -a --foreign --copy
./buildconf.sh: line 15: automake: command not found
autoconf
./buildconf.sh: line 17: autoconf: command not found
rm autom4te.cache

the file buildconf.sh has the following code

#!/bin/sh

echo "rm autom4te.cache"
rm -rf autom4te.cache

echo "libtoolize --force --automake --copy"
libtoolize --force --automake --copy
echo "aclocal"
#aclocal --acdir=`aclocal --print-ac-dir`
#aclocal --acdir=/usr/local/share/aclocal
aclocal
echo "autoheader"
autoheader
echo "automake -a --foreign --copy"
automake -a --foreign --copy
echo "autoconf"
autoconf

echo "rm autom4te.cache"
rm -rf autom4te.cache


Does anyone know what I am doing wrong, if so please can you let me know.

I cannot find any up to date documentation on how to set this up -Apache-Tomcat with JK connectors, can anyone help me find a good place where i can find an easy to follow guide that is up to date.

All help is very much appreciated.
 
Old 11-12-2005, 11:08 PM   #2
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
You need to install the auto tools (automake, autoconf, etc.). They should be on your CD/DVD.
 
Old 11-15-2005, 12:30 PM   #3
Idrisk
LQ Newbie
 
Registered: Sep 2005
Location: London
Posts: 10

Original Poster
Rep: Reputation: 0
Hi , I have downloaded autoconf (installed in downloads/autoconf-2.59) and also GNU m4-1.4.4 (installed in downloads/m4-1.4.4 ) and automake-1.9.6 (installed in downloads/automake-1.9.6) .

I have set autoconf dir in my path (local user profile - /etc/profile) .

Do I need to do ./cofigure ? when I do I get the following error
configure: error: GNU M4 1.4 is required

I have entered GNU m4-1.4.4 into my path but i still get the error "configure: error: GNU M4 1.4 is required"
when doing ./configure

Going back to the original when entering ./buildconf.sh i am still getting
rm autom4te.cache
libtoolize --force --automake --copy
aclocal
./buildconf.sh: line 11: aclocal: command not found
./buildconf.sh: line 12: aclocal: command not found
autoheader
./buildconf.sh: line 14: autoheader: command not found
automake -a --foreign --copyrm autom4te.cacherm autom4te.cache
libtoolize --force --automake --copy
aclocal
./buildconf.sh: line 11: aclocal: command not found
./buildconf.sh: line 12: aclocal: command not found
autoheader
./buildconf.sh: line 14: autoheader: command not found
automake -a --foreign --copy
./buildconf.sh: line 16: automake: command not found
autoconf
./buildconf.sh: line 18: autoconf: command not found
rm autom4te.cache

libtoolize --force --automake --copy
aclocal
./buildconf.sh: line 11: aclocal: command not found
./buildconf.sh: line 12: aclocal: command not found
autoheader
./buildconf.sh: line 14: autoheader: command not found
automake -a --foreign --copy
./buildconf.sh: line 16: automake: command not found
autoconf
./buildconf.sh: line 18: autoconf: command not found
rm autom4te.cache

./buildconf.sh: line 16: automake: command not found
autoconf
./buildconf.sh: line 18: autoconf: command not found
rm autom4te.cache

Does anyone know what I am doing wrong.

thanks
 
Old 11-15-2005, 12:47 PM   #4
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
You wil save a *lot* of headache by installing the PRMs for the autotools off of your Suse CD. If you really want to do it the way you're doing it you'll need to mangle your ${PATH} so that downloads/<whatever> is included.
 
Old 11-16-2005, 09:31 AM   #5
Idrisk
LQ Newbie
 
Registered: Sep 2005
Location: London
Posts: 10

Original Poster
Rep: Reputation: 0
still not clear

Hi Sigsegv, thanks for your help.
When I type echo $PATH i get the following
/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin
:/bin:/downloads/autoconf-2.59:/downloads/m4-1.4.4
:/downloads/automake-1.9.6:/usr/games:/opt/gnome/bin:/opt/kde3/bin

I believe I have everything in my path. ( Please correct me if I am wrong)

when I try to install the jk connector I am doing the following :
cd /usr/local/src/jakarta-tomcat-connectors-1.2.15-src/jk/native
./buildconf.sh I still get the error in the main thread
and
After installing the auto-tools : autoconf, automake, and gnu 4-1.4.4 I try to build autoconf, I do this by going to the autoconf install directory and type in ./configure but when doing this i get the error : configure: error: GNU M4 1.4 is required.
Any ideas as to why i get the above ?. I have gnu m$ 1.4 installed and in my path - :/downloads/m4-1.4.4
this is what I see when i do /downloads/autoconf-2.59/ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for expr... /usr/bin/expr
checking for gm4... no
checking for gnum4... no
checking for m4... no
checking whether m4 supports frozen files... no
configure: error: GNU M4 1.4 is required


Do I need to do the above ?.

When starting Tomcat5.59 I get the following in the catalina.out log file.

16-Nov-2005 14:08:51 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
16-Nov-2005 14:08:51 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/144 config=null

does the above mean that I have the jk connectors working and running ? if so how did this happen and do I need to do any more i.e. create workers file, build any jk2 connectors , or any other files ?

Here is the full catalina.out log file16-Nov-2005 14:08:51 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
16-Nov-2005 14:08:51 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/144 config=null

16-Nov-2005 14:08:38 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
16-Nov-2005 14:08:38 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 5150 ms
16-Nov-2005 14:08:38 org.apache.catalina.core.StandardService start16-Nov-2005 14:08:51 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
16-Nov-2005 14:08:51 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/144 config=null
INFO: Starting service Catalina
16-Nov-2005 14:08:38 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
16-Nov-2005 14:08:38 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
16-Nov-2005 14:08:43 org.apache.catalina.startup.ContextConfig applicationWebConfig
INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Obimages]
16-Nov-2005 14:08:49 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
16-Nov-2005 14:08:51 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
16-Nov-2005 14:08:51 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/144 config=null
16-Nov-2005 14:08:51 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource

thanks for your help

Last edited by Idrisk; 11-16-2005 at 09:35 AM.
 
Old 11-16-2005, 12:31 PM   #6
Idrisk
LQ Newbie
 
Registered: Sep 2005
Location: London
Posts: 10

Original Poster
Rep: Reputation: 0
I am trying to work out what I need to do .

We downloaded JK 1.2.15 release sources from http://tomcat.apache.org/connnectors-doc this is installed in /usr/local/src/jakarta-tomcat-connectors-1.2.15-src.

I think we need to install a C compiler on SUSE Linux as when I do :
795-suselinux:/usr/local/src/jakarta-tomcat-connectors-1.2.15-src/jk/native # ./configure

I get the following :

checking build system type... i686-suse-linux
checking host system type... i686-suse-linux
checking target system type... i686-suse-linux
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

Did you need to need to install a C complier and build the mod_jk connector ?
Any ideas where can I get a C compiler for SUSE Linux 9.2 ?
 
Old 11-17-2005, 10:58 AM   #7
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
Yes you need gcc to install the jk connector. You can find it the same place you should find all the software for your distribution ... on the CD or DVD that you installed from. In a pinch you can use RPMfind.net, but dependency resolution is going to be a pain on something like gcc if you try to do it individually.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Tomcat mod_jk connector dashp Linux - Newbie 1 04-01-2005 02:34 PM
Apache Tomcat (Building the mod_jk connector) dashp Linux - Newbie 1 03-28-2005 09:49 AM
Apache Tomcat mod_jk connector dashp Linux - Newbie 0 03-24-2005 08:12 PM
mod_jk-2.0.42.so - apache-tomcat connector anura Linux - Software 0 10-11-2004 04:53 AM
Apache Tomcat Connector webee Linux - Software 0 01-24-2003 02:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration