From: Alan W. I. <ir...@be...> - 2009-11-13 16:44:20
|
On 2009-11-13 09:30+0800 Ludovic Angot wrote: > Hello Alan, [...] > # tar zxvf plplot-5.9.5.tar.gz > # mkdir build_directory > # cd build_directory/ > # cmake -DCMAKE_INSTALL_PREFIX:PATH=/home/ludovic/Programs/plplot/plplot-5.9.5/install_directory/ > .. > # make > # make install [...] > Let's see where we are: > # pwd > /home/ludovic/Programs/plplot/plplot-5.9.5 > We copy the examples into a temporary directory: > # cp -a /home/ludovic/Programs/plplot/plplot-5.9.5/examples > /home/ludovic/Programs/plplot/plplot-5.9.5/tmp > > # cd tmp/examples You have used an incorrect location for the installed examples which is the source of your further difficulties. Note from above that your install prefix is /home/ludovic/Programs/plplot/plplot-5.9.5/install_directory Thus, the installed location of the examples (created by the "make install" above) is /home/ludovic/Programs/plplot/plplot-5.9.5/install_directory/share/plplot5.9.5/examples Instead, above (and also in your further attempts with the new alternative build and test system for the installed examples) I believe you used the source-tree location of the examples which is something completely different (which is why it didn't work). Just to remind you of the distinctions between the various trees, the source tree is what you unpack from the tarball (or create with svn checkout), the build tree is where you build the software, and the install tree is where the essential subset of the build tree is stored (by "make install" using the prefix set by -DCMAKE_INSTALL_PREFIX) in a nicely organized fashion. It is a good idea to keep source tree, build tree, and install tree completely separate from each other (which allows removing any one of them without interfering with the others). Thus, above, I believe your source-tree prefix (the top-level directory in the tree) was /home/ludovic/Programs/plplot/plplot-5.9.5 your build-tree prefix was /home/ludovic/Programs/plplot/build_directory and your install-tree prefix was /home/ludovic/Programs/plplot/plplot-5.9.5/install_directory The first two are fine, but a better location for the last (so it is not destroyed when you remove the source tree) is /home/ludovic/Programs/plplot/install_directory Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |