Hi Guys,
I am trying to install tomcat on my centos 5.6 box(vm) and it is giving me
failure for make operation.
[panther@localhost unix]$ make
(cd native; make all)
make[1]: Entering directory
`/home/panther/apache-tomcat-7.0.19/bin/commons-daemon-1.0.6-native-src/unix/native'
gcc -g -O2 -DOS_LINUX -DDSO_DLFCN -DCPU=\"i386\" -Wall -Wstrict-prototypes
-DHAVE_LIBCAP -I/usr/bin/java/include -I/usr/bin/java/include/linux -c
jsvc-unix.c -o jsvc-unix.o
cc1: error: /usr/bin/java/include: Not a directory
cc1: error: /usr/bin/java/include/linux: Not a directory
make[1]: *** [jsvc-unix.o] Error 1
make[1]: Leaving directory
`/home/panther/apache-tomcat-7.0.19/bin/commons-daemon-1.0.6-native-src/unix/native'
make: *** [native/all] Error 2
However ./configure is successful without any errors.
./configure
*** 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
checking for strip... strip
*** Host support ***
checking C flags dependant on host system type... ok
*** Java compilation tools ***
checking for sablevm... NONE
checking for kaffe... NONE
checking for javac... /usr/bin/javac
/usr/bin/javac
checking wether the Java compiler (/usr/bin/javac) works... yes
checking for jar... /usr/bin/jar
gcc flags added
checking for cap_init in -lcap... yes
*** Writing output files ***
configure: creating ./config.status
config.status: creating Makefile
config.status: creating Makedefs
config.status: creating native/Makefile
*** All done ***
Now you can issue "make"
Not sure what the heck the problem is
type and which java gives following result,
[panther@localhost unix]$ type java
java is /usr/bin/java
[panther@localhost unix]$ which java
/usr/bin/java
Following documentation located at,
http://tomcat.apache.org/tomcat-7.0-doc/setup.html
uname -a
Linux localhost.localdomain 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:35 EDT 2010
i686 i686 i386 GNU/Linux
Please assist.
Many thanks