-
Notifications
You must be signed in to change notification settings - Fork 0
instalation
Clone TerraMA2 or download the latest release to your TERRAMA2-SRC
folder
Download Terralib 5.2.1,
unpack the .tar.gz
package and run the install.sh
.
./install.sh
It will install the Terralib and it's dependencies to /opt/terralib
.
Download VMime 0.9.2 to TERRAMA2-SRC/packages/debian-package/
and run the commands:
cd TERRAMA2-SRC/packages/debian-package/
./deb-vmime.sh
sudo dpkg -i terrama2-vmime_1.0.0_amd64.deb
sudo apt install -f
The 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
Most dependencies can be installed from the Ubuntu repositories with the command:
- Ubuntu 14.04
sudo apt-get install cmake build-essential libcurl3-dev libpython2.7-dev libquazip0-dev libproj-dev libgeos++-dev libxerces-c-dev screen postgresql-9.3-postgis-2.1
- Ubuntu 16.04
sudo apt-get install cmake build-essential libcurl3-dev libpython2.7-dev libquazip-dev libproj-dev libgeos++-dev libxerces-c-dev screen postgresql-9.5-postgis-2.2
ToDo
To compile the TerraMA2 create a TERRAMA2-BUILD
folder and execute the commands:
cd TERRAMA2-BUILD
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE:STRING="Release" -DCMAKE_INSTALL_PREFIX:PATH="/opt/terrama2/4.0.0/" -DCMAKE_PREFIX_PATH:PATH="/opt/terralib/5.2.1/;/opt/terralib/5.2.1/3rdparty" TERRAMA2-SRC/build/cmake
make -j 4
sudo make install
Configure the postgres
password with the commands:
sudo -u postgres psql
ALTER USER postgres WITH PASSWORD '<password>';
\q
In the file TERRAMA2-SRC/webapp/config/config.terrama2
you should set:
- The
postgres
user and password. - The
defaultFilePath
of the data folder.
To install the global dependencies:
sudo npm install -g bower
sudo npm install -g grunt
Intal the dependencies of some of the web components with the commands:
TERRAMA2-SRC/webcomponents
npm install
grunt
To install the dependencies of the administration interface:
cd TERRAMA2-SRC/webapp
npm install
bower install
grunt
To install the dependencies of the web monitor:
cd TERRAMA2-SRC/webmonitor
npm install
bower install
To execute the administration interface:
cd TERRAMA2-SRC/webapp
npm start
by default you can access at localhost:36000
with:
- User : admin
- Password : admin