When you executed the "make install" rule did it run the test case
correctly? It should print something like "Installed program is
working correctly".
If that worked but you can not load tclblend.so once it is installed,
then you must be using the wrong tclsh. You can not just load Tcl Blend
into any old tcl shell lying around on the system, it needs to be loaded
into the one you just built and linked with.
You are using the jtclsh script that gets installed into $exec_prefix/bin
right? The jtclsh script will "do all the right things" to set up
env vars and start the correct version of tclsh.
You can also test out the version of Tcl Blend "in place" without having
to install it by running the "make shell" rule. That rule will pop you
into the correct tclsh with all the env vars correctly.
Mo Dejong
Red Hat Inc.
On Tue, 8 Feb 2000, Mike Schneider wrote:
> I added that to no avail, as per below.
>
>
>
> tcl>package require java
>
> called loadtclblend "/usr/local/lib/tclblend"
> tclblend_shlib is libtclblend.so
> found tclblend.jar at /usr/local/lib/tclblend/../tclblend.jar
> found tcljava.jar at /usr/local/lib/tclblend/../tcljava.jar
> found tcljava.jar on env(CLASSPATH) at
> /usr/local/lib/tclblend/../tcljava.jar
> found tclblend.jar on env(CLASSPATH) at
> /usr/local/lib/tclblend/../tclblend.jar
> before "load libtclblend.so", env(CLASSPATH) was
> "/usr/local/lib/tclblend/../tcljava.jar:/usr/local/lib/tclblend/../tclblend.
> jar:"
> Attempting to figure out why "load libtclblend.so" failed
> currently LD_LIBRARY_PATH is set to
> "/usr1/schneider/tclBlend1.2.5/unix:/usr1/schneider/jdk1.2.2/jre/lib/i386:/u
> sr/local/lib:/usr1/schneider/jdk1.2.2/jre/lib/i386/classic"
> found duplicate libtclblend.so on LD_LIBRARY_PATH at
> "/usr/local/lib/libtclblend.so", first was at
> /usr1/schneider/tclBlend1.2.5/unix/libtclblend.so
> found libtclblend.so on LD_LIBRARY_PATH at
> "/usr1/schneider/tclBlend1.2.5/unix/libtclblend.so".
> found libjava.so on LD_LIBRARY_PATH at
> "/usr1/schneider/jdk1.2.2/jre/lib/i386/libjava.so".
> Error: "load libtclblend.so" failed:
> couldn't load file "libtclblend.so": libtclblend.so: cannot open shared
> object file: No such file or directory
> tcl>
> tcl>
> tcl>puts $auto_path
> /usr/lib/tcl8.0 /usr/lib /usr/lib/tclX8.0.4 /usr/local/lib/tclblend
> tcl>
> tcl>puts $env(LD_LIBRARY_PATH)
> /usr1/schneider/tclBlend1.2.5/unix:/usr1/schneider/jdk1.2.2/jre/lib/i386:/us
> r/local/lib:/usr1/schneider/jdk1.2.2/jre/lib/i386/classic
> tcl>
>
>
>
> At 12:49 PM 2/8/00 -0800, Scott Redman wrote:
> >There is a "classic" directory for JDK 1.2 that also needs to
> >be in your LD_LIBRARY_PATH.
> >
> >-- Scott
> >
> >-----Original Message-----
> >From: Mike Schneider [mailto:[EMAIL PROTECTED]]
> >Sent: Tuesday, February 08, 2000 12:15 PM
> >To: [EMAIL PROTECTED]
> >Subject: [Tcl Java] Re: [Tcl Java] RE: [Tcl Java] Problems compiling
> >tclblend under Linux
> >
> >
> >OK, fixed that one. (Actually figured it out myself ;) Now when I try to
> >load the java package in tcl, I get the
> >following (debug info turned on):
> >
> >% package require java
> >
> >called loadtclblend "/usr/local/lib/tclblend"
> >tclblend_shlib is libtclblend.so
> >found tclblend.jar at /usr/local/lib/tclblend/../tclblend.jar
> >found tcljava.jar at /usr/local/lib/tclblend/../tcljava.jar
> >found tcljava.jar on env(CLASSPATH) at
> >/usr/local/lib/tclblend/../tcljava.jar
> >found tclblend.jar on env(CLASSPATH) at
> >/usr/local/lib/tclblend/../tclblend.jar
> >before "load libtclblend.so", env(CLASSPATH) was
> >"/usr/local/lib/tclblend/../tcljava.jar:/usr/local/lib/tclblend/../tclblend.
> >jar:"
> >Attempting to figure out why "load libtclblend.so" failed
> >currently LD_LIBRARY_PATH is set to
> >"/usr1/schneider/tclBlend1.2.5/unix:/usr1/schneider/jdk1.2.2/jre/lib/i386:/u
> >sr/local/lib"
> >found duplicate libtclblend.so on LD_LIBRARY_PATH at
> >"/usr/local/lib/libtclblend.so", first was at
> >/usr1/schneider/tclBlend1.2.5/unix/libtclblend.so
> >found libtclblend.so on LD_LIBRARY_PATH at
> >"/usr1/schneider/tclBlend1.2.5/unix/libtclblend.so".
> >found libjava.so on LD_LIBRARY_PATH at
> >"/usr1/schneider/jdk1.2.2/jre/lib/i386/libjava.so".
> >"load libtclblend.so" failed:
> > couldn't load file "libtclblend.so": libtclblend.so: cannot open shared
> >object file: No such file or directory
> >%
> >
> >
> >It claims it can't load libtclblend, even though it says it located it.
> >
> >
> >At 11:37 AM 2/8/00 -0800, you wrote:
> > >Try using the --with-jdk=... option to configure
> > >
> > >-----Original Message-----
> > >From: Mike Schneider [mailto:[EMAIL PROTECTED]]
> > >Sent: Tuesday, February 08, 2000 10:57 AM
> > >To: [EMAIL PROTECTED]
> > >Subject: [Tcl Java] Problems compiling tclblend under Linux
> > >
> > >
> > >Hello,
> > >I'm trying to compile tclblend under Redhat Linux. I have Kaffe and Sun's
> > >jdk1.2.2 installed. CLASSPATH is set to nothing. Here's the error I get:
> > >
> > >
> > >[mpschnei@peace unix]$ ./configure
> > >loading cache ./config.cache
> > >srcdir is /usr1/schneider/tclBlend1.2.5/unix
> > >checking for javac... /usr/bin/javac
> > >Java found at /usr
> > >checking for zip or jar files to include on CLASSPATH... configure: error:
> > >could not find zip or jar files to include on CLASSPATH.
> > >
> > >What's happening?
> > >
> > >----------------------------------------------------------------
> > >The TclJava mailing list is sponsored by Scriptics Corporation.
> > >To subscribe: send mail to [EMAIL PROTECTED]
> > > with the word SUBSCRIBE as the subject.
> > >To unsubscribe: send mail to [EMAIL PROTECTED]
> > > with the word UNSUBSCRIBE as the subject.
> > >To send to the list, send email to '[EMAIL PROTECTED]'.
> > >An archive is available at
> >http://www.mail-archive.com/tcljava@scriptics.com
> > >
> > >----------------------------------------------------------------
> > >The TclJava mailing list is sponsored by Scriptics Corporation.
> > >To subscribe: send mail to [EMAIL PROTECTED]
> > > with the word SUBSCRIBE as the subject.
> > >To unsubscribe: send mail to [EMAIL PROTECTED]
> > > with the word UNSUBSCRIBE as the subject.
> > >To send to the list, send email to '[EMAIL PROTECTED]'.
> > >An archive is available at
> >http://www.mail-archive.com/tcljava@scriptics.com
> >
> >
> >----------------------------------------------------------------
> >The TclJava mailing list is sponsored by Scriptics Corporation.
> >To subscribe: send mail to [EMAIL PROTECTED]
> > with the word SUBSCRIBE as the subject.
> >To unsubscribe: send mail to [EMAIL PROTECTED]
> > with the word UNSUBSCRIBE as the subject.
> >To send to the list, send email to '[EMAIL PROTECTED]'.
> >An archive is available at http://www.mail-archive.com/tcljava@scriptics.com
> >
> >----------------------------------------------------------------
> >The TclJava mailing list is sponsored by Scriptics Corporation.
> >To subscribe: send mail to [EMAIL PROTECTED]
> > with the word SUBSCRIBE as the subject.
> >To unsubscribe: send mail to [EMAIL PROTECTED]
> > with the word UNSUBSCRIBE as the subject.
> >To send to the list, send email to '[EMAIL PROTECTED]'.
> >An archive is available at http://www.mail-archive.com/tcljava@scriptics.com
>
>
> ----------------------------------------------------------------
> The TclJava mailing list is sponsored by Scriptics Corporation.
> To subscribe: send mail to [EMAIL PROTECTED]
> with the word SUBSCRIBE as the subject.
> To unsubscribe: send mail to [EMAIL PROTECTED]
> with the word UNSUBSCRIBE as the subject.
> To send to the list, send email to '[EMAIL PROTECTED]'.
> An archive is available at http://www.mail-archive.com/tcljava@scriptics.com
>
>
----------------------------------------------------------------
The TclJava mailing list is sponsored by Scriptics Corporation.
To subscribe: send mail to [EMAIL PROTECTED]
with the word SUBSCRIBE as the subject.
To unsubscribe: send mail to [EMAIL PROTECTED]
with the word UNSUBSCRIBE as the subject.
To send to the list, send email to '[EMAIL PROTECTED]'.
An archive is available at http://www.mail-archive.com/tcljava@scriptics.com