home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!sdd.hp.com!swrinde!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!news.yale.edu!rani!lim
- From: lim@rani.chem.yale.edu (Dongchul Lim)
- Newsgroups: comp.lang.tcl
- Subject: Re: tk_butDown and tk_butUp
- Message-ID: <1992Jul27.172333.12059@news.yale.edu>
- Date: 27 Jul 92 17:23:33 GMT
- References: <1992Jul25.052156.5591@cs.yale.edu>
- Sender: news@news.yale.edu (USENET News System)
- Organization: Yale University
- Lines: 31
- Nntp-Posting-Host: rani.chem.yale.edu
- X-Newsreader: Tin 1.1 PL4
-
- lim@doctor.chem.yale.edu (Dongchul Lim) writes:
- : I compiled tcl6.3 and tk2.1 on our SGI4D running IRIX 4.0.1.
- : Then I tested 'wish' with demo programs.
- : Whenever I tried to click on a button, I got the following
- : error message:
- : tkerror failed to handle background error.
- : Original error: invalid command name "tk_butDown"
- : Error in tkerror: invalid command name "tkerror"
- :
- : Does this mean 'tk_butDown' command desn't exist?
- : Or have I done something wrong with compilation?
- : -dcl
- :
- : --
-
- I'm posting this for the people who might have the same
- probelm.
- Thanks to people who replied. Most of them pointed out that
- library directory might have not been installed properly.
- In fact, there's nothing wrong with library path. When I
- compiled tcl and tk, I redefined TCL_LIBRARY and TK_LIBRARY
- (something like /usr/people/lim/lib) in Makefiles, because
- I don't have a root access so I can't install them in
- /usr/local/lib. Later I put all *.tcl, libtcl.a and libtk.a
- in the library directory (as defined by TK_LIBRARY and TCL_
- LIBRARY). Now 'wish -f demo.tk' will work fine? Not on my
- system (SGI IRIX 4.0.1). Problem was that some tcl scripts
- (in my case, button.tcl) were not loaded automatically.
- As Justin Seiferth indicated, after I concatenated button.tcl
- to tk.tcl, problem was solved.
- -dcl
-