Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > os > by-pkgid > 4b194777eaf705e440bb2ce282d32772 > files > 692

GMT-doc-4.5.3-3.fc14.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="node254.html">
<LINK REL="up" HREF="node253.html">
<LINK REL="next" HREF="node256.html">
</HEAD>

<BODY  bgcolor="#ffffff">
<!--Navigation Panel-->
<A NAME="tex2html6300"
  HREF="node256.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html6294"
  HREF="node253.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html6290"
  HREF="node254.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html6296"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html6298"
  HREF="node256.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html6301"
  HREF="node256.html">Index</A>
<B> Up:</B> <A NAME="tex2html6295"
  HREF="node253.html">P. Special Operations</A>
<B> Previous:</B> <A NAME="tex2html6291"
  HREF="node254.html">P.1 Running GMT in</A>
 &nbsp; <B>  <A NAME="tex2html6297"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html6299"
  HREF="node256.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

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

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

<P>
Because <A NAME="tex2html1972"
  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="34357"></A> which simplifies switching back and forth
between any number of installed <A NAME="tex2html1973"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> 3-versions and <A NAME="tex2html1974"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> 4.x.  Place the <I>gmtswitch</I><A NAME="34366"></A> Bourne
shell script in your
general executable path (not in one of the <A NAME="tex2html1975"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> bin directories) and run it after you have
finished installing all <A NAME="tex2html1976"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> versions of interest.  The first time you run <I>gmtswitch</I><A NAME="34375"></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="tex2html1977"
  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="34382"></A>):

<OL>
<LI><I>gmtswitch</I><A NAME="34385"></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="34389"></A>
you will be able to switch between versions.  Typing <I>gmtswitch</I><A NAME="34392"></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="34395"></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="34398"></A> or <I>csh</I><A NAME="34401"></A> you may have to type
``rehash'' to initiate the path changes.

<P>

<HR>
<!--Navigation Panel-->
<A NAME="tex2html6300"
  HREF="node256.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html6294"
  HREF="node253.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html6290"
  HREF="node254.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html6296"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html6298"
  HREF="node256.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html6301"
  HREF="node256.html">Index</A>
<B> Up:</B> <A NAME="tex2html6295"
  HREF="node253.html">P. Special Operations</A>
<B> Previous:</B> <A NAME="tex2html6291"
  HREF="node254.html">P.1 Running GMT in</A>
 &nbsp; <B>  <A NAME="tex2html6297"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html6299"
  HREF="node256.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>
Paul Wessel
2010-07-14
</ADDRESS>
</BODY>
</HTML>