[14418] in Athena Bugs
sun4 7.7X: tcl
daemon@ATHENA.MIT.EDU (Petros Komodromos)
Tue Jun 25 21:47:44 1996
To: bugs@MIT.EDU, petros@MIT.EDU
Date: Tue, 25 Jun 1996 21:47:35 EDT
From: Petros Komodromos <petros@MIT.EDU>
System name: w20-575-12
Type and version: SPARC/Classic 7.7X
Display type: cgthree
What were you trying to do?
Use tcl7.5 and tk4.1
What's wrong:
I am trying to use the tcl7.5 and tk 4.1 and I am getting the following
warnings:
tcl shell:
~% tclsh
Tcl_AppInit failed: version mismatch: library
scripts expect Tcl version 7.5b1 or later but the loaded version is
only 106
Similarly with tk:
%wish
tkerror failed to handle background error.
Original error: no more colors left in colormap; changing screen's color model to monochrome
Error in tkerror: invalid command name: "tkerror"
Tcl_AppInit failed: version mismatch: library
scripts expect Tcl version 7.5b1 or later but the loaded version is
only 106
and xf:
xf also gives an error and does not work:
xf &
[1] 14246
~/Mail/inbox% tkerror failed to handle background error.
Original error: no more colors left in colormap; changing screen's color model to monochrome
Error in tkerror: invalid command name: "tkerror"
Tcl_AppInit failed: version mismatch: library
scripts expect Tcl version 7.5b1 or later but the loaded version is
only 106
can't read "tk_strictMotif": no such variable
"set xfConf(strictMotif) $tk_strictMotif..."
(procedure "XFStartup" line 234)
invoked from within
"XFStartup"
(file "/afs/sipb.mit.edu/project/tcl/lib/xf2.3/src/xfmain.tcl" line 1196)
invoked from within
"source /afs/sipb.mit.edu/project/tcl/lib/xf2.3/src/xfmain.tcl"
Before trying to run tcl and tk I load them(%add tcl )
and I set the following:
setenv TCL_LIBRARY /mit/tcl/lib/tcl7.5
setenv TK_LIBRARY /mit/tcl/lib/tk4.1
What should have happened:
Altough there is a directory f the version of tcl and tk that I
would like to use :
/mit/tcl/src/tcl7.5 and /mit/tcl/src/tk4.1
when I execute tclsh the executable is in the directory:
where tclsh
/mit/gnu/arch/sun4m_53/bin/tclsh
/mit/sipb/sun4bin/tclsh
/mit/tcl/arch/sun4m_53/bin/tclsh
in /mit/gnu/arch/sun4m_53/bin/tclsh there is an older version
but I dont know which exactly.
Similarly the wish invokes:
where wish
/mit/cygnus/arch/sun4m_53/bin/wish
/mit/tcl/arch/sun4m_53/bin/wish
which is also an older version ???????
The problems that I get I think are because I am not setting the
variables TCL_LIBRARY and TK_LIBRARY correctly.
I use :
TK_LIBRARY=/mit/tcl/lib/tk4.1
TCL_LIBRARY=/mit/tcl/lib/tcl7.5
since I want to use the latest versions.
It seems taht these versions are not properly installed.
Is there any one who knows more about tcl/tk installation versions and what someone can use on athena and what the env. variables must be set to?
Please describe any relevant documentation references:
Tcl and the Tk Toolkit, by John Ousterhout, published by Addison-Wesley, ISBN
0-201-63337-X. Also available in German as Tcl und Tk, ISBN 3-89319-793-1.
Provides a general introduction to every aspect of Tcl and Tk, including both writing scripts
and writing C extensions. The examples from the book are available on-line in the file
book.examples.Z in the standard distribution areas. Addison-Wesley also has a web page
with additional information about the book (table of contents, reviews, etc.)
Practical Programming in Tcl and Tk, by Brent Welch , published by Prentice Hall, ISBN
0-13-182007-9. This is an example-oriented book about Tcl and Tk programming. The
examples include a general preference package, use of the X resource database, and
user-defined buttons and menus for extensible applications. In addition to the examples,
there are complete summaries of the Tcl 7.4 commands and Tk 4.0 widgets. The sources
for the examples are included in a floppy disk that comes with the book, and you can find
them on-line in the file software/welch/tkbook.tar on the Prentice Hall FTP site.
There is complete set of UNIX man pages describing the Tcl commands implemented by Tcl and
Tk plus the exported C procedures in the Tcl and Tk libraries. Each Tcl and Tk distribution
contains a doc subdirectory with manual pages for that distribution. The man pages are also
available in HTML format at http://www.sunlabs.com/research/tcl/man. In addition, copies of the
manual pages are available via the SCO Web database for Tcl and Tk.
Thanks in advance
Petros Komodromos