From: Alan W. I. <ai...@us...> - 2003-10-22 16:57:25
|
On 2003-10-22 08:54-0500 Herng-Jeng Jou wrote: > Hi there, > > I tried CVS 20031019. Compiled, installed ok without problem > Then I tried to test the tk examples using plserver and it work > beautifully. Then I tried using wish, according to the README.tkdemos > file, such as: > $ wish > % lappend auto_path $prefix/lib/plplot$VERSION > % package require Pltk > with appropriate replacement of prefix and VERSION, but I got: > can't find package Pltk > > Same thing happens to other example: > $ wish > % lappend auto_path $prefix/lib/plplot$VERSION > % package require Plplotter > can't find package Plplotter > > Can somebody help to see if this is a problem? I cannot verify your problem here. I am using today's cvs version, which only has one change (gnome driver) relative to your 20031019 version. Here is what I did after a fresh checkout and running an autotools script to bring the tree into the state you find it in the tarball. rm -rf /usr/local/plplot_at/* ./configure --prefix=/usr/local/plplot_at --disable-static > & configure.out; \ make > & make.out ; make install > & make_install.out cd /tmp rm -rf examples cp -a /usr/local/plplot_at/lib/plplot5.2.1/examples/ . cd examples/tk # "make" put in for completeness; but these compiled examples not used in the # wish session below. make wish % lappend auto_path /usr/local/plplot_at/lib/plplot5.2.1 /usr/lib/tcl8.3 /usr/lib /usr/lib/tk8.3 /usr/local/plplot_at/lib/plplot5.2.1 % package require Pltk 5.2.1 % source tkdemos.tcl % 5 % 8 Everything worked fine for the fifth and eighth examples. You probably use a different prefix, you may or may not want to --disable-static (depending on whether you actually use the static libraries which I do not), and your version will not be plplot5.2.1. Is $prefix/bin in your path? Are you using a copy of the _installed_ examples as above? (Joao has recently tried to get the examples to work right in the build tree, but that is not as thoroughly tested as the installed examples way of doing things.) Is your configure default except for the prefix and possibly --disable-static? Note that the default configure options are the most thoroughly tested, and if you are using non-default options, you could be running into a configure bug that we are unaware of. Try default (except for prefix and disable-static) to see if you get the same bad results. Note the rm -rf steps above to insure everything is done in clean trees. I am using tcl/tk 8.3.3 from Debian stable. What is your tcl/tk version? Hope the information above, and my questions help you to sort out what is keeping wish from finding plplot. Alan __________________________ Alan W. Irwin email: ir...@be... phone: 250-727-2902 Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the PLplot scientific plotting software package (plplot.org), the Yorick front-end to PLplot (yplot.sf.net), the Loads of Linux Links project (loll.sf.net), and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |