Operating System - HP-UX
1847058 Members
6156 Online
110261 Solutions
New Discussion

apache & tomcat integration

 
Benedict
Occasional Advisor

apache & tomcat integration

Hi,
Can any one help me in configuring apache & tomcat.

While creating the mod_jk.so file, I am getting the following error... thanks in advance for you help.

# ./build-hpux.sh
Building mod_jk
syntax error in file /usr/local/apache/bin/apxs at line 67, next 2 tokens "use s
trict"
syntax error in file /usr/local/apache/bin/apxs at line 74, next 2 tokens "my $C
FG_TARGET "
syntax error in file /usr/local/apache/bin/apxs at line 99, next 2 tokens "my $o
pt_n "
syntax error in file /usr/local/apache/bin/apxs at line 125, next 2 tokens "my (
"
syntax error in file /usr/local/apache/bin/apxs at line 198, next 2 tokens "my $
rc"
syntax error in file /usr/local/apache/bin/apxs at line 201, next 2 tokens "1 an
d"
syntax error in file /usr/local/apache/bin/apxs at line 202, next 2 tokens "not
$opt_q "
syntax error in file /usr/local/apache/bin/apxs at line 211, next 2 tokens "my (
"
syntax error in file /usr/local/apache/bin/apxs at line 214, next 2 tokens "my (
"
syntax error in file /usr/local/apache/bin/apxs at line 216, next 2 tokens "$var
and"
/usr/local/apache/bin/apxs has too many errors.
Error with apxs
#
4 REPLIES 4
benoit Bruckert
Honored Contributor

Re: apache & tomcat integration

Hi,
apxs is a perl script,
the trouble you have is probably linked with the perl release installed on your server ....
check it !

hth
Benoit
Une application mal pansée aboutit à une usine à gaze (GHG)
Benedict
Occasional Advisor

Re: apache & tomcat integration

hi benoit,

Thanks for the info. I have perl in all of the following directories.

# find . -name 'perl'
./opt/apache/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi/auto/Apache/include/mod
ules/perl
./opt/perl
./opt/perl/html/perl
./opt/perl/bin/perl
./opt/perl_64/html/perl
./opt/perl_64/bin/perl
./opt/hpapache2/lib/perl
./usr/contrib/bin/perl
./usr/contrib/Q4/bin/perl
./var/adm/sw/products/perl
./var/adm/sw/save/PHCO_20262/Q4/usr/contrib/Q4/bin/perl
./qsc/perl5.005_03/bin/perl


How can I instruct the system to use the particular version. I have installed perl5.X version in /opt/perl folder.. Thanks..

Awaiting your reply.

benoit Bruckert
Honored Contributor

Re: apache & tomcat integration

You just have to change the first line of apxs to the proper perl version !
by default :
#!/opt/perl5/bin/perl
either you change this line,
either you place in opt/perl5/bin/perl the good version.
check the version with :
/opt/perl5/bin/perl -v

hope that help.
Benoit
Une application mal pansée aboutit à une usine à gaze (GHG)
Benedict
Occasional Advisor

Re: apache & tomcat integration

Gr8..
It worked..

Thanks pal. :)