home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / tcl / 1047 < prev    next >
Encoding:
Internet Message Format  |  1992-07-27  |  1.8 KB

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