Sophie

Sophie

distrib > Fedora > 13 > x86_64 > media > updates > by-pkgid > bde97f1793fb4b5ac4b6e6950d3353e2 > files > 695

GMT-doc-4.5.6-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="node256.html">
<LINK REL="up" HREF="node255.html">
<LINK REL="next" HREF="node258.html">
</HEAD>

<BODY  bgcolor="#ffffff">
<!--Navigation Panel-->
<A NAME="tex2html6402"
  HREF="node258.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html6396"
  HREF="node255.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html6392"
  HREF="node256.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html6398"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html6400"
  HREF="node258.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html6403"
  HREF="node258.html">Index</A>
<B> Up:</B> <A NAME="tex2html6397"
  HREF="node255.html">P. Special Operations</A>
<B> Previous:</B> <A NAME="tex2html6393"
  HREF="node256.html">P.1 Running GMT in</A>
 &nbsp; <B>  <A NAME="tex2html6399"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html6401"
  HREF="node258.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

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

<P>
We encourage all <A NAME="tex2html2034"
  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="tex2html2035"
  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="tex2html2036"
  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="34838"></A>
to select their current version should the need to switch arises.  You will find <I>gmtswitch</I><A NAME="34841"></A>
in the top-level <A NAME="tex2html2037"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A>4.x directory; install as explained below.

<P>
Because <A NAME="tex2html2038"
  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="34852"></A> which simplifies switching back and forth
between any number of installed <A NAME="tex2html2039"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> 3-versions and <A NAME="tex2html2040"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> 4.x.  Place the <I>gmtswitch</I><A NAME="34861"></A> Bourne
shell script in your
general executable path (not in one of the <A NAME="tex2html2041"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> bin directories) and run it after you have
finished installing all <A NAME="tex2html2042"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> versions of interest.  The first time you run <I>gmtswitch</I><A NAME="34870"></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="tex2html2043"
  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="34877"></A>):

<OL>
<LI><I>gmtswitch</I><A NAME="34880"></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="34884"></A>
you will be able to switch between versions.  Typing <I>gmtswitch</I><A NAME="34887"></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="34890"></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="34893"></A> or <I>csh</I><A NAME="34896"></A> you may have to type
``rehash'' to initiate the path changes.

<P>

<HR>
<!--Navigation Panel-->
<A NAME="tex2html6402"
  HREF="node258.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html6396"
  HREF="node255.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html6392"
  HREF="node256.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html6398"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html6400"
  HREF="node258.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html6403"
  HREF="node258.html">Index</A>
<B> Up:</B> <A NAME="tex2html6397"
  HREF="node255.html">P. Special Operations</A>
<B> Previous:</B> <A NAME="tex2html6393"
  HREF="node256.html">P.1 Running GMT in</A>
 &nbsp; <B>  <A NAME="tex2html6399"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html6401"
  HREF="node258.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>
Paul Wessel
2011-02-27
</ADDRESS>
</BODY>
</HTML>