Skip to content

Latest commit

 

History

History
111 lines (72 loc) · 1.53 KB

setup-linux.md

File metadata and controls

111 lines (72 loc) · 1.53 KB

Setup for Linux

Ubuntu 20.04

Scripts are bash

Compilers

sudo apt install build-essential

Libraries

These libraries are required by AVBlocks:

Ubuntu 16.04 or 18.04

sudo apt-get install libjpeg8 libtiff5 libpng12-0 libtbb2

Ubuntu 20.04

sudo apt-get install libjpeg8 libtiff5 libpng16-16 libtbb2

CMake

Manual Installation (preferred)

Remove cmake that comes with Ubuntu 20.04 or 18.04:

sudo apt remove cmake
sudo apt purge --auto-remove cmake

Install dependencies:

sudo apt install libssl-dev

Download cmake 3.19:

version=3.19
build=1

mkdir -p ~/temp
cd ~/temp

wget https://cmake.org/files/v$version/cmake-$version.$build.tar.gz
tar -xzvf cmake-$version.$build.tar.gz

Build and install the extracted source by running:

cd ~/temp/cmake-$version.$build/

./bootstrap
make -j 4

sudo make install

To verify close and reopen Terminal:

cmake --version

ninja

sudo apt install ninja-build

pyenv

Install Python Dependencies:

sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev

Install pyenv:

git clone https://github.com/pyenv/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc

Enable:

source ~/.bashrc

Visual Studio Code

Install via Snap Store:

sudo snap install --classic code