-
Notifications
You must be signed in to change notification settings - Fork 8
Installation
The easiest is to install the latest release of the package using pip, which comes with precompiled binaries so no non-python dependencies are required:
pip install titanlib
To check that the installation worked, run the following in python:
import titanlib
print(titanlib.version())
- Boost >= 1.59
- GNU Scientific Library
On Ubuntu Bionic, these can be installed like this:
sudo apt-get update
sudo apt-get install libboost-all-dev
sudo apt-get install libgsl-dev libblas-dev
sudo apt install swig cmake
Either download the source code from the latest release, unzip the file and navigate into the extracted folder; or clone the repo from github.
mkdir build
cd build
cmake ..
sudo make install
This will install the library in /usr/local/lib/libtitanlib.so
.
If you don't have sudo rights or want to install the library in a different directory, you can use the following cmake command:
cmake .. -DCMAKE_INSTALL_PREFIX=your_directory_here
Replace your_directory_here with the desired installation path.
make install-python-user
This installs the python bindings in
~/local/lib/python3.6/site-packages/titanlib.py
. To install the python bindings system-wide, use sudo make install-python
instead.
make build-r
Currently, the R package is not installed centrally, but instead is placed in build/swig/R/titanlib.R
where you also have titanlib.so
.
Copyright © 2019-2023 Norwegian Meteorological Institute