|
1 | | -# In order to install ISSM, the Ice Sheet System Model, |
2 | | -# download from the svn repository: |
3 | | -svn co https://issm.ess.uci.edu/svn/issm/issm/trunk-jpl |
4 | | - |
5 | | -# If you have an already existing trunk-jpl installation, |
6 | | -# you can symlink to it: |
7 | | -ln -s PATH_TO_TRUNK_JPL ./trunk-jpl |
8 | | - |
9 | | -# Then follow instructions in: |
10 | | -# http://issm.jpl.nasa.gov/download/unix/ |
11 | | - |
12 | | - |
13 | | -# ========= |
14 | | -# Installation instructions on macOS Mojave 10.14.4 |
15 | | - |
16 | | -* create an ISSM_DIR in you bashrc and source it |
17 | | -export ISSM_DIR="/Users/XXX/issm/trunk-jpl/" |
18 | | -source "$ISSM_DIR"/etc/environment.sh |
19 | | - |
20 | | -* checkout empty issm directory: |
21 | | -svn co --username=username --depth=empty http://issm.ess.uci.edu/svn/issm/issm issm |
22 | | -* get jpl trunk (development branch) in issm directory: |
23 | | -svn update trunk-jpl |
24 | | - |
25 | | -* get xcode |
26 | | -* install command line xcode |
27 | | -xcode-select --install |
28 | | - |
29 | | -* install gfortran binaries: on https://gcc.gnu.org/wiki/GFortranBinaries#MacOS |
30 | | -* use the first one on git (https://github.com/fxcoudert/gfortran-for-macOS/releases) |
31 | | - |
32 | | -* Install Matlab |
33 | | -* In ~/matlab/startup.m add: |
34 | | -% ISSM paths |
35 | | -ISSM_DIR=getenv('ISSM_DIR'); |
36 | | -if length(ISSM_DIR)>0 |
37 | | - addpath([ISSM_DIR '/bin/']); |
38 | | - addpath([ISSM_DIR '/lib/'],[ISSM_DIR '/scripts']); |
39 | | - addpath([ISSM_DIR '/src/m/dev']); |
40 | | - devpath; |
41 | | -end |
42 | | - |
43 | | -* in ISSM, install the following external packages (so in trunk-jpl/externalpackages) in this order: |
44 | | -- autotools |
45 | | -- mpich (version 3.2 macosx64) |
46 | | -- cmake |
47 | | -- petsc (version 3.9 macosx64) |
48 | | -- m1qn3 |
49 | | -- triangle |
50 | | -between each package installed you should source the environment |
51 | | -source $ISSM_DIR/etc/environment.sh |
52 | | - |
53 | | -* Reconfigure ISSM: |
54 | | -cd $ISSM_DIR |
55 | | -autoreconf -ivf |
56 | | -* Create a configure.sh file in $ISSM_DIR with the following lines (adjust the paths if need be): |
57 | | -#!/bin/bash |
58 | | - |
59 | | -./configure \ |
60 | | - --prefix=$ISSM_DIR \ |
61 | | - --with-matlab-dir="/Applications/MATLAB_R2018b.app/" \ |
62 | | - --with-triangle-dir="$ISSM_DIR/externalpackages/triangle/install" \ |
63 | | - --with-mpi-include="$ISSM_DIR/externalpackages/mpich/install/include" \ |
64 | | - --with-mpi-libflags="-L$ISSM_DIR/externalpackages/mpich/install/lib/ -lmpich" \ |
65 | | - --with-petsc-dir="$ISSM_DIR/externalpackages/petsc/install" \ |
66 | | - --with-metis-dir="$ISSM_DIR/externalpackages/petsc/install" \ |
67 | | - --with-scalapack-dir="$ISSM_DIR/externalpackages/petsc/install/" \ |
68 | | - --with-mumps-dir="$ISSM_DIR/externalpackages/petsc/install/" \ |
69 | | - --with-m1qn3-dir="$ISSM_DIR/externalpackages/m1qn3/install" \ |
70 | | - --with-ocean="yes" \ |
71 | | - --with-numthreads=4 \ |
72 | | - --enable-development \ |
73 | | - --enable-debugging |
74 | | - |
75 | | -* Configure ISSM in $ISSM_DIR: |
76 | | -./configure.sh |
77 | | - |
78 | | -* Compile ISSM in $ISSM_DIR: |
79 | | -make -j8 |
80 | | -make install |
81 | | - |
82 | | - |
83 | | -# ========= |
84 | | -# Installation instructions on macOS High Sierra 10.13.6 |
85 | | - |
86 | | -# Install Xcode from Mac App Store then |
87 | | -xcode-select --install |
88 | | - |
89 | | -# Install gfrotran 5.2 |
90 | | -# https://gcc.gnu.org/wiki/GFortranBinaries |
91 | | -# http://coudert.name/software/gfortran-5.2-Yosemite.dmg |
92 | | - |
93 | | -# Install cmake-3.4.0 |
94 | | -# https://cmake.org/download/ |
95 | | -# https://cmake.org/files/v3.4/cmake-3.4.0-Darwin-x86_64.dmg |
96 | | -cd /usr/local/bin |
97 | | -sudo ln -sf /Applications/Utilities/CMake.app/Contents/bin/cmake . |
98 | | - |
99 | | -# In .bashrc add: |
100 | | -# export ISSM_DIR='/PUT_FULL_ISSM_PATHNAME_HERE/trunk-jpl' |
101 | | -# source $ISSM_DIR/etc/environment.sh |
102 | | - |
103 | | -cd $ISSM_DIR |
104 | | -svn up |
105 | | -source $ISSM_DIR/etc/environment.sh |
106 | | - |
107 | | -cd externalpackages |
108 | | -mkdir matlab |
109 | | -cd matlab |
110 | | -ln -sf /Applications/MATLAB_R2016b.app install |
111 | | - |
112 | | -# add 10.13 lines similar to 10.10 lines in |
113 | | -# /Applications/MATLAB_R2015b.app/bin/maci64/mexopts/*.xml |
114 | | - |
115 | | -# http://issm.jpl.nasa.gov/documentation/faq/matlab/ |
116 | | -cp /Applications/MATLAB_R2016b.app/bin/.matlab7rc.sh ~ |
117 | | -# under mac|maci|maci64) |
118 | | -# change: # LDPATH_PREFIX='$MATLAB/sys/opengl/lib/$ARCH' |
119 | | -# to: LDPATH_PREFIX='/usr/local/gfortran/lib' |
120 | | - |
121 | | -# In ~/matlab/startup.m add: |
122 | | -# % ISSM paths |
123 | | -# ISSM_DIR=getenv('ISSM_DIR'); |
124 | | -# if length(ISSM_DIR)>0 |
125 | | -# addpath([ISSM_DIR '/bin/']); |
126 | | -# addpath([ISSM_DIR '/lib/'],[ISSM_DIR '/scripts']); |
127 | | -# addpath([ISSM_DIR '/src/m/dev']); |
128 | | -# devpath; |
129 | | -# end |
130 | | - |
131 | | -cd ../autotools/ |
132 | | -./install.sh |
133 | | -source $ISSM_DIR/etc/environment.sh |
134 | | - |
135 | | -cd ../mpich |
136 | | -install-3.2-macosx64.sh |
137 | | -source $ISSM_DIR/etc/environment.sh |
138 | | - |
139 | | -cd ../petsc |
140 | | -install-3.9-macosx64.sh |
141 | | -source $ISSM_DIR/etc/environment.sh |
142 | | - |
143 | | -cd ../triangle |
144 | | -install-macosx64.sh |
145 | | -source $ISSM_DIR/etc/environment.sh |
146 | | - |
147 | | -cd ../m1qn3 |
148 | | -install.sh |
149 | | -source $ISSM_DIR/etc/environment.sh |
150 | | - |
151 | | -cd $ISSM_DIR |
152 | | -autoreconf -ivf |
153 | | -../config-macosx64-nodakota.sh |
154 | | -make -j 8 install |
155 | | - |
156 | | - |
157 | | -# ========= |
158 | | -# Installation instructions on Mac OS X El Capitan 10.11.1 |
159 | | - |
160 | | -# Install gfrotran 5.2 |
161 | | -# https://gcc.gnu.org/wiki/GFortranBinaries |
162 | | -# http://coudert.name/software/gfortran-5.2-Yosemite.dmg |
163 | | - |
164 | | -# Install cmake-3.4.0 |
165 | | -# https://cmake.org/download/ |
166 | | -# https://cmake.org/files/v3.4/cmake-3.4.0-Darwin-x86_64.dmg |
167 | | -cd /usr/local/bin |
168 | | -sudo ln -sf /Applications/Utilities/CMake.app/Contents/bin/cmake . |
169 | | - |
170 | | -# In .bashrc add: |
171 | | -# export ISSM_DIR='/PUT_FULL_ISSM_PATHNAME_HERE/trunk-jpl' |
172 | | -# source $ISSM_DIR/etc/environment.sh |
173 | | - |
174 | | -cd $ISSM_DIR |
175 | | -svn up |
176 | | -source $ISSM_DIR/etc/environment.sh |
177 | | - |
178 | | -cd externalpackages/matlab |
179 | | -ln -sf /Applications/MATLAB_R2015b.app install |
180 | | - |
181 | | -# replace 10.10 with 10.11 in |
182 | | -# /Applications/MATLAB_R2015b.app/bin/maci64/mexopts/*.xml |
183 | | - |
184 | | -# http://issm.jpl.nasa.gov/documentation/faq/matlab/ |
185 | | -cp /Applications/MATLAB_R2015b.app/bin/.matlab7rc.sh ~ |
186 | | -# under mac|maci|maci64) |
187 | | -# change: # LDPATH_PREFIX='$MATLAB/sys/opengl/lib/$ARCH' |
188 | | -# to: LDPATH_PREFIX='/usr/local/gfortran/lib' |
189 | | - |
190 | | -# In ~/matlab/startup.m add: |
191 | | -# % ISSM paths |
192 | | -# ISSM_DIR=getenv('ISSM_DIR'); |
193 | | -# if length(ISSM_DIR)>0 |
194 | | -# addpath([ISSM_DIR '/bin/'],[ISSM_DIR '/lib/']); |
195 | | -# addpath([ISSM_DIR '/scripts'],[ISSM_DIR '/src/m/dev']); |
196 | | -# devpath; |
197 | | -# end |
198 | | - |
199 | | -cd ../autotools/ |
200 | | -./install.sh |
201 | | -source $ISSM_DIR/etc/environment.sh |
202 | | - |
203 | | -cd ../mpich |
204 | | -install-3.0-macosx64-elcapitan.sh 8 |
205 | | -source $ISSM_DIR/etc/environment.sh |
206 | | - |
207 | | -cd ../petsc |
208 | | -install-3.6-macosx64.sh |
209 | | -source $ISSM_DIR/etc/environment.sh |
210 | | - |
211 | | -cd ../triangle |
212 | | -install-macosx64.sh |
213 | | -source $ISSM_DIR/etc/environment.sh |
214 | | - |
215 | | -cd ../m1qn3 |
216 | | -install.sh |
217 | | -source $ISSM_DIR/etc/environment.sh |
218 | | - |
219 | | -cd $ISSM_DIR |
220 | | -./scripts/automakererun.sh |
221 | | -../config-macosx64-nodakota.sh |
222 | | -make -j 8 install |
223 | | - |
224 | | - |
225 | | -#========= |
226 | | -Installation instructions on skylla |
227 | | - |
228 | | -# In .bashrc add: |
229 | | -# export ISSM_DIR=$SLR_DIR/components/issm/trunk-jpl |
230 | | -# source $ISSM_DIR/etc/environment.sh |
231 | | -# export ISSM_ARCH="linux-gnu-amd64" |
232 | | - |
233 | | -# make sure you are in the bash shell |
234 | | - |
235 | | -bash |
236 | | - |
237 | | -cd $ISSM_DIR |
238 | | -#svn up -r 17578 |
239 | | -source $ISSM_DIR/etc/environment.sh |
240 | | - |
241 | | -cd externalpackages/matlab |
242 | | -ln -sf /usr/local/matlab.2010b install |
243 | | - |
244 | | -cd ../autotools/ |
245 | | -./install.sh |
246 | | -source $ISSM_DIR/etc/environment.sh |
247 | | - |
248 | | -cd ../cmake |
249 | | -./install.sh |
250 | | -source $ISSM_DIR/etc/environment.sh |
251 | | - |
252 | | -cd ../mpich |
253 | | -./install-3.0-linux64.sh |
254 | | -source $ISSM_DIR/etc/environment.sh |
255 | | - |
256 | | -cd ../petsc |
257 | | -./install-3.4-linux64.sh |
258 | | -source $ISSM_DIR/etc/environment.sh |
259 | | - |
260 | | -cd ../tao |
261 | | -svn up |
262 | | -./install-2.2.sh |
263 | | -source $ISSM_DIR/etc/environment.sh |
264 | | - |
265 | | -cd ../triangle |
266 | | -./install-linux64.sh |
267 | | -source $ISSM_DIR/etc/environment.sh |
268 | | - |
269 | | -cd $ISSM_DIR |
270 | | -./scripts/automakererun.sh |
271 | | -./configs/config-linux64-skylla.sh |
272 | | -make -j 8 install |
273 | | - |
274 | | -# In ~/matlab/startup.m add: |
275 | | -# ISSM_DIR=getenv('ISSM_DIR'); |
276 | | -# addpath([ISSM_DIR '/bin/'],[ISSM_DIR '/lib/'],[ISSM_DIR '/scripts']); |
| 1 | +# Install ISSM: https://issm.jpl.nasa.gov/download/ |
| 2 | + |
| 3 | +# get Xcode |
| 4 | +# install command line xcode |
| 5 | + xcode-select --install |
| 6 | + |
| 7 | +# get ISSM repo |
| 8 | + cd |
| 9 | + mkdir issm |
| 10 | + cd issm |
| 11 | + git clone [email protected]:ISSMteam/ISSM.git |
| 12 | + |
| 13 | +# add to ~/.zshrc |
| 14 | + export ISSM_DIR='/Users/dmenemen/issm/ISSM' |
| 15 | + source $ISSM_DIR/etc/environment.sh |
| 16 | + |
| 17 | +# https://issm.jpl.nasa.gov/download/unix/ |
| 18 | + cd $ISSM_DIR/externalpackages/autotools |
| 19 | + install-mac.sh |
| 20 | + source $ISSM_DIR/etc/environment.sh |
| 21 | + cd $ISSM_DIR/externalpackages/cmake |
| 22 | + install.sh |
| 23 | + source $ISSM_DIR/etc/environment.sh |
| 24 | + cd $ISSM_DIR/externalpackages/petsc |
| 25 | + install-3.22-mac.sh |
| 26 | + source $ISSM_DIR/etc/environment.sh |
| 27 | + cd $ISSM_DIR/externalpackages/triangle |
| 28 | + install-mac.sh |
| 29 | + source $ISSM_DIR/etc/environment.sh |
| 30 | + cd $ISSM_DIR/externalpackages/m1qn3 |
| 31 | + install-mac.sh |
| 32 | + source $ISSM_DIR/etc/environment.sh |
| 33 | + cd $ISSM_DIR |
| 34 | + autoreconf -ivf |
| 35 | + |
| 36 | +# create configure.sh as per instructions |
| 37 | +# or get from test/MITgcm/documents/config-macOS-arm64.sh |
| 38 | + cd $ISSM_DIR |
| 39 | + cp test/MITgcm/documents/config-macOS-arm64.sh configure.sh |
| 40 | + chmod a+x configure.sh |
| 41 | + ./configure.sh |
| 42 | + make |
| 43 | + make install |
0 commit comments