On 2007-03-07 03:42-0700 Jerry wrote:

> I just installed 5.7.2 whereas my previous installation was 5.5.3.
> How do I get rid of the old versions of everything now that they
> exist in directories alongside the new version? Or should I have
> uninstalled the the old version before installing the new version? Or
> should I just ignore the problem?

Hi Jerry:

In general it is not a good idea to mix versions together with the same
install-tree prefix.  So specify unique install-tree prefixes (using the
-DCMAKE_INSTALL_PREFIX cmake option) for each different version you want to
keep.  Without doubt, -DCMAKE_INSTALL_PREFIX is the most important cmake
option, and you should use it every time you invoke cmake.

Furthermore, suppose you have installed 5.7.2 in the past with the unique
install-tree prefix /home/jerry/plplot-5.7.2_install.  Now you may not
recall the exact configuration you had for that install so that old install
tree might be filled with plplot files that are irrelevant (or which may
even interfere) with your new 5.7.2 install.  Of course, one way to avoid
this stale install file problem is to use a separate install tree prefix

(e.g., 
/home/jerry/plplot-5.7.2_installa
/home/jerry/plplot-5.7.2_installb
/home/jerry/plplot-5.7.2_installb
...)

for each separate PLplot-5.7.2 configure, build, and install that you do.
Probably a more practical course when you are rebuilding and reinstalling a
particular version of PLplot is simply to remove the whole install tree
(e.g., with the rm -rf command) before each invocation of "make install".
Such convenient wholesale removal is only possible because you used a unique
install-tree prefix such as /home/jerry/plplot-5.7.2_install.  (If you had
used a generic install prefix such as "/usr/local", then normally there
would be other files from non-PLplot installs that are mixed into that tree
which you would not want to remove.)

Of course, that still leaves the question of what to do about your current
bad situation with various PLplot versions mixed together (possibly with
non-PLplot files) into the same install tree.  If you built and installed
PLplot-5.5.3 using the old ./configure; make; make install trio of commands,
then there is also a "make uninstall" command available to you.  However, I
would only use that in an emergency (such as this) since blindly removing
files without reviewing them is considered to be dangerous. For modern
PLplot, there is no "make uninstall" command for exactly this reason.
Instead, there is a manifest of what was installed in install_manifest.txt.
Once you have looked at that list and are satisfied that removing all those
files will cause no harm, then you can conveniently go ahead with such
removal with, e.g.,

rm `cat install_manifest.txt`

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 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
__________________________

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Plplot-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to