1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 99.2beta8 (1.46)
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>L.2 Cygwin and GMT</TITLE>
<META NAME="description" CONTENT="L.2 Cygwin and GMT">
<META NAME="keywords" CONTENT="GMT_Docs">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v99.2beta8">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="GMT_Docs.css">
<LINK REL="next" HREF="node145.html">
<LINK REL="previous" HREF="node143.html">
<LINK REL="up" HREF="node142.html">
<LINK REL="next" HREF="node145.html">
</HEAD>
<BODY bgcolor="#ffffff">
<!--Navigation Panel-->
<A NAME="tex2html3084"
HREF="node145.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.gif"></A>
<A NAME="tex2html3078"
HREF="node142.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.gif"></A>
<A NAME="tex2html3072"
HREF="node143.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.gif"></A>
<A NAME="tex2html3080"
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.gif"></A>
<A NAME="tex2html3082"
HREF="node149.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.gif"></A>
<BR>
<B> Next:</B> <A NAME="tex2html3085"
HREF="node145.html">L.3 DJGPP and GMT</A>
<B> Up:</B> <A NAME="tex2html3079"
HREF="node142.html">L. GMT on non-UNIX</A>
<B> Previous:</B> <A NAME="tex2html3073"
HREF="node143.html">L.1 Introduction</A>
  <B> <A NAME="tex2html3081"
HREF="node1.html">Contents</A></B>
  <B> <A NAME="tex2html3083"
HREF="node149.html">Index</A></B>
<BR>
<BR>
<!--End of Navigation Panel-->
<H1><A NAME="SECTION002720000000000000000">
L.2 Cygwin and </A><A NAME="tex2html746"
HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A>
</H1>
<A NAME="16119"></A>
<A NAME="16120"></A>
<P>
Because <A NAME="tex2html752"
HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> works best in conjugation with <I>UNIX</I> tools we
suggest you install <A NAME="tex2html753"
HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> using the Cygwin product from
Cygnus (now assimilated by Redhat, Inc.). Note there are two versions:
One is commercially available and contains a few more tools,
in particular the <I>tcsh</I><A NAME="16240"></A> shell, but is only available for
WIndows NT or Windows 2000. The other is the free version for any Windows version
and it uses the Bourne Again shell <I>bash</I><A NAME="16245"></A>. Here we will
assume you have the free version and will be using this shell.
You also have access to most standard GNU development tools such
as compilers and text processing tools (<I>awk</I><A NAME="16250"></A>,
<I>grep</I><A NAME="16255"></A>, <I>sed</I><A NAME="16260"></A>, etc.).
If you dont mind learning <I>bash</I><A NAME="16265"></A> scripting<A NAME="tex2html748"
HREF="footnode.html#foot16174"><SUP>L.3</SUP></A> you can write any
type of <A NAME="tex2html754"
HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> scripts (The <A NAME="tex2html755"
HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> examples also come in
<I>bash</I><A NAME="16276"></A> form).
<P>
Follow the instructions on the Cygwin page<A NAME="tex2html749"
HREF="footnode.html#foot16129"><SUP>L.4</SUP></A> on how
to install the executables; it takes an effort not to do this correctly.
<P>
Once you are up and running under Cygwin, you may install <A NAME="tex2html756"
HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A>
the same way you do under any other <I>UNIX</I> platform by either
running the automated install via <I>install_gmt</I><A NAME="16285"></A> or manually
running configure first, then type make all.
For details see the general README file.
After installing you should make a few
changes to the setup:
<P>
<OL>
<LI>In Windows/DOS, set the two environmental variables
HOME and GMTHOME to point to your ``home'' directory while
running Cygwin and the GMT install directory. These two
parameters should be defined
in the <U>autoexec.bat</U> file and could be something
like<A NAME="tex2html750"
HREF="footnode.html#foot16175"><SUP>L.5</SUP></A>
<P>
<UL>
<LI><TT>SET HOME=C:<IMG
WIDTH="12" HEIGHT="31" ALIGN="MIDDLE" BORDER="0"
SRC="img49.gif"
ALT="$\backslash$">USER</TT>
</LI>
<LI><TT>SET GMTHOME=C:<IMG
WIDTH="12" HEIGHT="31" ALIGN="MIDDLE" BORDER="0"
SRC="img49.gif"
ALT="$\backslash$">GMT</TT>
</LI>
</UL>
<P>
Under Windows NT or 2000 you set these environmental parameters via the
System control panel.
<P>
</LI>
<LI>In this home directory, make the file <U>.bashrc</U> where
you place a few definitions:
<P>
<UL>
<LI>HOME=//C/USER
</LI>
<LI>GMTHOME=//C/GMT
</LI>
</UL>
<P>
</LI>
</OL>
<P>
<A NAME="16142"></A>
<A NAME="16143"></A>
<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html3084"
HREF="node145.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.gif"></A>
<A NAME="tex2html3078"
HREF="node142.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.gif"></A>
<A NAME="tex2html3072"
HREF="node143.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.gif"></A>
<A NAME="tex2html3080"
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.gif"></A>
<A NAME="tex2html3082"
HREF="node149.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.gif"></A>
<BR>
<B> Next:</B> <A NAME="tex2html3085"
HREF="node145.html">L.3 DJGPP and GMT</A>
<B> Up:</B> <A NAME="tex2html3079"
HREF="node142.html">L. GMT on non-UNIX</A>
<B> Previous:</B> <A NAME="tex2html3073"
HREF="node143.html">L.1 Introduction</A>
  <B> <A NAME="tex2html3081"
HREF="node1.html">Contents</A></B>
  <B> <A NAME="tex2html3083"
HREF="node149.html">Index</A></B>
<!--End of Navigation Panel-->
<ADDRESS>
Paul Wessel
2001-04-18
</ADDRESS>
</BODY>
</HTML>
|