From: Maurice L. <mj...@ga...> - 2002-07-02 09:10:58
|
Alan W. Irwin writes: > On Mon, 1 Jul 2002, Maurice LeBrun wrote: > > > Alan W. Irwin writes: > > > On Mon, 1 Jul 2002, Vince Darley wrote: > > > > > > > PL_LIBRARY is the environment variable you can set (see tclAPI.c: > > > > static char initScript[] = > > > > "tcl_findLibrary plplot 5.1 \"\" plplot.tcl PL_LIBRARY pllibrary"; > > > > ). Alternatively the 'pllibrary' Tcl variable can be set. > > > > > > > > > > OK. > > > > > > setenv PL_LIBRARY . > > > > > > made everything work fine in plplot/tmp. You will probably have to set that > > > environment variable to something else for the installed version to work on > > > Linux if you use a non-standard prefix. > > > > I don't like this at all. Why isn't the current directory being searched? > > I agree it is slightly inconvenient for users to set an environment variable > so this should ultimately be fixed. > > What specifically do you suggest? I was tempted to put a "." in the list > that Vince mentioned above, but I wasn't sure that was the right syntax to > use or even if tcl experts such as yourself really did want the local > directory always searched for this file or if so, in what order? For > example, there might be security implications in always automatically > searching the current directory first (or at all) since it is a very similar > situation to putting "." in your path. Anyhow, I would appreciate you and > Vince thinking about all this and making the final decision. Setting PL_LIBRARY is the best solution but I think "." should be searched last, as a last-ditch effort to find plplot.tcl. Just so that you don't ever have to set PL_LIBRARY if all you're doing is building/testing. -- Maurice LeBrun mj...@ga... Research Organization for Information Science and Technology of Japan (RIST) |