You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Derek Schaible <ds...@cssiinc.com> on 2006/10/18 17:05:01 UTC
Configure issue with jsvc
Hi list,
I am trying to install tomcat for the first time, version 5.5 with
Sun's SDK 5, Redhat ES 4, which installed smoothly. My problem is
trying to get the jsvc to get past configure:
[root@host jsvc-src]# ./configure --with-java=/usr/java/jre1.5.0_06
*** Current host ***
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking cached host system type... ok
*** C-Language compilation tools ***
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
*** Host support ***
checking C flags dependant on host system type... ok
*** Java compilation tools ***
checking JAVA_HOME... /usr/java/jre1.5.0_06
checking for javac... NONE
checking for javac... /usr/bin/javac
checking wether the Java compiler (/usr/bin/javac) works... no
configure: error: installation or configuration problem: javac cannot
compile
[root@host jsvc-src]# echo $JAVAC
gcj
[root@host jsvc-src]# echo $JAVACFLAGS
-c
[root@host jsvc-src]# echo $JAVA_HOME
/usr/java/jre1.5.0_06/
yet:
[root@host jsvc-src]# echo "public class Test {}" > Test.java
[root@host jsvc-src]# gcj -c Test.java
[root@host jsvc-src]# ls
autom4te.cache config.log configure.in Makedefs.in man
support Test.o
CHANGES.txt configure INSTALL.txt Makefile.in native Test.java
and:
[root@host jsvc-src]# javac Test.java
[root@host jsvc-src]# ls
autom4te.cache config.log configure.in Makedefs.in man
support Test.java
CHANGES.txt configure INSTALL.txt Makefile.in native
Test.class
Any thoughts as to what I'm doing wrong??
I hope this isn't an RTFM issue, but I haven't been able to find any
info out there...
I also tried:
[root@host jsvc-src]# echo $JAVA_HOME
/usr/java
But no change when running configure.
TIA!!
-d
Re: Configure issue with jsvc
Posted by Derek Schaible <ds...@cssiinc.com>.
On Oct 18, 2006, at 11:42 AM, Steve Ochani wrote:
>
> You need to use sun's jdk only, try uninstalling gnu java
> alltogether and make sure you
> have sun's jdk (not just jre) installed.
>
That did it! Thanks!
Perhaps the Linux docs could be updated to reflect Sun's default JDK
directory of ' /opt/SUNWappserver/jdk/'?
I thought '/usr/java', etc... was correct by the way the docs state
it. It would have saved me a couple hours of head scratching as it
indicates it should have worked as I had it configured.
Per INSTALL.txt:
./configure --with-java=/usr/java
or
JAVA_HOME=/usr/java
export JAVA_HOME
./configure
or (when using gcj (use fastjar for jar))
JAVAC=gcj; export JAVAC
JAVACFLAGS=-c; export JAVACFLAGS
./configure
And at apache.org:
./configure --with-java=/usr/java
Which is where the GNU progs are placed, not Sun's JDK. It's just
misleading for us Java Newbs - especially when everyone likes to tell
us to RTFM :-)
Huge thanks, though!! I'm up and running....
-d
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Configure issue with jsvc
Posted by Steve Ochani <oc...@ncc.edu>.
On 18 Oct 2006 at 11:05, Derek Schaible wrote:
> Hi list,
>
> I am trying to install tomcat for the first time, version 5.5 with
> Sun's SDK 5, Redhat ES 4, which installed smoothly. My problem is
> trying to get the jsvc to get past configure:
>
> [root@host jsvc-src]# ./configure --with-java=/usr/java/jre1.5.0_06
> *** Current host *** checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu checking cached host
> system type... ok *** C-Language compilation tools *** checking for
> gcc... gcc checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes checking whether we are
> cross compiling... no checking for suffix of executables... checking
> for suffix of object files... o checking whether we are using the GNU
> C compiler... yes checking whether gcc accepts -g... yes checking for
> gcc option to accept ANSI C... none needed checking for ranlib...
> ranlib *** Host support *** checking C flags dependant on host system
> type... ok *** Java compilation tools *** checking JAVA_HOME...
> /usr/java/jre1.5.0_06 checking for javac... NONE checking for javac...
> /usr/bin/javac checking wether the Java compiler (/usr/bin/javac)
> works... no configure: error: installation or configuration problem:
> javac cannot compile
>
> [root@host jsvc-src]# echo $JAVAC
> gcj
You need to use sun's jdk only, try uninstalling gnu java alltogether and make sure you
have sun's jdk (not just jre) installed.
> [root@host jsvc-src]# echo $JAVACFLAGS
> -c
> [root@host jsvc-src]# echo $JAVA_HOME
> /usr/java/jre1.5.0_06/
>
> yet:
>
> [root@host jsvc-src]# echo "public class Test {}" > Test.java
> [root@host jsvc-src]# gcj -c Test.java
> [root@host jsvc-src]# ls
> autom4te.cache config.log configure.in Makedefs.in man
> support Test.o
> CHANGES.txt configure INSTALL.txt Makefile.in native
> Test.java
>
> and:
>
> [root@host jsvc-src]# javac Test.java
> [root@host jsvc-src]# ls
> autom4te.cache config.log configure.in Makedefs.in man
> support Test.java
> CHANGES.txt configure INSTALL.txt Makefile.in native
> Test.class
>
> Any thoughts as to what I'm doing wrong??
> I hope this isn't an RTFM issue, but I haven't been able to find any
> info out there...
>
> I also tried:
> [root@host jsvc-src]# echo $JAVA_HOME
> /usr/java
>
> But no change when running configure.
>
> TIA!!
> -d
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org