I just finished my standard extensive tests (both non-interactive and
interactive) from the plplot/tmp location with nothing installed, and also
from an arbitrary location for an installed version of plplot.
Everything works well except for one glitch when using the
installed version from the arbitrary directory /tmp/examples/tk:
./xtk01 -f tk01
(*AppInit) failed: Can't find a usable plplot.tcl in the following
/tmp/lib/plplot5.1.0/tcl /tmp/examples/library /tmp/library
The problem is the xtk?? example C programmes are compiled right in the
arbitary directory and not installed in /usr/local/plplot/bin. Since
tcl_findLibrary pays attention to the location of the executable it looks in
the wrong places for plplot.tcl.
Note, that if the install $prefix had been /usr rather than
/usr/local/plplot, then the above search by tcl_findLibrary would have
worked. Furthermore, there is a simple workaround for these particular
interactive examples, when you have a prefix other than /usr, namely,
setenv PL_LIBRARY $prefix/lib/plplot5.1.0/tcl
(or export equivalent in bash)
For real C code following the xtk?? examples, the choices are to install
plplot with a prefix of /usr, install your executables in $prefix/bin or
else set the environment variable.
Are these options OK with everybody?
Maurice, will you give this current CVS version a spin (and perhaps even tag
it so we can get back to it) before Vince makes his next round of changes?
phone: 250-727-2902 FAX: 250-721-7715
Dr. Alan W. Irwin
Department of Physics and Astronomy,
University of Victoria, P.O. Box 3055,
Victoria, British Columbia, Canada, V8W 3P6