On Linux, dependencies are readily available from package
managers. See the list of requirements in INSTALL_GENERIC.md
for
what to install, or the specific instructions for Ubuntu and openSUSE
below.
On Ubuntu:
sudo apt-get install libblas-dev liblapack-dev libqrupdate-dev \
libboost-all-dev libgsl0-dev libnetcdf-dev autoconf automake
On openSUSE:
sudo zypper install blas lapack qrupdate boost-devel gsl-devel \
netcdf-devel autoconf automake
If you have a CUDA-enabled GPU and would like LibBi to be able to use it, you must also download and install the CUDA Toolkit https://developer.nvidia.com/cuda-toolkit.
First install the Linuxbrew package manager using the instructions here. Then simply run the following command from a terminal window to install LibBi:
brew install libbi
If CUDA is not installed, it is necessary to install Thrust (this is not necessary if using the Linuxbrew route described above, as this will automatically download Thrust). If CUDA is installed, Thrust is already included with it, and need not be installed separately.
To install Thrust:
wget https://github.com/thrust/thrust/releases/download/1.8.2/thrust-1.8.2.zip
unzip thrust-1.8.2.zip
sudo mv thrust /usr/local/include
Install LibBi manually as per the instructions in INSTALL.md
.