-
Notifications
You must be signed in to change notification settings - Fork 1
/
00INSTALL
55 lines (38 loc) · 1.44 KB
/
00INSTALL
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
1) You need the netCDF C libraries version 3.5 or later
(Do NOT use version 3.4)
A tar distribution from UCAR is included on this ftp site.
Or go to web site: http://www.unidata.ucar.edu/packages/netcdf/index.html
untar and build netcdf-3.5.0.tar.gz
there is a README file in this UCAR distribution
2) Create a directory for installing HydroBase (mkdir /usr/local/HydroBase3)
This will be referred to as $HB_HOME
cd $HB_HOME/src
copy makefile.dist to makefile
edit makefile with appropriate values for the following:
**************************************
These lines must be edited:
**************************************
INCLUDE= .
NETCDFLIB = /usr/local/netcdf-3.6/lib
NETCDFINC = /usr/local/netcdf-3.6/include
BINDIR = ../bin
CC= gcc # invoke your C compiler
CFLAGS=-c -I$(INCLUDE) # compile, include
LINK= gcc
LDFLAGS = # any linker flags
LIBS= -lm -lc # math, c libs
**************************************
3)Edit hb_paths.h with correct path to the HydroBase3 /lib subdirectory
where the topography file and gamma.nc file are stored
(i.e. $HB_HOME/lib).
4) create $BINDIR if it does not exist
5) make and install:
Type the following commands:
make hydrobase
make install
make clean
to add OPTIONAL modules:
make other
make install_other
make clean_all
6) That's it.