swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help needed!


From: glen e. p. ropella
Subject: Re: help needed!
Date: Tue, 26 Nov 1996 04:55:14 -0700

> -- error: TkExtra (instance)
> can't read "tk_library": no such variable
>     while executing
> "file exists $tk_library..."
>     invoked from within
> "if [file exists $tk_library..."
> IOT trap (core dumped)
> 
> If anyone has an idea I would be glad to hear it.
> (I am working on a SPARC-10 running SUNOS 4.1.4)
>                                                   Elad Offer

Elad, 
It looks like your environment is not set up properly.
When you installed Tcl/Tk, a standard variable, tk_library,
should have been defined.  Normally, you can find out what
it's set to by doing:

glen:~$ wish
% echo $tk_library
/usr/lib/tk4.1
%

So, mine is set to /usr/lib/tk4.1, which exists in my directory
tree.  If yours is not set or set to a directory that doesn't
exist, then you can set the TK_LIBRARY environment variable to
point to the directory in which the following files reside:

glen:~$ ls /usr/lib/tk4.1
bgerror.tcl   dialog.tcl    menu.tcl      prolog.ps     tearoff.tcl
button.tcl    entry.tcl     obsolete.tcl  scale.tcl     text.tcl
console.tcl   focus.tcl     optMenu.tcl   scrlbar.tcl   tk.tcl
demos/        listbox.tcl   palette.tcl   tclIndex      tkAppInit.c

This, of course, assumes you're using tk4.1.  The tk4.0 directory
looks like:

glen:~$ ls /usr/lib/tk4.0
button.tcl      focus.tcl       obsolete.tcl    scale.tcl       text.tcl
demos/          license.terms   optionMenu.tcl  scrollbar.tcl   tk.tcl
dialog.tcl      listbox.tcl     palette.tcl     tclIndex        tkerror.tcl
entry.tcl       menu.tcl        prolog.ps       tearoff.tcl

Let me know if that doesn't fix the problem.  This has been
asked before and if it is the fix, then I need to make it
an FAQ.

glen


reply via email to

[Prev in Thread] Current Thread [Next in Thread]