-
Notifications
You must be signed in to change notification settings - Fork 18
/
OSX-Install.txt
92 lines (71 loc) · 2.42 KB
/
OSX-Install.txt
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
MAC OSX Installation Notes - Worskop 2
# You will need sudo access to the Machine (admin password)
# Go to App Store, download and install XCode
# Bring it up to auto-install all support libraries
# Make sure you have a Command Line Terminal (iTerm2 http://iterm2.com/)
# Check if you have git. If not Install git http://git-scm.com/
>git --version
git version 2.3.2 (Apple Git-55)
# I recommend TextMate as the editor of choice on the Mac (rather than use XCode, a little too complex
# for # this workshop) https://macromates.com/download
# Install Mac Package Manager called HomeBrew. Download and install from http://brew.sh/
# If you already have it, check it out
> brew doctor
> brew update
> brew upgrade
# Check if you have python 2.6 or 2.7 available
# if not:
>brew install python
>brew install gdal --with-python
# Check GDAL
>gdalinfo --version
GDAL 1.11.0, released 2014/04/16
>python
>>from ogr import osr
# We may also check that you can read a netCDF file with gdalinfo
>gdalinfo sst.nc
# Install potrace
>brew install potrace
# Install ImageMagick
>brew install imagemagick --with-libtiff
>composite --version
Version: ImageMagick 6.8.8-9 Q16 x86_64 2014-04-23 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules
Delegates: bzlib freetype jng jpeg ltdl png tiff xml zlib
# You should have pip available to install python libraries. If not,
# >sudo easy_install pip
#Install various python libraries
>pip install numpy
>pip install scipy
>pip install boto
>pip install argparse
>pip install python-dateutil
>pip install Pillow
# Install Node
# go there: https://nodejs.org/
# and hit install
>sudo npm install -g topojson
>topojson --version
>1.6.18
# Go to your development directory
# IF you have not done so already
# git clone https://github.com/vightel/FloodMapsWorkshop.git
>cd FloodMapsWorkshop
>cp envs.copy.sh envs.sh
# Edit and customize envs.sh
>source envs.sh
>cd node
>npm install
>node server.js
# Note you can also use nodemon to start node and monitor any file change
>sudo npm install -g nodemon
>nodemon server.js
# Note you can also use forever to ensure that server runs continously
>sudo npm install -g forever
>forever start server.js
# Notes
# For more advanced processing, you may need additional python libraries and mapnik
>brew install cairo --without-x --without-glib
>brew install py2cairo
>brew install mapnik --with-gdal --with-postgresql --with-cairo