Skip to content

Install all dependencies

syl-p edited this page Jan 30, 2024 · 10 revisions

Install Git

Type sudo apt-get -y install git in your terminal and confirm. We'll need this later to clone the PIA repository and other necessary elements.

Before proceeding with the installation of Ruby:

  • run sudo apt-get -y install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libpq-dev. These libraries are needed to install Ruby and all necessary gems to run PIA.

Languages and others

We use asdf to install Ruby, Node.js, and Yarn on our server. Globally, Asdf is a tool that allows us to install different versions of various languages.

Here is how to install it with Bash as the main terminal:

git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.0

Add the following to ~/.bashrc:

. "$HOME/.asdf/asdf.sh"

Completions must be configured by adding the following to your .bashrc:

. "$HOME/.asdf/completions/asdf.bash"

If your environment is different, refer to the asdf install guide. To manage Ruby and Node.js, you can also use another solution like rbenv and nvm.