Notes to install strabon on Ubuntu 14.04 following this : http://www.strabon.di.uoa.gr/node/20
** At Installing PostgreSQL and PostGIS
**
Install postgresql-9.3 and postgis 2.1 by running (not sure?) :
sudo apt-get install postgresql
sudo apt-get install postgis
** At Creating a spatially enabled database
**
These commands must be performed as postgres user. To do so, run :
sudo su postgres
** At Set postgis-1.5 path.
**
The installed version is not 1.5, but 2.1, so we run this instead :
POSTGIS_SQL_PATH=`pg_config --sharedir`/contrib/postgis-2.1
** At Creating a temporally enabled database
**
We install PostgreSQL Temporal from git (as normal user) :
wget https://github.com/jeff-davis/PostgreSQL-Temporal/archive/temporal-0.7.1.tar.gz
tar -zxvf temporal-0.7.1.tar.gz
cd PostgreSQL-Temporal-temporal-0.7.1
make
make install
make installcheck PGUSER=postgres
Then, to simply connect to your database
, do :
psql
** At Download and Compile Strabon
, Instead of OPTIONAL: For using also the temporal features...
**
Temporal seems to cause some problems with dependecies later on the build... But still we checkout a stable release rather than stay on the master branch. Run :
hg update v3.2.9
** Before Build Strabon
**
The maven repository repo.aduna-software.org is down. This causes the requests to time out very slowly, making the build take ages. To avoid this, edit /etc/hosts
, and add the following line
127.0.0.1 repo.aduna-software.org
[Not sure] Then, if getting Compilation failure/ Unable to locate the Javac Compiler in:/ /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar/ Please ensure you are using JDK 1.4 or above and/ not a JRE (the com.sun.tools.javac.Main class is required)./ In most cases you can change the location of your Java/ installation by setting the JAVA_HOME environment variable.
, set the JAVA_HOME variable :
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
Reopen a shell command.
We still miss two dependencies (why?!) : org.openrdf.sesame:sesame-rio-api:jar:2.6.9
and org.openrdf.sesame:sesame-rio-ntriples:jar:2.6.9
, so we download them manually :
cd ~
wget http://central.maven.org/maven2/org/openrdf/sesame/sesame-rio-api/2.6.10/sesame-rio-api-2.6.10.jar
mvn install:install-file -DgroupId=org.openrdf.sesame -DartifactId=sesame-rio-api -Dversion=2.6.9 -Dpackaging=jar -Dfile=sesame-rio-api-2.6.10.jar
wget http://central.maven.org/maven2/org/openrdf/sesame/sesame-rio-ntriples/2.6.10/sesame-rio-ntriples-2.6.10.jar
mvn install:install-file -DgroupId=org.openrdf.sesame -DartifactId=sesame-rio-ntriples -Dversion=2.6.9 -Dpackaging=jar -Dfile=sesame-rio-ntriples-2.6.10.jar
wget http://central.maven.org/maven2/org/openrdf/sesame/sesame-rio-binary/2.6.10/sesame-rio-binary-2.6.10.jar
mvn install:install-file -DgroupId=org.openrdf.sesame -DartifactId=sesame-rio-binary -Dversion=2.6.9 -Dpackaging=jar -Dfile=sesame-rio-binary-2.6.10.jar
wget http://central.maven.org/maven2/net/fortytwo/sesametools/nquads/1.7/nquads-1.7.jar
mvn install:install-file -DgroupId=net.fortytwo.sesametools -DartifactId=nquads -Dversion=1.6 -Dpackaging=jar -Dfile=nquads-1.7.jar
In ~/Strabon/endpoint-client/pom.xml
, change:
<artifactId>maven-shade-plugin</artifactId>
<version>2.0</version>
to
<artifactId>maven-shade-plugin</artifactId>
<version>1.3.3</version>
Now you can run
mvn clean package
And surprisingly it works !
** At Install Tomcat 6.x.x or greater.
**
sudo apt-get install tomcat6
** At Start your Tomcat server
instead of sudo /etc/init.d/tomcat start
:
sudo /etc/init.d/tomcat6 start
Open the app at
http://dhlabpc3.epfl.ch:8080/strabonendpoint/