Difference between revisions of "How to get RHESSys"

From Rhessys
Jump to navigationJump to search
Line 9: Line 9:
  
 
'''<pre>$> svn co https://rhessys.svn.sourceforge.net/svnroot/rhessys/trunk/</pre>'''
 
'''<pre>$> svn co https://rhessys.svn.sourceforge.net/svnroot/rhessys/trunk/</pre>'''
 
===Building RHESSys===
 
 
The RHESSys source tree contains three separate tools: rhessys, cf, and g2w. Note that default values
 
are specified in the makefiles. This means if you choose to override them you must specify the
 
<code>-e</code> option when running <code>make</code>. As a convenience there is a makefile at the trunk
 
of the source tree that will build and install all RHESSys programs. Before running that file, make sure that
 
you have set all necessary environment variables as listed below.
 
  
  
Line 32: Line 24:
  
 
====Linux====
 
====Linux====
 +
  
 
====Windows====
 
====Windows====
  
===rhessys===
+
 
 +
===Building RHESSys===
 +
 
 +
The RHESSys source tree contains three separate tools: rhessys, cf, and g2w. Note that default values
 +
are specified in the makefiles. This means if you choose to override them you must specify the
 +
<code>-e</code> option when running <code>make</code>. As a convenience there is a makefile at the trunk
 +
of the source tree that will build and install all RHESSys programs. Before running that file, make sure that
 +
you have set all necessary environment variables as listed below.
 +
====rhessys====
  
 
=====Dependencies=====
 
=====Dependencies=====

Revision as of 13:28, 25 November 2009

Getting the source

The source for RHESSys and various tools for use with RHESSys is hosted on sourceforge and accessible via anonymous subversion access. For the latest stable release, check out

$> svn co https://rhessys.svn.sourceforge.net/svnroot/rhessys/tags/5.12.4


For the latest development version, check out

$> svn co https://rhessys.svn.sourceforge.net/svnroot/rhessys/trunk/


Locating GRASS GISBASE

OS X

If you are running GRASS from the application folder, your GISBASE will be /Applications/<GRASS application name>/Contents/MacOS. For example, if your GRASS application was named GRASS-6.4, you would type the command:

$> export GISBASE=/Applications/GRASS-6.4/Contents/MacOS

Linux

Windows

Building RHESSys

The RHESSys source tree contains three separate tools: rhessys, cf, and g2w. Note that default values are specified in the makefiles. This means if you choose to override them you must specify the -e option when running make. As a convenience there is a makefile at the trunk of the source tree that will build and install all RHESSys programs. Before running that file, make sure that you have set all necessary environment variables as listed below.

rhessys

Dependencies
  • None
Build Instructions

$> make; make install

Environmental Variables
Name Description Default
RHESSYS_BIN The path of the RHESSys installation location /usr/local/bin
PGM Name of the RHESSys binary prodouced rhessys<version>
CC C Compiler to use gcc


cf

Dependencies
  • GRASS version 6.x
Build Instructions

$> make; make install

Environmental Variables
Name Description Default
RHESSYS_BIN The path of the RHESSys installation location /usr/local/bin
PGM Name of the create flowpaths executable cf
GISBASE Base GRASS install none, this variable must be set
CC C Compiler to use gcc


g2w

Dependencies
  • GRASS version 6.x
Build Instructions

$> make; make install

Environmental Variables
Name Description Default
RHESSYS_BIN The path of the RHESSys installation location /usr/local/bin
PGM Name of the grass2world executable g2w
GISBASE Base GRASS install none, this variable must be set
CC C Compiler to use gcc