Re: install tomcat under linux (java problem)
Hi Hannes, in my humildy opinion the question is you do not have 1.5 in your profile. if you put: java -version could not find your java 1.5 try to add to your .profile in the user \\ then put java -version to be sure that is the 1.5 version. and then try to be sure if is in the setenv.sh and in the startup.sh Be living, Ruben Hannes Hein writes: Hi, I'm trying to install Tomcat 5.5.15 on a linux machine (debian 3.1 r0a). I installed Java 5.0 already. According to java and tomcat /etc/environment contains the following two lines: JAVA_HOME=/usr/java/jdk1.5.0_06 CATALINA_HOME=/srv/apache-tomcat-5.5.15 I try to install tomcat in the way it is described here: http://tomcat.apache.org/tomcat-5.5-doc/setup.html My problem is: if I call ./configure everithing runs fine until the following error message: checking for javac... /usr/java/jdk1.5.0_06/bin/javac checking wether the Java compiler (/usr/java/jdk1.5.0_06/bin/javac) works... no configure: error: installation or configuration problem: javac cannot compile Can someone help me? I don't know what's wrong! thanks -- Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: install tomcat under linux (java problem)
From: Hannes Hein [mailto:[EMAIL PROTECTED] Subject: install tomcat under linux (java problem) I try to install tomcat in the way it is described here: http://tomcat.apache.org/tomcat-5.5-doc/setup.html Note that this section is for running Tomcat as a daemon; does Tomcat run properly on your system when using the standard script (startup.sh)? See RUNNING.txt in the Tomcat home directory. configure: error: installation or configuration problem: javac cannot compile Can you run javac by itself to compile a simple program? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: install tomcat under linux (java problem)
Initially it was a java installation problem because I used the jdk...rpm.bin file from sun that in fact doesn't work with debian ( see: http://www.linuxquestions.org/questions/showthread.php?t=108638 ). I had to use the jdk...bin file, now java runs correctly. From: Hannes Hein [mailto:[EMAIL PROTECTED] Subject: install tomcat under linux (java problem) I try to install tomcat in the way it is described here: http://tomcat.apache.org/tomcat-5.5-doc/setup.html Note that this section is for running Tomcat as a daemon; does Tomcat run properly on your system when using the standard script (startup.sh)? See RUNNING.txt in the Tomcat home directory. I know that this is for running Tomcat as a daemon, and I want Tomcat to run as a daemon. Can you run javac by itself to compile a simple program? Yes. javac runs correctly. The problem 'configure: error: installation or configuration problem: javac cannot compile' is solved now as java runs correctly, but it still doesn't compile the sources and I have absolutely no idea why (see attached file for make output). hannes callisto:/srv/apache-tomcat-5.5.15/bin/jsvc-src# make make -C native all make[1]: Entering directory `/srv/apache-tomcat-5.5.15/bin/jsvc-src/native' gcc -g -O2 -DOS_LINUX -DDSO_DLFCN -DCPU=\i386\ -I/usr/local/java/jdk1.5.0_06/include -I/usr/local/java/jdk1.5.0_06/include/linux -Wall -Wstrict-prototypes -c jsvc-unix.c -o jsvc-unix.o In Datei, eingefügt von jsvc.h:20, von jsvc-unix.c:17: /usr/include/stdio.h:34:21: stddef.h: Datei oder Verzeichnis nicht gefunden In Datei, eingefügt von /usr/include/stdio.h:36, von jsvc.h:20, von jsvc-unix.c:17: /usr/include/bits/types.h:31:20: stddef.h: Datei oder Verzeichnis nicht gefunden In Datei, eingefügt von /usr/include/libio.h:32, von /usr/include/stdio.h:72, von jsvc.h:20, von jsvc-unix.c:17: /usr/include/_G_config.h:14:20: stddef.h: Datei oder Verzeichnis nicht gefunden In Datei, eingefügt von /usr/include/_G_config.h:24, von /usr/include/libio.h:32, von /usr/include/stdio.h:72, von jsvc.h:20, von jsvc-unix.c:17: /usr/include/wchar.h:48:20: stddef.h: Datei oder Verzeichnis nicht gefunden In Datei, eingefügt von /usr/include/gconv.h:28, von /usr/include/_G_config.h:44, von /usr/include/libio.h:32, von /usr/include/stdio.h:72, von jsvc.h:20, von jsvc-unix.c:17: /usr/include/wchar.h:48:20: stddef.h: Datei oder Verzeichnis nicht gefunden In Datei, eingefügt von /usr/include/_G_config.h:44, von /usr/include/libio.h:32, von /usr/include/stdio.h:72, von jsvc.h:20, von jsvc-unix.c:17: /usr/include/gconv.h:31:20: stddef.h: Datei oder Verzeichnis nicht gefunden In file included from /usr/include/_G_config.h:44, from /usr/include/libio.h:32, from /usr/include/stdio.h:72, from jsvc.h:20, from jsvc-unix.c:17: /usr/include/gconv.h:72: error: Syntaxfehler before size_t /usr/include/gconv.h:88: error: Syntaxfehler before size_t /usr/include/gconv.h:97: error: Syntaxfehler before size_t /usr/include/gconv.h:174: error: Syntaxfehler before size_t /usr/include/gconv.h:177: error: Syntaxfehler before '}' token In file included from /usr/include/libio.h:32, from /usr/include/stdio.h:72, from jsvc.h:20, from jsvc-unix.c:17: /usr/include/_G_config.h:47: error: field `__cd' has incomplete type /usr/include/_G_config.h:50: error: field `__cd' has incomplete type In Datei, eingefügt von /usr/include/stdio.h:72, von jsvc.h:20, von jsvc-unix.c:17: /usr/include/libio.h:53:21: stdarg.h: Datei oder Verzeichnis nicht gefunden In file included from /usr/include/stdio.h:72, from jsvc.h:20, from jsvc-unix.c:17: /usr/include/libio.h:351: error: Syntaxfehler before size_t /usr/include/libio.h:360: error: Syntaxfehler before size_t /usr/include/libio.h:464: error: Syntaxfehler before __gnuc_va_list /usr/include/libio.h:466: error: Syntaxfehler before __gnuc_va_list /usr/include/libio.h:468: error: Syntaxfehler before _IO_sgetn /usr/include/libio.h:468: error: Syntaxfehler before size_t In file included from jsvc.h:20, from jsvc-unix.c:17: /usr/include/stdio.h:302: error: Syntaxfehler before size_t /usr/include/stdio.h:309: error: Syntaxfehler before size_t /usr/include/stdio.h:337: error: Syntaxfehler before __gnuc_va_list /usr/include/stdio.h:342: error: Syntaxfehler before __gnuc_va_list /usr/include/stdio.h:345: error: Syntaxfehler before __gnuc_va_list /usr/include/stdio.h:351: error: Syntaxfehler before size_t
Re: install tomcat under linux (java problem)
Hi, From: Hannes Hein [mailto:[EMAIL PROTECTED] Subject: install tomcat under linux (java problem) I try to install tomcat in the way it is described here: http://tomcat.apache.org/tomcat-5.5-doc/setup.html Note that this section is for running Tomcat as a daemon; does Tomcat run properly on your system when using the standard script (startup.sh)? See RUNNING.txt in the Tomcat home directory. sorry I forgot to tell you that tomcat runs properly if I use the startup.sh script. I have just the daemon compile error problem now. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: install tomcat under linux (java problem)
Hallo Hannes! Hannes Hein wrote: Yes. javac runs correctly. jsvc is a C program so you don't need a java compiler for building it. The problem 'configure: error: installation or configuration problem: javac cannot compile' is solved now as java runs correctly, but it still doesn't compile the sources and I have absolutely no idea why (see attached file for make output). [...] callisto:/srv/apache-tomcat-5.5.15/bin/jsvc-src# make make -C native all make[1]: Entering directory `/srv/apache-tomcat-5.5.15/bin/jsvc-src/native' gcc -g -O2 -DOS_LINUX -DDSO_DLFCN -DCPU=\i386\ -I/usr/local/java/jdk1.5.0_06/include -I/usr/local/java/jdk1.5.0_06/include/linux -Wall -Wstrict-prototypes -c jsvc-unix.c -o jsvc-unix.o In Datei, eingefügt von jsvc.h:20, von jsvc-unix.c:17: /usr/include/stdio.h:34:21: stddef.h: Datei oder Verzeichnis nicht gefunden [...] For those who don't speak German: Datei oder Verzeichnis nicht gefunden translates to File or directory not found. My guess is that something is wrong with your C development tools. Perhaps the configure-script could not find your headers as there are no entries in the gcc output containing something like -I/usr/include. Are you sure you have your libraries set up properly? Check whether your compiler works by compiling following program: -- #include stdio.h int main(){printf(works\n);} -- Command line: cc -o c-test c-test.c Try to clean your source tree and rerun ./configure. Kind regards, Wolfgang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: install tomcat under linux (java problem)
Hallo Wolfgang, there is no longer a java problem (sorry but the thread began with that problem). callisto:/srv/apache-tomcat-5.5.15/bin/jsvc-src# make make -C native all make[1]: Entering directory `/srv/apache-tomcat-5.5.15/bin/jsvc-src/native' gcc -g -O2 -DOS_LINUX -DDSO_DLFCN -DCPU=\i386\ -I/usr/local/java/jdk1.5.0_06/include -I/usr/local/java/jdk1.5.0_06/include/linux -Wall -Wstrict-prototypes -c jsvc-unix.c -o jsvc-unix.o In Datei, eingefügt von jsvc.h:20, von jsvc-unix.c:17: /usr/include/stdio.h:34:21: stddef.h: Datei oder Verzeichnis nicht gefunden [...] For those who don't speak German: Datei oder Verzeichnis nicht gefunden translates to File or directory not found. My guess is that something is wrong with your C development tools. Perhaps the configure-script could not find your headers as there are no entries in the gcc output containing something like -I/usr/include. Are you sure you have your libraries set up properly? Check whether your compiler works by compiling following program: -- #include stdio.h int main(){printf(works\n);} -- Command line: cc -o c-test c-test.c I tryed your simple code and in fact is seems to be a problem with the header files. That means the libraries aren't set up properly. But I always used SuSE Linux before, and SuSE is very easy and does anything necessary for you, so my problem is now: I don't know which libaries I have to install to compile the tomcat daemon. Hannes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: install tomcat under linux (java problem)
May I suggest you start a new thread (new email) with the appropriate subject? It helps prevent the erroneous replies as well as helps in future searches through the achieves. Additionally many list members watch the threads by the subject and may be ignoring this thread and yet have the answer to your current problem. - Original Message - From: Hannes Hein [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, February 12, 2006 4:10 PM Subject: Re: install tomcat under linux (java problem) Hallo Wolfgang, there is no longer a java problem (sorry but the thread began with that problem). callisto:/srv/apache-tomcat-5.5.15/bin/jsvc-src# make make -C native all make[1]: Entering directory `/srv/apache-tomcat-5.5.15/bin/jsvc-src/native' cc -g -O2 -DOS_LINUX -DDSO_DLFCN -DCPU=\i386\ -I/usr/local/java/jdk1.5.0_06/include -I/usr/local/java/jdk1.5.0_06/include/linux -Wall -Wstrict-prototypes -c jsvc-unix.c -o jsvc-unix.o In Datei, eingefügt von jsvc.h:20, von jsvc-unix.c:17: /usr/include/stdio.h:34:21: stddef.h: Datei oder Verzeichnis nicht gefunden [...] For those who don't speak German: Datei oder Verzeichnis nicht gefunden translates to File or directory not found. My guess is that something is wrong with your C development tools. Perhaps the configure-script could not find your headers as there are no entries in the gcc output containing something like -I/usr/include. Are you sure you have your libraries set up properly? Check whether your compiler works by compiling following program: -- #include stdio.h int main(){printf(works\n);} -- Command line: cc -o c-test c-test.c I tryed your simple code and in fact is seems to be a problem with the header files. That means the libraries aren't set up properly. But I always used SuSE Linux before, and SuSE is very easy and does anything necessary for you, so my problem is now: I don't know which libaries I have to install to compile the tomcat daemon. Hannes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]