From: Alan W. I. <ir...@be...> - 2002-08-06 21:05:46
|
Here is the revised wish recipe that works for me in plplot/tmp wish % lappend auto_path [pwd] /usr/lib/tcl8.3 /usr/lib /usr/lib/tk8.3 /home/software/plplot_cvs/HEAD/plplot_working5/tmp % package require Plplotter 5.1.0 % source runAllDemos.tcl I can click any example button in the GUI that comes up, and the appropriate example is plotted (with the correct black background so the defaults are working right without having to explicitly source anything). I have just changed examples/tk/README.tkdemos accordingly. Note that the plplot/tmp pkgIndex.tcl has been revised so that set file [file join $dir drivers tkwind_drv[info sharedlibextension]] for both instances. If I go to the installed examples directory, it is a different story. cd /usr/local/plplot/lib/plplot5.1.0/examples/tk 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 Plplotter 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. If I do the same thing with wish_private, where wish_private is a symlink to fool tcl into looking in the /usr/local/plplot tree, i.e., ls -l /usr/local/plplot/bin/wish_private lrwxrwxrwx 1 software software 13 Aug 6 12:28 /usr/local/plplot/bin/wish_private -> /usr/bin/wish* then: wish_private % lappend auto_path /usr/local/plplot/lib/plplot5.1.0 /usr/lib/tcl8.3 /usr/lib /usr/local/plplot/lib /usr/lib/tk8.3 /usr/local/plplot/lib/plplot5.1.0 % package require Plplotter 5.1.0 % source runAllDemos.tcl % invalid command name "x03" That last error message was generated when I clicked the 3rd example button on the GUI that came up. BTW, I followed Vince's instructions and for this test I put pkgIndex.tcl into /usr/local/plplot/lib/plplot5.1.0 (not the tcl subdirectory). For that version I had grep tkwin /usr/local/plplot/lib/plplot5.1.0/pkgIndex.tcl set file [file join $dir ../ libtkwind[info sharedlibextension]] set file [file join $dir ../ libtkwind[info sharedlibextension]] and of course the symlink: ls -l /usr/local/plplot/lib/libtkwind.so lrwxrwxrwx 1 software software 55 Aug 6 12:14 /usr/local/plplot/lib/libtkwind.so -> /usr/local/plplot/lib/plplot5.1.0/drivers/tkwind_drv.so* Time for me to bow out of these tcl install problems associated with wish, and let the experts take over. Maurice, can you verify the problem above and would you be willing to follow up? I would ask Vince, but he doesn't have access to a Linux box. Alan email: ir...@be... phone: 250-727-2902 FAX: 250-721-7715 snail-mail: Dr. Alan W. Irwin Department of Physics and Astronomy, University of Victoria, P.O. Box 3055, Victoria, British Columbia, Canada, V8W 3P6 __________________________ Linux-powered astrophysics __________________________ |