-
Notifications
You must be signed in to change notification settings - Fork 16
Installation
Thomas Nipen edited this page Apr 9, 2020
·
42 revisions
- Boost >= 1.59
- Armadillo >= 6.6
- GNU Scientific Library
- Netcdf
On Ubuntu Bionic, these can be installed like this:
sudo apt-get update
sudo apt-get install libboost-all-dev
sudo apt-get install libgsl0-dev libblas-dev
sudo apt-get install netcdf-bin libnetcdf-dev
sudo apt-get install cmake
sudo apt-get install libarmadillo6 libarmadillo-dev
Note that Ubuntu Xenial only has Armadillo 6.5 in its apt repository. In that case you need to install Armadillo 6.6 or later manually.
pip3 install gridpp --user
-
Either download the source code from the latest release, unzip the file and navigate into the extracted folder; or clone the repo from github.
-
Create a build directory
mkdir build
- Run cmake to set up installation
cd build
cmake ..
This will set up gridpp to be installed in /usr/local/bin on Ubuntu. To specify a custom installation path, use:
cmake .. -DCMAKE_INSTALL_PREFIX=<custom path>
- Run cmake to install
cmake --build .
cmake --build . --target install
Follow instructions here: https://launchpad.net/~metno/+archive/ubuntu/gridpp
Optional: If you are developing the code, install the google test library:
sudo apt-get install libgtest-dev
sudo apt-get install lcov
sudo sudo gem install coveralls-lcov
Change the cmake step above to the following:
cmake .. -DCMAKE_BUILD_TYPE=DEBUG -DENABLE_TESTS=ON -DGTEST_DIR=/usr/src/gtest
where /usr/src/gtest
is the location of the google test library code.