wiki:programmersguide/debianpackage

Version 3 (modified by jano.simas, 9 years ago) (diff)

--

Generating and installing TerraMA2 Debian package

Generating a package

To generate the Debian package from a fresh git clone you'll need:

  • cmake
  • build-essential
  • libcurl3-dev
  • libpython2.7-dev
  • libquazip0-dev
  • libproj-dev
  • libgeos++-dev
  • libxerces-c-dev

All can be installed with the command:

sudo apt-get install -y cmake build-essential libcurl3-dev libpython2.7-dev libquazip0-dev libproj-dev libgeos++-dev libxerces-c-dev

Once everything is installed go to the folder:

./packages/debian-package

and run the script deb-terrama2.sh

You'll find the Debian package in the folder build-package at the same path level of your codebase folder.

Installing the Debian package

The Debian package has 3 dependencies, TerraLib, NodeJs and Postgres/PostGIS. To install the TerraLib got to this page: ToDo?.

NodeJs can be installed with the commands:

  curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
  sudo apt-get install -y nodejs

You can have the version of your preference of Postgresql-9 and PostGIS-2, the versions in the Ubuntu 14.04 (trusty) repository can be installed with the command:

sudo apt-get install postgresql-9.3-postgis-2.1

and finally install the TerraMA2 package with the commands:

sudo dpkg -i TerraMA2-4.0.0-alpha7-linux-x64.deb
sudo apt-get install -f -y