Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > 5764c67416561ab82b35afcf9c650e17 > files > 691

GMT-doc-4.5.2-1.fc13.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 2002-2-1 (1.71)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>P.2 Using both GMT 3 and 4</TITLE>
<META NAME="description" CONTENT="P.2 Using both GMT 3 and 4">
<META NAME="keywords" CONTENT="GMT_Docs">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="GMT_Docs.css">

<LINK REL="previous" HREF="node253.html">
<LINK REL="up" HREF="node252.html">
<LINK REL="next" HREF="node255.html">
</HEAD>

<BODY  bgcolor="#ffffff">
<!--Navigation Panel-->
<A NAME="tex2html6252"
  HREF="node255.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html6246"
  HREF="node252.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html6242"
  HREF="node253.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html6248"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html6250"
  HREF="node255.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html6253"
  HREF="node255.html">Index</A>
<B> Up:</B> <A NAME="tex2html6247"
  HREF="node252.html">P. Special Operations</A>
<B> Previous:</B> <A NAME="tex2html6243"
  HREF="node253.html">P.1 Running GMT in</A>
 &nbsp; <B>  <A NAME="tex2html6249"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html6251"
  HREF="node255.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION003320000000000000000">
P.2 Using both </A><A NAME="tex2html1936"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> 3 and 4
</H1>
<A NAME="33657"></A>

<P>
We encourage all <A NAME="tex2html1938"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> users to start using version 4 immediately; it has been tested extensively by
the <A NAME="tex2html1939"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> team and has benefitted from bug reports for the 3.4.x versions.  Users who still worry about the
new version breaking things may install <A NAME="tex2html1940"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> 3.4.x versions and 4.x and use our utility <I>gmtswitch</I><A NAME="33754"></A>
to select their current version should the need to switch arises.  You will find <I>gmtswitch</I><A NAME="33757"></A>
in the top-level <A NAME="tex2html1941"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A>4.x directory; install as explained below.

<P>
Because <A NAME="tex2html1942"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> 4.x is backwards compatible with the 3.4.x series yet maintains its parameters
and history in separate hidden files (e.g., <U>.gmtdefaults4</U> versus <U>.gmtdefaults</U>)
it is possible to install and use both versions on the same workstation.  To simplify such
setups we supply the utility <I>gmtswitch</I><A NAME="33768"></A> which simplifies switching back and forth
between any number of installed <A NAME="tex2html1943"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> 3-versions and <A NAME="tex2html1944"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> 4.x.  Place the <I>gmtswitch</I><A NAME="33777"></A> Bourne
shell script in your
general executable path (not in one of the <A NAME="tex2html1945"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> bin directories) and run it after you have
finished installing all <A NAME="tex2html1946"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> versions of interest.  The first time you run <I>gmtswitch</I><A NAME="33786"></A>
it will try to find all the available versions installed on your file system.  The versions
found will be listed in the file <U>.gmtversions</U> in your home directory; each line
is the full path to a <A NAME="tex2html1947"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> root directory (e.g., /usr/local/GMT3.4.2).  You may
manually add or remove entries there at any time.  You are then instructed to make two
changes to your environment (the details are shell-dependent but explained by <I>gmtswitch</I><A NAME="33793"></A>):

<OL>
<LI><I>gmtswitch</I><A NAME="33796"></A> creates and maintains a symbolic link <U>this_gmt</U> in your home
directory that will point to a directory with one of the installed GMT versions.
</LI>
<LI>Make sure <B>$HOME</B>/this_gmt/bin is in your executable <B>PATH</B>.
</LI>
</OL>
Make those edits, logout, and log and back in again.  The next time you run <I>gmtswitch</I><A NAME="33800"></A>
you will be able to switch between versions.  Typing <I>gmtswitch</I><A NAME="33803"></A> with no argument will list the
available versions in a numerical menu and prompt you to choose one, whereas <I>gmtswitch</I><A NAME="33806"></A> <I>version</I>
will immediately switch to that version (<I>version</I> must be a piece of unique text making
up the full path to a version, e.g., 3.4.2).  If you use <I>tcsh</I><A NAME="33809"></A> or <I>csh</I><A NAME="33812"></A> you may have to type
``rehash'' to initiate the path changes.

<P>

<HR>
<!--Navigation Panel-->
<A NAME="tex2html6252"
  HREF="node255.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html6246"
  HREF="node252.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html6242"
  HREF="node253.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html6248"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html6250"
  HREF="node255.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html6253"
  HREF="node255.html">Index</A>
<B> Up:</B> <A NAME="tex2html6247"
  HREF="node252.html">P. Special Operations</A>
<B> Previous:</B> <A NAME="tex2html6243"
  HREF="node253.html">P.1 Running GMT in</A>
 &nbsp; <B>  <A NAME="tex2html6249"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html6251"
  HREF="node255.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>
Paul Wessel
2010-01-14
</ADDRESS>
</BODY>
</HTML>