From: Alan W. I. <ir...@be...> - 2002-09-27 00:00:45
|
On Thu, 26 Sep 2002, Maurice LeBrun wrote: > Alan W. Irwin writes: > > (2) As reported yesterday, I could not get tcldemos.tcl to work under tclsh > > without setting PL_LIBRARY to /usr/local/plplot/lib/plplot5.1.0/tcl. I > > presume this is also a requirement for running tkdemos.tcl under wish > > and runAllDemos.tcl under wish. But should it be? Under tclsh and > > wish I already execute > > > > lappend auto_path /usr/local/plplot/lib/plplot5.1.0 > > > > Thus, shouldn't we be able to find the location of everything internally by > > scanning through the directories in auto_path? We have been through so many > > variations of the tcl/tk install that I cannot remember clearly any more, > > but I believe there were some variations on the theme that did not require > > setting PL_LIBRARY, and I hope we can get back to that. > > I don't know what you mean here. Could you write out the steps that generate > the error so I can look at it? (1) Clean build and install from CVS (same steps I detailed earlier). (2) cp -a /usr/local/plplot/lib/plplot5.1.0/examples/ /tmp (3) cd /tmp/example/tk (4) Put /usr/local/plplot/bin on PATH (required for -dev tk. not sure it is relevant in this case, but that is what I did) (5) Make sure PL_LIBRARY *not* set (unsetenv PL_LIBRARY under tcsh) (6) package require Pltk craps out under wish. wish % lappend auto_path /usr/local/plplot/lib/plplot5.1.0 /usr/lib/tcl8.3 /usr/lib /usr/lib/tk8.3 /usr/local/plplot/lib/plplot5.1.0 % package require Pltk Can't find a usable plplot.tcl in the following directories: /usr/lib/plplot5.1.0/tcl /usr/lib/plplot5.1.0/tcl /lib/plplot5.1.0/tcl /usr/library /library /plplot5.1.0/tcl/library /plplot5.1.0/tcl/library This probably means that plplot wasn't installed properly. .................. OTOH if I set PL_LIBRARY first, everything works fine. setenv PL_LIBRARY /usr/local/plplot/lib/plplot5.1.0/tcl wish % lappend auto_path /usr/local/plplot/lib/plplot5.1.0 /usr/lib/tcl8.3 /usr/lib /usr/lib/tk8.3 /usr/local/plplot/lib/plplot5.1.0 % package require Pltk 5.1.0 % source tkdemos.tcl % 1 % 2 etc. The same story occurs (PL_LIBRARY needs to be set) with tcldemos.tcl under tclsh (and presumably runAllDemos.tcl under wish). Do you get good results without PL_LIBRARY being set? If so, perhaps there is a bug in my tcl/tk version (which is 8.3.3). Alan |