|
From: Maurice L. <mj...@ga...> - 2002-08-06 01:30:03
|
Maurice LeBrun writes: > Maurice LeBrun writes: > > Unfortunately there are still problems, i.e. from the tmp directory: > > > > $ wish > > % source pldefaults.tcl > > % load drivers/tkwin_drv.so Plplotter > > % package provide Plplotter 5.1.0 > > % source runAllDemos.tcl > > % couldn't read file "/home/mjl/gts/lib/plplot5.1.0/tcl/x01.tcl": no such file or directory > > > > (note that $prefix=/home/mjl/gts in this case) > > > > so clearly the demo is looking in the wrong place for the example programs. > > Not even the right place under $prefix (should be > > $prefix/lib/plplot5.1.0/examples/tcl). > > I traced this back to $prefix/lib/plplot5.1.0/tcl/tclIndex being basically the > same one as in the tmp dir, which is wrong. I'll check into why this is > occuring. More info. From the tmp dir: $ wish % puts $auto_path /usr/lib/tcl8.3 /usr/lib /home/mjl/gts/lib /usr/lib/tk8.3 % source pldefaults.tcl % puts $auto_path /usr/lib/tcl8.3 /usr/lib /home/mjl/gts/lib /usr/lib/tk8.3 % load drivers/tkwin_drv.so Plplotter % puts $auto_path /usr/lib/tcl8.3 /usr/lib /home/mjl/gts/lib /usr/lib/tk8.3 /home/mjl/gts/lib/plplot5.1.0/tcl So it's the pkg load that modifies auto_path, adding $prefix/lib/plplot5.1.0/tcl. So far so good. The problem is then that the tmp/tclIndex file is copied to that location. Since tmp/ has access to all the *.tcl files, tclIndex contains references to all of them. But then it is not correct for the install dir. A proper tclIndex file needs to be made-in / copied-to that dir. -- Maurice LeBrun mj...@ga... Research Organization for Information Science and Technology of Japan (RIST) |