Thread: [tcljava-user] problems installing tclBlend on Linux
Brought to you by:
mdejong
From: Cargo, D. <Dav...@Xi...> - 2005-10-18 20:04:14
|
I'm trying to install tclBlend (and therefore tcl and the thread package) on the following Linux system: SUSE Linux Enterprise Server 9 SP2 OS. Dual 2.8 GHz Xeon processors. Because SUSE had Tcl 8.4.6 installed, I went with Tcl/Tk 8.4.6. The java JDK used is the IBMJava2-1.4.2 package from SUSE's repository. (With this JDK, jacl built OK, but now I see that if I "make test" it gets to tcl/stack.test and then errors out with "make: *** [test_jacl.exec] Error 139".) The tcl built OK and passed its tests (with threads enabled). The thread package built OK and passed its tests. [/usr/local/src/tclBlend1.3.2]# ./configure --with-tcl=/usr/local/src/tcl8.4.6 --with-thread=/usr/local/src/thread2.6.2 srcdir is /usr/local/src/tclBlend1.3.2 checking for Tcl build in /usr/local/src/tcl8.4.6 checking for Thread build in /usr/local/src/thread2.6.2 Tcl executable /usr/local/src/tcl8.4.6/unix/tclsh works Tcl was compiled with Thread support checking for jikes... no checking for javac... /usr/lib/java/bin/javac checking for zip or jar files to include on CLASSPATH... /usr/lib/java/jre/lib/core.jar checking to see if the java compiler works... yes checking to see if the java compiler accepts forward slashes... yes Java found in /usr/lib/java checking type of jvm... jdk checking java API version... 1.3 checking for java... /usr/lib/java/bin/java checking for java_g... no checking for javah... /usr/lib/java/bin/javah checking for jar... /usr/lib/java/bin/jar checking for jdb... /usr/lib/java/bin/jdb checking for ddd... /usr/bin/ddd checking for gdb... /usr/bin/gdb checking for gcc... gcc -pipe checking for C compiler default output... 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 -pipe accepts -g... yes checking for gcc -pipe option to accept ANSI C... none needed Using the following JNI include flags -I/usr/lib/java/include checking to see if jni.h can be included... yes Using the following JNI library flags -lpthread -L/usr/lib/java/jre/bin -ljava -L/usr/lib/java/jre/bin/classic -ljvm -lhpi Using the following runtime library path /usr/lib/java/jre/bin:/usr/lib/java/jre/bin/classic checking to see if we can link a JNI application... no configure: error: could not link file that includes jni.h Either the configure script does not know how to deal with this JVM configuration or the JVM install is broken or corrupted. Would using the standard Sun (which suppose means Blackdown) JDK work better? Is this a known problem? (Not that I could tell from the archives.) Are there specific things I can test myself to get better identification of the problem? Thanks, escargo --- David Cargo Sr. Principal Engineer Email: Dav...@Xi... Office: 952 983 2372 Fax: 952 983 2320 Xiotech Corporation 6455 Flying Cloud Drive Eden Prairie, MN 55344 www.xiotech.com : www.xiotech.com/demo : Toll-Free 866 472 6764 |
From: Mo D. <md...@un...> - 2005-10-18 20:39:10
|
On Tue, 18 Oct 2005 15:04:23 -0500 "Cargo, David" <Dav...@Xi...> wrote: > I'm trying to install tclBlend (and therefore tcl and the thread > package) > on the following Linux system: > > Because SUSE had Tcl 8.4.6 installed, I went with Tcl/Tk 8.4.6. The > java JDK > used is the IBMJava2-1.4.2 package from SUSE's repository. Hello David Please use Tcl/Tk 8.4.11, 8.4.6 is very old by now. It does not matter what version of Tcl the system comes with since Tcl Blend depends on Tcl being compiled with thread support anyway. See: http://wiki.tcl.tk/9993 > Using the following JNI include flags -I/usr/lib/java/include > checking to see if jni.h can be included... yes > Using the following JNI library flags -lpthread -L/usr/lib/java/jre/bin > -ljava -L/usr/lib/java/jre/bin/classic -ljvm -lhpi > Using the following runtime library path > /usr/lib/java/jre/bin:/usr/lib/java/jre/bin/classic > checking to see if we can link a JNI application... no > configure: error: could not link file that includes jni.h > Either the configure script does not know how to deal with > this JVM configuration or the JVM install is broken or The Tcl Blend configure script does not know how to find the libs it needs for your JVM layout. See the file tcljava.m4 and the AC_JAVA_JNI_LIBS function. I know it looks scary, but I need you to take a look at the directory layout of JVM files on your system, and add some checks that look for the specific layout to the AC_JAVA_JNI_LIBS method. If you need some help, please post the results of 'find .' run from the root of the JDK dir and I will help you get started. Also note that you will need to run the autogen.sh script after changing the tcljava.m4 to get a new configure script. cheers Mo DeJong |
From: <PFi...@hb...> - 2005-10-19 04:22:45
|
For what it's worth I built TclBlend successfully on Windows with IBM JDK 1.4.2. P:\>C:\tclBlend\IBMJDK142\bin\java -fullversion java full version "J2RE 1.4.2 IBM Windows 32 build cn1420-20040626" The Tcl components used in the build were: P:\>dir C:\msys\home\PYF\build 17/08/2005 12:21 PM <DIR> tcl8.4.11 17/08/2005 11:50 AM <DIR> tclBlend1.3.2 01/08/2005 02:29 PM <DIR> thread2.6.2 01/08/2005 07:21 PM <DIR> tk8.4.11 Regards. PATRICK FINNEGAN. IBM WebSphere Consultant. HBF Web Master LDAP Administrator. PH: +61 (0)8 9265 6569 FX: +61 (0)8 9265 6380 MB: +61 (0)402 232619 Mo DeJong <md...@un...> Sent by: tcl...@li... 19/10/2005 04:42 AM Please respond to tcl...@li... To tcl...@li... cc Subject Re: [tcljava-user] problems installing tclBlend on Linux On Tue, 18 Oct 2005 15:04:23 -0500 "Cargo, David" <Dav...@Xi...> wrote: > I'm trying to install tclBlend (and therefore tcl and the thread > package) > on the following Linux system: > > Because SUSE had Tcl 8.4.6 installed, I went with Tcl/Tk 8.4.6. The > java JDK > used is the IBMJava2-1.4.2 package from SUSE's repository. Hello David Please use Tcl/Tk 8.4.11, 8.4.6 is very old by now. It does not matter what version of Tcl the system comes with since Tcl Blend depends on Tcl being compiled with thread support anyway. See: http://wiki.tcl.tk/9993 > Using the following JNI include flags -I/usr/lib/java/include > checking to see if jni.h can be included... yes > Using the following JNI library flags -lpthread -L/usr/lib/java/jre/bin > -ljava -L/usr/lib/java/jre/bin/classic -ljvm -lhpi > Using the following runtime library path > /usr/lib/java/jre/bin:/usr/lib/java/jre/bin/classic > checking to see if we can link a JNI application... no > configure: error: could not link file that includes jni.h > Either the configure script does not know how to deal with > this JVM configuration or the JVM install is broken or The Tcl Blend configure script does not know how to find the libs it needs for your JVM layout. See the file tcljava.m4 and the AC_JAVA_JNI_LIBS function. I know it looks scary, but I need you to take a look at the directory layout of JVM files on your system, and add some checks that look for the specific layout to the AC_JAVA_JNI_LIBS method. If you need some help, please post the results of 'find .' run from the root of the JDK dir and I will help you get started. Also note that you will need to run the autogen.sh script after changing the tcljava.m4 to get a new configure script. cheers Mo DeJong ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ tcljava-user mailing list tcl...@li... https://lists.sourceforge.net/lists/listinfo/tcljava-user =================================================== HBF Health Funds Inc. a registered organisation under the National Health Act HBF Insurance Pty Ltd ACN 009 268 277 This email is a confidential communication intended only for the named Addressee(s). If you are not that person any disclosure, copying, distribution or use of this email or the information in it is prohibited. Please notify us immediately by telephone, (+61) 08 9265 6111 or return email and delete this email. The views in this email may be personal to the author and not those of HBF. |