Re: [tkined] Problem installing scotty 2.1.6 on linux

Juergen Schoenwaelder (schoenw@gaertner.de)
Fri, 12 Sep 1997 15:58:47 +0200

Jean Meloche <jean@stat.ubc.ca> said:

Jean> I have tcl7.6 and tk4.2 installed and the configure script
Jean> that came with scotty-2.1.6 confirms the intention to use
Jean> those versions. All compiles fine. I install and invariably
Jean> get

Jean> [root@jlinux unix]# tkined1.4.6
Jean> version conflict for package "Tcl": have 7.6, need 7.5
Jean> while executing
Jean> "load /usr/lib/tkined1.4.6.so"
Jean> ("package ifneeded" script)
Jean> invoked from within
Jean> "package require Tkined 1.4"
Jean> (file "/usr/bin/tkined1.4.6" line 12)

Jean> I read conflicting information about scotty. The README says I
Jean> should really use tcl7.5 and that 7.6 will not work but the
Jean> web page

Jean> http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/

Jean> says it will.

The web page is correct. The README needs some updates. (There are
version numbers scattered around in various places and it is hard to
keep them all in sync.)

Jean> OK. Did I simply mess up the installation, will scotty work or
Jean> not with 7.6 or something else.

There are some problems with version numbers and package numbers and
the ways to check them. The current configure file picks up the
version number from the tclConfig.sh and the tkConfig.sh files.
However, during compilaton, the version number coming from the tcl.h
and the tk.h files are used. These are not always the same, especially
if people choose to install headers in non-standard places. Finally,
there is a problem with the package require command. If you have a Tnm
package version 2.1.6 based on Tcl7.6 and a Tnm package 2.2.0 based on
Tcl8.0 and your script looks like

#!<path>/tclsh7.6

package require Tnm 2.1

you will get 2.2.0 loaded, which does not work and your script will
crash.

This was the theory part. To get your stuff running, check if the
tcl.h file used during the compilation has the correct Tcl version
number or not. It might also be possible that you are loading
tkined 1.4.5 instead of 1.4.6. Try adding a -exact switch to the
package require command in the tkined1.4.6 script.

Juergen

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.