forked from mikelmaron/osm-history
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
70 lines (55 loc) · 1.67 KB
/
install.sh
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
#!/bin/bash
#Ensure SSL verification on Git is disabled:
git config --global http.sslVerify false
echo "Building Protobuf 2.6.0"
ldconfig
cd /home/osmhistory/protobuf-2.6.0
./autogen.sh
./configure
make install -w
clear
echo "Installing OSM-Binary Headers"
ldconfig
cd /home/osmhistory/OSM-binary-master
make -C src
make -C src install
make -C tools
clear
echo "Building OSMIUM"
ldconfig
cd /home/osmhistory/osmium-master
make -w install
clear
echo "Now running Osmium Tests: Should have 27 successes and 1 failure"
make test
echo "Building osm-history-splitter"
ldconfig
cd /home/osmhistory/osm-history-splitter-master
make clean
make install
echo "Now Running osm-history-splitter test"
osm-history-splitter test/version-two-node-after.osh test/test.config
ldconfig
echo "Building Protobuf-C"
cd /home/osmhistory/protobuf-c-master
./autogen.sh && ./configure && make && make install
clear
ldconfig
echo "Now installing Ruby Gems without documentation"
echo "Skipping a clean ruby Install"
#zypper --non-interactive --gpg-auto-import-keys in ruby-devel
gem install bundler --no-ri --no-rdoc
gem install mongo --no-ri --no-rdoc
gem install bson --no-ri --no-rdoc
gem install bson_ext --no-ri --no-rdoc
gem install pbf_parser --no-ri --no-rdoc
gem install rgeo --no-ri --no-rdoc
gem install nori --no-ri --no-rdoc
gem install nokogiri -v 1.5.0 --no-ri --no-rdoc
echo "Now cloning the latest version of osm-history2 and configuring for this environment"
cd /home/osmhistory/
git clone https://github.com/rsoden/osm-history2
cd osm-history2
echo "osm-history-splitter: /home/osmhistory/osm-history-splitter-master/osm-history-splitter" > config.yml
echo "Starting MongoDB..."
/etc/init.d/mongodb start