Hermes
 All Data Structures Files Functions Variables Macros Pages
Installation

Hermes is compiled for the following operating systems:

  • Linux (64-bit only)
  • Windows
  • OS X

Hermes requires:

Optional requirements:

Installation on Ubuntu 14.04

  • Postgresql 9.4 is not available in 14.04 "Trusty" but it was added in 14.10 "Utopic", so users that have 14.10 should only execute the last command. For the installation of the PostgreSQL execute in terminal:
    $ sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
    $ sudo apt-get install wget ca-certificates
    $ wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
    $ sudo apt-get update      
    $ sudo apt-get upgrade
    $ sudo apt-get install postgresql-9.4 postgresql-contrib-9.4 postgresql-server-dev-9.4
    
  • Copy the shared object (Hermes.so) file to your pgsql library directory. If you don't know where that is, check it out using:
    $ pg_config --pkglibdir
    $ /usr/lib/postgresql/9.4/lib
    $ sudo cp Hermes.so 'pg_config --pkglibdir'
    
  • Execute the script.installation to install the interface of Hermes. To execute it you must change to the postgres user.
    $ sudo -u postgres psql -f script.installation    
    
  • For the optional requirements just execute:
    $ sudo apt-get install postgis
    $ sudo -u postgres psql -d postgres -c "CREATE EXTENSION postgis;"
    $ sudo -u postgres psql -d postgres -c "CREATE EXTENSION postgis_topology;"
    $ sudo -u postgres psql -d postgres -c "CREATE EXTENSION fuzzystrmatch;"
    $ sudo -u postgres psql -d postgres -c "CREATE EXTENSION postgis_tiger_geocoder;"
    

Installation on Windows

Compile from source code on Ubuntu 14.04

If you are compiling the Hermes MOD from source, except from the PostgreSQL you will also need to install the postgresql-server-dev-9.4

    sudo apt-get install postgresql-server-dev-9.4

Afterwards insert the project in Eclispe and try to compile it. There might be a possibility that the PostgreSQL was not detected and you will have to change the location of the library. Afterwards try compiling it until you don't get compiler-warnings anymore.