-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL
150 lines (87 loc) · 3.19 KB
/
INSTALL
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
Machine
========
postgresql
postgresql-client
postgresql-contrib
postgresql-9.3-postgis-2.1
git
maven
openjdk-7-jdk
rabbitmq-server
Postgresql
============
createuser --no-superuser --no-createdb --no-createrole --pwprompt igrow-service-dev
createdb --owner igrow-service-dev igrow-service-dev
log in as superuser, psql -d igrow-service-dev
CREATE EXTENSION postgis;
CREATE EXTENSION postgis_topology;
RabbitMQ
=========
rabbitmqctl add_user igrow-service-dev igrow-service-dev
rabbitmqctl set_permissions -p / igrow-service-dev ".*" ".*" ".*"
Build postgis-jdbc.jar
=======================
Mac OS X
--------
modify jdbc/Makefile to set ant path correctly. Hmmm. Actually, invoke mvn directly because the ant-maven-tasks integration does something funky with M2_HOME by the looks of things.
--------
build postgis-2.1.x and mvn install the jar. Using postgis-2.1.2 so that generated postgis-jdbc.jar matches already installed postgis version
http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS21Ubuntu1404src
stop after make step.
PostGIS is now configured for x86_64-unknown-linux-gnu
-------------- Compiler Info -------------
C compiler: gcc -g -O2
C++ compiler: g++ -g -O2
SQL preprocessor: /usr/bin/cpp -w -traditional-cpp -P
-------------- Dependencies --------------
GEOS config: /usr/bin/geos-config
GEOS version: 3.4.2
GDAL config: /usr/bin/gdal-config
GDAL version: 1.10.1
PostgreSQL config: /usr/bin/pg_config
PostgreSQL version: PostgreSQL 9.3.4
PROJ4 version: 48
Libxml2 config: /usr/bin/xml2-config
Libxml2 version: 2.9.1
JSON-C support: yes
PostGIS debug level: 0
Perl: /usr/bin/perl
--------------- Extensions ---------------
PostGIS Raster: enabled
PostGIS Topology: enabled
SFCGAL support: disabled
-------- Documentation Generation --------
xsltproc: /usr/bin/xsltproc
xsl style sheets: /usr/share/xml/docbook/stylesheet/nwalsh
dblatex:
convert:
mathml2.dtd: /usr/share/xml/schema/w3c/mathml/dtd/mathml2.dtd
modify liblwgeom/lwin_geojson.c
json -> json-c
#include <json-c/json.h>
#include <json-c/json_object_private.h>
cd java
make
mvn install:install-file -Dfile=../../depends/postgis-2.1.2/java/jdbc/target/postgis-jdbc-2.1.2.jar -DgroupId=org.postgis -DartifactId=postgis-jdbc -Dpackaging=jar -Dversion=2.1.2
Build services
================
modified pom.xml postgis-jdbc-2.1.0SVN -> postgis-jdbc-2.1.2
install protobuf-compiler
cd gjl-api-java
mvn test package install
cd observation-service
psql -U igrow-service-dev -h localhost < src/main/resources/initdb.sql
mvn test package install
mvn clean compile assembly:single
mvn -DskipTests=true -Djersey.test.port=9998 -Dcom.igrow.igrow-service.observation-service.debug=true -e exec:java
Deploying
===========
apt-get install tomcat7
usermod -U jsr --append -G tomcat7
mvn -DskipTests=true compile war:exploded
Eclipse and dev environment
=============================
mvn eclipse:clean
mvn eclipse:eclipse
Set M2_REPO classpath variable:
mvn -Declipse.workspace="/Users/jsr/dev/gjl_service_eclipse" eclipse:configure-workspace